blob: 185d9154a8327d8f57d461dafa95d61f052656b9 (
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
63
64
65
66
67
68
|
#!/bin/sh
# See LICENSE file for copyright and license details.
if test $# = 0; then
if "$0" fail for me; then
printf 'Testing is broken!\n' >&2
exit 2
fi
set +e
"$0" $$
r=$?
rm -f -- .?-$$.tmp
exit $r
fi
set -e
test $# = 1
pid=$1
a=.a-$pid.tmp
b=.b-$pid.tmp
PATH="$(dirname -- "$0")/testutil:$PATH"
export PATH
. tests/load-functions
alias t=.
# this is for test development; set to : to skip tests
# have already been written and passed, set to . otherwise
if ! env | grep '^SUPPORTED_OSES=' >/dev/null; then
printf '%s\n' \
"The test's environment has not been set up;" \
'you should run the test via `make check`'
exit 1
fi
set -v
(. tests/test-self-check) >/dev/null 2>/dev/null
t tests/enums
. tests/load-types
t tests/errors
t tests/syscall-ranges
t tests/syscall-errors
t tests/signals
t tests/split-register-classes
. tests/load-archinfo
t tests/archinfo
t tests/fundamental-primitives
t tests/is-struct
t tests/array-types
t tests/fixed-array-types
t tests/split-register-types
t tests/os-dependent-primitives
t tests/os-dependent-arrays
t tests/os-dependent-integers
# TODO test libsyscalls_get_syscall
# TODO test libsyscalls_get_syscall_display_info
|