tests: link them dynamically by default
. so that functionality is tested . add test63 that actually tests dlopen(), dlsym(), etc. functionality; only built if clang supports it . also test10 test to copy more of the executable
This commit is contained in:
9
test/run
9
test/run
@@ -14,7 +14,7 @@ badones= # list of tests that failed
|
||||
tests=" 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 \
|
||||
61 62 63 \
|
||||
sh1.sh sh2.sh interp.sh"
|
||||
tests_no=`expr 0`
|
||||
|
||||
@@ -33,6 +33,9 @@ clr
|
||||
echo "Running POSIX compliance test suite. There are $tests_no tests in total."
|
||||
echo " "
|
||||
|
||||
# Provide an argument for test63
|
||||
ARGS_63=`pwd`/mod
|
||||
|
||||
# Run all the tests, keeping track of who failed.
|
||||
for i in `echo $tests`
|
||||
do
|
||||
@@ -40,9 +43,11 @@ do
|
||||
then
|
||||
total=`expr $total + 1`
|
||||
FAIL=0
|
||||
unset ARG
|
||||
ARG=`eval echo "\\${ARGS_$i}"`
|
||||
if [ "$USER" = root ]
|
||||
then su - bin -c "cd `pwd`; ./test$i" || FAIL=1
|
||||
else ./test$i || FAIL=1
|
||||
else echo ./test$i $ARG || FAIL=1
|
||||
fi
|
||||
if [ $FAIL -eq 0 ]
|
||||
then passed=`expr $passed + 1`
|
||||
|
||||
Reference in New Issue
Block a user