Changeset 2725 in MondoRescue for branches/2.2.9/mindi-busybox/shell/ash_test
- Timestamp:
- Feb 25, 2011, 9:26:54 PM (14 years ago)
- Location:
- branches/2.2.9/mindi-busybox/shell/ash_test
- Files:
-
- 97 added
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/2.2.9/mindi-busybox/shell/ash_test/ash-arith/arith.right
r1765 r2725 56 56 20 20 57 57 30 30 58 ./arith.tests: line 117: syntax error: 1 ? 20 : x+=258 ./arith.tests: line 117: arithmetic syntax error 59 59 6 6 60 60 6,5,3 6,5,3 … … 62 62 255 255 63 63 40 40 64 ./arith.tests: line 163: syntax error: 7 = 4364 ./arith.tests: line 163: arithmetic syntax error 65 65 ./arith.tests: line 165: divide by zero 66 ./arith.tests: let: line 166: syntax error: jv += $iv67 ./arith.tests: line 167: syntax error: jv += $iv68 ./arith.tests: let: line 168: syntax error: rv = 7 + (43 * 666 ./arith.tests: let: line 166: arithmetic syntax error 67 ./arith.tests: line 167: arithmetic syntax error 68 ./arith.tests: let: line 168: arithmetic syntax error 69 69 abc 70 70 def 71 71 ghi 72 ./arith.tests: line 191: syntax error: ( 4 + A ) + 472 ./arith.tests: line 191: arithmetic syntax error 73 73 16 16 74 ./arith.tests: line 196: syntax error: 4 ? : 3 + 575 ./arith.tests: line 197: syntax error: 1 ? 2076 ./arith.tests: line 198: syntax error: 4 ? 20 :74 ./arith.tests: line 196: arithmetic syntax error 75 ./arith.tests: line 197: malformed ?: operator 76 ./arith.tests: line 198: arithmetic syntax error 77 77 9 9 78 ./arith.tests: line 205: syntax error: 0 && B=4279 ./arith.tests: line 208: syntax error: 1 || B=8878 ./arith.tests: line 205: arithmetic syntax error 79 ./arith.tests: line 208: arithmetic syntax error 80 80 9 9 81 81 9 9 … … 98 98 4 4 99 99 4 4 100 ./arith.tests: line 257: syntax error: 7--101 ./arith.tests: line 259: syntax error: --x=7102 ./arith.tests: line 260: syntax error: ++x=7103 ./arith.tests: line 262: syntax error: x++=7104 ./arith.tests: line 263: syntax error: x--=7100 ./arith.tests: line 257: arithmetic syntax error 101 ./arith.tests: line 259: arithmetic syntax error 102 ./arith.tests: line 260: arithmetic syntax error 103 ./arith.tests: line 262: arithmetic syntax error 104 ./arith.tests: line 263: arithmetic syntax error 105 105 4 4 106 106 7 7 107 107 -7 -7 108 ./arith1.sub: line 2: syntax error: 4--109 ./arith1.sub: line 3: syntax error: 4++110 ./arith1.sub: line 4: syntax error: 4 --111 ./arith1.sub: line 5: syntax error: 4 ++108 ./arith1.sub: line 2: arithmetic syntax error 109 ./arith1.sub: line 3: arithmetic syntax error 110 ./arith1.sub: line 4: arithmetic syntax error 111 ./arith1.sub: line 5: arithmetic syntax error 112 112 6 6 113 113 3 3 … … 120 120 -2 -2 121 121 1 1 122 ./arith1.sub: line 37: syntax error: +++7123 ./arith2.sub: line 2: syntax error: --7124 ./arith2.sub: line 3: syntax error: ++7125 ./arith2.sub: line 4: syntax error: -- 7126 ./arith2.sub: line 5: syntax error: ++ 7122 ./arith1.sub: line 37: arithmetic syntax error 123 ./arith2.sub: line 2: arithmetic syntax error 124 ./arith2.sub: line 3: arithmetic syntax error 125 ./arith2.sub: line 4: arithmetic syntax error 126 ./arith2.sub: line 5: arithmetic syntax error 127 127 5 5 128 128 1 1 129 129 4 4 130 130 0 0 131 ./arith2.sub: line 42: syntax error: -- - 7132 ./arith2.sub: line 47: syntax error: ++ + 7131 ./arith2.sub: line 42: arithmetic syntax error 132 ./arith2.sub: line 47: arithmetic syntax error 133 133 8 12 134 ./arith.tests: line 290: syntax error: a b134 ./arith.tests: line 290: arithmetic syntax error 135 135 42 136 136 42 -
branches/2.2.9/mindi-busybox/shell/ash_test/printenv.c
r1765 r2725 46 46 for (envp = environ; *envp; envp++) 47 47 puts (*envp); 48 exit (0);48 exit(EXIT_SUCCESS); 49 49 } 50 50 … … 60 60 { 61 61 puts (eval + 1); 62 exit (0);62 exit(EXIT_SUCCESS); 63 63 } 64 64 } 65 65 } 66 exit (1);66 exit(EXIT_FAILURE); 67 67 } -
branches/2.2.9/mindi-busybox/shell/ash_test/recho.c
r1765 r2725 30 30 void strprint(); 31 31 32 int 33 main(argc, argv) 34 int argc; 35 char **argv; 32 int main(int argc, char **argv) 36 33 { 37 register inti;34 int i; 38 35 39 36 for (i = 1; i < argc; i++) { … … 42 39 printf(">\n"); 43 40 } 44 exit( 0);41 exit(EXIT_SUCCESS); 45 42 } 46 43 47 void 48 strprint(str) 49 char *str; 44 void strprint(char *str) 50 45 { 51 registerunsigned char *s;46 unsigned char *s; 52 47 53 48 for (s = (unsigned char *)str; s && *s; s++) { -
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 -
branches/2.2.9/mindi-busybox/shell/ash_test/zecho.c
r1765 r2725 22 22 #include <stdlib.h> 23 23 24 int 25 main(argc, argv) 26 int argc; 27 char **argv; 24 int main(int argc, char **argv) 28 25 { 29 26 argv++; … … 36 33 37 34 putchar('\n'); 38 exit( 0);35 exit(EXIT_SUCCESS); 39 36 }
Note:
See TracChangeset
for help on using the changeset viewer.