blob: c825493346e8dee6cf35ceb22812ef71a84fcf21 (
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
69
70
71
72
73
|
#!/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
set -v
test -n "${SUPPORTED_OSES}" # This check that the test's environment has set up, if this fails, run through `make check`
(. 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
# TODO test libsyscalls_get_syscall
# TODO test libsyscalls_get_syscall_display_info
|