blob: 185d9154a8327d8f57d461dafa95d61f052656b9 (
plain) (
tree)
|
|
#!/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
|