2005-04-21 16:53:53 +02:00
|
|
|
#!/bin/sh
|
|
|
|
|
|
|
|
# Initialization
|
|
|
|
PATH=:/bin:/usr/bin
|
|
|
|
export PATH
|
|
|
|
|
|
|
|
rm -rf DIR* # remove any old junk lying around
|
|
|
|
passed=`expr 0` # count number of tests run correctly
|
|
|
|
failed=`expr 0` # count number of tests that failed
|
2009-12-09 20:01:38 +01:00
|
|
|
skipped=`expr 0` # count number of tests that were skipped
|
2005-04-21 16:53:53 +02:00
|
|
|
total=`expr 0` # total number of tests tried
|
|
|
|
badones= # list of tests that failed
|
|
|
|
|
2005-06-07 13:52:35 +02:00
|
|
|
# Print test welcome message
|
2005-04-21 16:53:53 +02:00
|
|
|
clr
|
- Introduce support for sticky bit.
- Revise VFS-FS protocol and update VFS/MFS/ISOFS accordingly.
- Clean up MFS by removing old, dead code (backwards compatibility is broken by
the new VFS-FS protocol, anyway) and rewrite other parts. Also, make sure all
functions have proper banners and prototypes.
- VFS should always provide a (syntactically) valid path to the FS; no need for
the FS to do sanity checks when leaving/entering mount points.
- Fix several bugs in MFS:
- Several path lookup bugs in MFS.
- A link can be too big for the path buffer.
- A mountpoint can become inaccessible when the creation of a new inode
fails, because the inode already exists and is a mountpoint.
- Introduce support for supplemental groups.
- Add test 46 to test supplemental group functionality (and removed obsolete
suppl. tests from test 2).
- Clean up VFS (not everything is done yet).
- ISOFS now opens device read-only. This makes the -r flag in the mount command
unnecessary (but will still report to be mounted read-write).
- Introduce PipeFS. PipeFS is a new FS that handles all anonymous and
named pipes. However, named pipes still reside on the (M)FS, as they are part
of the file system on disk. To make this work VFS now has a concept of
'mapped' inodes, which causes read, write, truncate and stat requests to be
redirected to the mapped FS, and all other requests to the original FS.
2009-12-20 21:27:14 +01:00
|
|
|
echo "Running POSIX compliance test suite. There are 49 tests in total."
|
2005-06-07 13:52:35 +02:00
|
|
|
echo " "
|
|
|
|
|
|
|
|
# Run all the tests, keeping track of who failed.
|
2005-04-21 16:53:53 +02:00
|
|
|
for i in 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 \
|
2009-07-14 11:43:33 +02:00
|
|
|
21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 \
|
2009-12-24 21:22:41 +01:00
|
|
|
41 42 43 44 45 45-gcc 46 47 sh1.sh sh2.sh
|
2009-12-09 20:01:38 +01:00
|
|
|
do
|
|
|
|
if [ -x ./test$i ]
|
|
|
|
then
|
|
|
|
total=`expr $total + 1`
|
|
|
|
FAIL=0
|
|
|
|
if [ $USER = root -a \( $i = 11 -o $i = 33 \) ]
|
|
|
|
then su - ast -c "cd `pwd`; ./test$i" || FAIL=1
|
|
|
|
else ./test$i || FAIL=1
|
|
|
|
fi
|
|
|
|
if [ $FAIL -eq 0 ]
|
|
|
|
then passed=`expr $passed + 1`
|
|
|
|
else failed=`expr $failed + 1`
|
|
|
|
badones=`echo $badones " " $i`
|
|
|
|
fi
|
|
|
|
else
|
|
|
|
skipped=`expr $skipped + 1`
|
2005-04-21 16:53:53 +02:00
|
|
|
fi
|
|
|
|
done
|
|
|
|
|
|
|
|
# Print results of the tests.
|
|
|
|
echo " "
|
|
|
|
if test $total = $passed
|
2009-12-09 20:01:38 +01:00
|
|
|
then echo All $passed tests completed without error \($skipped skipped\).
|
|
|
|
else echo Testing completed. Score: $passed passed, $failed failed, \
|
|
|
|
skipped $skipped
|
2005-04-21 16:53:53 +02:00
|
|
|
echo The following tests failed: $badones
|
|
|
|
fi
|
|
|
|
|
|
|
|
# echo " "
|