blob: a5658b1fbac71c9004a069a7a7097ba3176800f0 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
|
#! /bin/sh
set -e
set -u
if ! test -f README.md
then
echo "run from the base directory." >&2
exit 1
fi
if test -d ./.tmsu/
then
rm -r ./.tmsu/
fi
tmsu init
tmsu tag -c arch-x86_64 portable \
needs-cpp needs-libc
tmsu imply c89 c99
tmsu imply c99 c11
tmsu imply needs-libc needs-cpp
for suite in single-exec
do
for t in ./tests/"$suite"/*.c
do
tmsu tag "$t" "suite=$suite"
while read -r tagline
do
if test -z "$tagline"
then
continue
fi
tmsu tag --tags="$tagline" "$t"
done < "$t.tags"
done
done
# Validation
q="(not c89) and (not c99) and (not c11)"
n=$(tmsu files "$q" | wc -l)
if test "$n" != "0"
then
echo "Tests without a specified standard, aborting:"
tmsu files "$q"
exit 1
fi
q="not portable and not arch-x86_64"
n=$(tmsu files "$q" | wc -l)
if test "$n" != "0"
then
echo "Tests without a specified arch, aborting:"
tmsu files "$q"
exit 1
fi
|