Changeset 2725 in MondoRescue for branches/2.2.9/mindi-busybox/shell/ash_test/run-all
- Timestamp:
- Feb 25, 2011, 9:26:54 PM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/2.2.9/mindi-busybox/shell/ash_test/run-all
r1765 r2725 1 1 #!/bin/sh 2 2 3 test -x ash || { echo "No ./ash?!"; exit; } 3 TOPDIR=$PWD 4 5 test -x ash || { 6 echo "No ./ash - creating a link to ../../busybox" 7 ln -s ../../busybox ash 8 } 4 9 test -x printenv || gcc -O2 -o printenv printenv.c || exit $? 5 10 test -x recho || gcc -O2 -o recho recho.c || exit $? … … 15 20 { 16 21 test -d "$1" || return 0 22 # echo do_test "$1" 23 # $1 but with / replaced by # so that it can be used as filename part 24 noslash=`echo "$1" | sed 's:/:#:g'` 17 25 ( 18 26 cd "$1" || { echo "cannot cd $1!"; exit 1; } … … 24 32 #*) echo $x ; sh $x ;; 25 33 *) 26 sh "$x" >" ../$1-$x.fail" 2>&1 && \27 { echo "$1/$x: ok"; rm " ../$1-$x.fail"; } || echo "$1/$x: fail";34 sh "$x" >"$TOPDIR/$noslash-$x.fail" 2>&1 && \ 35 { echo "$1/$x: ok"; rm "$TOPDIR/$noslash-$x.fail"; } || echo "$1/$x: fail"; 28 36 ;; 29 37 esac … … 37 45 { 38 46 "$THIS_SH" "./$x" >"$name.xx" 2>&1 39 diff -u "$name.xx" "$name.right" >"../$1-$x.fail" && rm -f "$name.xx" "../$1-$x.fail" 47 diff -u "$name.xx" "$name.right" >"$TOPDIR/$noslash-$x.fail" \ 48 && rm -f "$name.xx" "$TOPDIR/$noslash-$x.fail" 40 49 } && echo "$1/$x: ok" || echo "$1/$x: fail" 41 50 done … … 49 58 # All sub directories 50 59 modules=`ls -d ash-*` 60 # If you want to test ash against hush and msh testsuites 61 # (have to copy hush_test and msh_test dirs to current dir first): 62 #modules=`ls -d ash-* hush_test/hush-* msh_test/msh-*` 51 63 52 64 for module in $modules; do
Note:
See TracChangeset
for help on using the changeset viewer.