Changeset 3232 in MondoRescue for branches/3.2/mindi-busybox/testsuite
- Timestamp:
- Jan 1, 2014, 12:47:38 AM (11 years ago)
- Location:
- branches/3.2/mindi-busybox/testsuite
- Files:
-
- 19 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/3.2/mindi-busybox/testsuite/awk.tests
r2725 r3232 17 17 testing "awk -F case 7" "awk -F '[#]' '{ print NF }'" "5\n" "" "z##abc##zz\n" 18 18 19 # conditions and operators 20 testing "awk if operator == " "awk 'BEGIN{if(23==23) print \"foo\"}'" "foo\n" "" "" 21 testing "awk if operator != " "awk 'BEGIN{if(23!=23) print \"bar\"}'" "" "" "" 22 testing "awk if operator >= " "awk 'BEGIN{if(23>=23) print \"foo\"}'" "foo\n" "" "" 23 testing "awk if operator < " "awk 'BEGIN{if(2 < 13) print \"foo\"}'" "foo\n" "" "" 24 testing "awk if string == " "awk 'BEGIN{if(\"a\"==\"ab\") print \"bar\"}'" "" "" "" 25 19 26 # 4294967295 = 0xffffffff 20 27 testing "awk bitwise op" "awk '{ print or(4294967295,1) }'" "4.29497e+09\n" "" "\n" … … 36 43 "" \ 37 44 "a--\na--b--\na--b--c--\na--b--c--d--" 45 46 testing "awk -F handles escapes" "awk -F'\\x21' '{print \$1}'" \ 47 "a\n" \ 48 "" \ 49 "a!b\n" 38 50 39 51 # '@(samp|code|file)\{' is an invalid extended regex (unmatched '{'), … … 203 215 "" "" 204 216 217 testing "awk handles empty ()" \ 218 "awk 'BEGIN {print()}' 2>&1" "awk: cmd. line:1: Empty sequence\n" "" "" 219 220 testing "awk FS assignment" "awk '{FS=\":\"; print \$1}'" \ 221 "a:b\ne\n" \ 222 "" \ 223 "a:b c:d\ne:f g:h" 224 225 # testing "description" "command" "result" "infile" "stdin" 226 205 227 exit $FAILCOUNT -
branches/3.2/mindi-busybox/testsuite/bzcat.tests
r2725 r3232 52 52 rm -rf testdir 53 53 54 55 56 # Copyright 2011 by Denys Vlasenko 57 # Licensed under GPLv2, see file LICENSE in this source tree. 58 59 . ./testing.sh 60 61 # testing "test name" "command" "expected result" "file input" "stdin" 62 63 # "input" file is bzipped file with "a\n" data 64 testing "bzcat can print many files" \ 65 "$ECHO -ne '$hexdump' | bzcat input input; echo \$?" \ 66 "\ 67 a 68 a 69 0 70 " "\ 71 \x42\x5a\x68\x39\x31\x41\x59\x26\x53\x59\x63\x3e\xd6\xe2\x00\x00\ 72 \x00\xc1\x00\x00\x10\x20\x00\x20\x00\x21\x00\x82\xb1\x77\x24\x53\ 73 \x85\x09\x06\x33\xed\x6e\x20\ 74 " "" 75 76 # "input" file is bzipped zero byte file 77 testing "bzcat can handle compressed zero-length bzip2 files" \ 78 "$ECHO -ne '$hexdump' | bzcat input input; echo \$?" \ 79 "0\n" \ 80 "\x42\x5a\x68\x39\x17\x72\x45\x38\x50\x90\x00\x00\x00\x00" "" 81 82 83 54 84 exit $((FAILCOUNT <= 255 ? FAILCOUNT : 255)) -
branches/3.2/mindi-busybox/testsuite/date/date-R-works
r2725 r3232 1 dt1="`date -R`" 2 # Wait for the start of next second 3 dt="$dt1" 4 while test x"$dt" = x"$dt1"; do 5 dt="`date -R`" 6 done 1 # When different date's use time() and clock_gettime(), 2 # seconds transition may not happen at _exactly_ the same moment. 3 # Therefore we try it several times. 7 4 8 test x"$dt" = x"`busybox date -R`" 5 test x"`date -R`" = x"`busybox date -R`" && exit 0 || true 6 test x"`date -R`" = x"`busybox date -R`" && exit 0 || true 7 test x"`date -R`" = x"`busybox date -R`" && exit 0 || true 8 test x"`date -R`" = x"`busybox date -R`" && exit 0 || true 9 test x"`date -R`" = x"`busybox date -R`" && exit 0 || true 10 test x"`date -R`" = x"`busybox date -R`" && exit 0 || true 11 test x"`date -R`" = x"`busybox date -R`" && exit 0 || true 12 test x"`date -R`" = x"`busybox date -R`" && exit 0 || true 13 false -
branches/3.2/mindi-busybox/testsuite/du/du-k-works
r2725 r3232 4 4 dd if=/dev/zero of=file2 bs=1k count=16 2>/dev/null 5 5 test x"`busybox du -k .`" = x"80 ." \ 6 -o x"`busybox du -k .`" = x"84 ." \ 6 7 -o x"`busybox du -k .`" = x"88 ." -
branches/3.2/mindi-busybox/testsuite/grep.tests
r2725 r3232 8 8 . ./testing.sh 9 9 10 # testing "test name" " options" "expected result" "file input" "stdin"10 # testing "test name" "commands" "expected result" "file input" "stdin" 11 11 # file input will be file called "input" 12 12 # test can create a file "actual" instead of writing to stdout … … 104 104 "" "test\n" 105 105 106 testing "grep -f EMPTY_FILE" \ 107 "grep -f input" \ 108 "" \ 109 "" \ 110 "test\n" 111 112 testing "grep -v -f EMPTY_FILE" \ 113 "grep -v -f input" \ 114 "test\n" \ 115 "" \ 116 "test\n" 117 118 testing "grep -Fw matches only words" \ 119 "grep -Fw foo input" \ 120 "" \ 121 "foop\n" \ 122 "" 123 124 testing "grep -Fw doesn't stop on 1st mismatch" \ 125 "grep -Fw foo input" \ 126 "foop foo\n" \ 127 "foop foo\n" \ 128 "" 129 130 # testing "test name" "commands" "expected result" "file input" "stdin" 131 # file input will be file called "input" 132 # test can create a file "actual" instead of writing to stdout 133 106 134 exit $FAILCOUNT -
branches/3.2/mindi-busybox/testsuite/ls.tests
r2725 r3232 252 252 ' "" "" 253 253 254 rm -rf ls.testdir 2>/dev/null 255 mkdir ls.testdir || exit 1 256 257 # testing "test name" "command" "expected result" "file input" "stdin" 258 259 test x"$CONFIG_FEATURE_LS_SORTFILES" = x"y" \ 260 && testing "ls symlink_to_dir" \ 261 "touch ls.testdir/A ls.testdir/B; ln -s ls.testdir ls.link; ls ls.link; ls -1 ls.link/; ls -1 ls.link; rm -f ls.link" \ 262 "A\nB\nA\nB\nA\nB\n" \ 263 "" "" 264 254 265 # Clean up 255 266 rm -rf ls.testdir 2>/dev/null -
branches/3.2/mindi-busybox/testsuite/mdev.tests
r2725 r3232 12 12 FILTER_LS2="grep -v '^total ' | sed -e 's/, */,/g' -e 's/ */ /g' | cut -d' ' -f 1-4,9-" 13 13 14 # testing "test name" " options" "expected result" "file input" "stdin"14 # testing "test name" "commands" "expected result" "file input" "stdin" 15 15 16 16 rm -rf mdev.testdir … … 123 123 mdev.testdir/dev/disk: 124 124 br--r--r-- 1 0 0 sda 125 " \ 126 "" "" 127 SKIP= 128 129 # continuing to use directory structure from prev test 130 rm -rf mdev.testdir/dev/* 131 echo "sda 0:0 444 =disk/sd/a" >mdev.testdir/etc/mdev.conf 132 optional STATIC FEATURE_MDEV_CONF FEATURE_MDEV_RENAME FEATURE_LS_RECURSIVE FEATURE_LS_TIMESTAMPS FEATURE_LS_USERNAME 133 testing "mdev move rule '=bar/baz/fname'" \ 134 "env - PATH=$PATH ACTION=add DEVPATH=/block/sda chroot mdev.testdir /mdev 2>&1; 135 ls -lnR mdev.testdir/dev | $FILTER_LS2" \ 136 "\ 137 mdev.testdir/dev: 138 drwxr-xr-x 3 0 0 disk 139 140 mdev.testdir/dev/disk: 141 drwxr-xr-x 2 0 0 sd 142 143 mdev.testdir/dev/disk/sd: 144 br--r--r-- 1 0 0 a 125 145 " \ 126 146 "" "" -
branches/3.2/mindi-busybox/testsuite/mkfs.minix.tests
r2725 r3232 9 9 # testing "test name" "options" "expected result" "file input" "stdin" 10 10 11 # '\n' produces 10 on little endian, but not on big endian 12 cr=`echo | od -i | sed 's/ *$//g;s/.* //g;2d'` 13 if [ x"$cr" = x"10" ]; then 14 hash=4f35f7afeba07d56055bed1f29ae20b7 15 else 16 hash=5adbc1b3ccd20ca5d0ab5bc1e13ac3fc 17 fi 18 11 19 testing "mkfs.minix" \ 12 20 "dd if=/dev/zero of=input bs=1k count=1024 2>/dev/null; mkfs.minix input; md5sum <input" \ … … 16 24 "Zonesize=1024\n"\ 17 25 "Maxsize=268966912\n"\ 18 " 4f35f7afeba07d56055bed1f29ae20b7-\n" \26 "$hash -\n" \ 19 27 "" \ 20 28 "" -
branches/3.2/mindi-busybox/testsuite/mount.tests
r2725 r3232 21 21 fi 22 22 23 testdir= $PWD/mount.testdir23 testdir="$PWD/mount.testdir" 24 24 25 25 dd if=/dev/zero of=mount.image1m count=1 bs=1M 2>/dev/null || { echo "dd error"; exit 1; } … … 37 37 "&& grep -Fc $testdir </proc/mounts "\ 38 38 "&& mount -o remount,mand $testdir "\ 39 "&& grep -F $testdir </proc/mounts | grep -c '[, ]mand[, ]'" \ 39 "&& grep -F $testdir </proc/mounts | grep -c '[, ]mand[, ]'"\ 40 "|| grep -F $testdir </proc/mounts" \ 40 41 "1\n""1\n" \ 41 42 "" "" … … 45 46 rm mount.image1m 46 47 48 49 # Bug: mount.shared1 directory shows no files (has to show files a and b) 50 optional FEATURE_LS_RECURSIVE FEATURE_LS_SORTFILES 51 testing "mount bind+rshared" "\ 52 mkdir -p mount.dir mount.shared1 mount.shared2 53 touch mount.dir/a mount.dir/b 54 55 mount --bind mount.shared1 mount.shared1 2>&1 56 mount --make-rshared mount.shared1 2>&1 57 mount --bind mount.shared2 mount.shared2 2>&1 58 mount --make-rshared mount.shared2 2>&1 59 60 mount --bind mount.shared2 mount.shared1 2>&1 61 mount --bind mount.dir mount.shared2 2>&1 62 63 ls -R mount.dir mount.shared1 mount.shared2 2>&1 64 65 umount mount.dir mount.shared1 mount.shared2 2>/dev/null 66 umount mount.dir mount.shared1 mount.shared2 2>/dev/null 67 umount mount.dir mount.shared1 mount.shared2 2>/dev/null 68 rm -f mount.dir/a mount.dir/b mount.dir/c 69 rmdir mount.dir mount.shared1 mount.shared2 70 " \ 71 "\ 72 mount.dir: 73 a 74 b 75 76 mount.shared1: 77 a 78 b 79 80 mount.shared2: 81 a 82 b 83 " \ 84 "" "" 85 SKIP= 86 87 88 testing "mount RO loop" "\ 89 exec 2>&1 90 umount -d mount.dir 2>/dev/null 91 rmdir mount.dir 2>/dev/null 92 mkdir -p mount.dir 93 ( 94 cd mount.dir || { echo 'cd error'; exit 1; } 95 mkdir z1 z2 || { echo 'mkdir error'; exit 1; } 96 mount -t tmpfs tmpfs z1 || { echo 'mount tmpfs error'; exit 1; } 97 dd if=/dev/zero of=z1/e2img count=10 bs=1M 2>/dev/null || { echo 'dd error'; exit 1; } 98 mke2fs -F z1/e2img 2>/dev/null >&2 || { echo 'mke2fs error'; exit 1; } 99 mount -r -o loop -t ext2 z1/e2img z2 || { echo 'mount -r -o loop error'; exit 1; } 100 mount -o remount,ro z1 || { echo 'mount -o remount,ro error'; exit 1; } 101 ) 102 umount -d mount.dir/z2 103 ##losetup -d /dev/loop* 104 umount -d mount.dir/z1 105 rm -rf mount.dir 106 echo DONE 107 " \ 108 "DONE\n" "" "" 109 110 47 111 exit $FAILCOUNT -
branches/3.2/mindi-busybox/testsuite/od.tests
r2725 r3232 5 5 . ./testing.sh 6 6 7 # testing "test name" " options" "expected result" "file input" "stdin"7 # testing "test name" "commands" "expected result" "file input" "stdin" 8 8 9 9 optional DESKTOP … … 17 17 SKIP= 18 18 19 optional DESKTOP LONG_OPTS 20 testing "od -b --traditional" \ 21 "od -b --traditional" \ 22 "\ 23 0000000 110 105 114 114 117 24 0000005 25 " \ 26 "" "HELLO" 27 SKIP= 28 29 optional DESKTOP LONG_OPTS 30 testing "od -b --traditional FILE" \ 31 "od -b --traditional input" \ 32 "\ 33 0000000 110 105 114 114 117 34 0000005 35 " \ 36 "HELLO" "" 37 SKIP= 38 19 39 exit $FAILCOUNT -
branches/3.2/mindi-busybox/testsuite/parse.tests
r2725 r3232 97 97 [option][domain][local] 98 98 [option][lease][864000] 99 [option][0x08][01020304] 99 100 EOF 100 101 -
branches/3.2/mindi-busybox/testsuite/patch.tests
r2725 r3232 176 176 " \ 177 177 178 # testing "test name" "command(s)" "expected result" "file input" "stdin" 179 testing "patch at the beginning" \ 180 'patch 2>&1; cat input' \ 181 "\ 182 patching file input 183 111changed 184 444 185 555 186 666 187 777 188 888 189 999 190 " \ 191 "\ 192 111 193 222 194 333 195 444 196 555 197 666 198 777 199 888 200 999 201 " \ 202 "\ 203 --- input 204 +++ input 205 @@ -1,6 +1,4 @@ 206 -111 207 -222 208 -333 209 +111changed 210 444 211 555 212 666 213 " \ 214 215 # testing "test name" "command(s)" "expected result" "file input" "stdin" 216 testing "patch creates new file" \ 217 'patch 2>&1; echo $?; cat testfile; rm testfile' \ 218 "\ 219 creating testfile 220 0 221 qwerty 222 " "" "\ 223 --- /dev/null 224 +++ testfile 225 @@ -0,0 +1 @@ 226 +qwerty 227 " 228 229 # testing "test name" "command(s)" "expected result" "file input" "stdin" 230 testing "patch understands ...dir///dir..." \ 231 'patch -p1 2>&1; echo $?' \ 232 "\ 233 patching file dir2///file 234 patch: can't open 'dir2///file': No such file or directory 235 1 236 " "" "\ 237 --- bogus_dir///dir2///file 238 +++ bogus_dir///dir2///file 239 @@ -1,2 +1,3 @@ 240 qwe 241 +asd 242 zxc 243 " 244 178 245 rm input.orig 2>/dev/null 179 246 -
branches/3.2/mindi-busybox/testsuite/runtest
r2725 r3232 75 75 *.r[0-9]*) continue ;; # svn-produced junk 76 76 esac 77 run_applet_testcase "$applet" "$testcase" || status=1 78 total_failed=$((total_failed + status)) 77 run_applet_testcase "$applet" "$testcase" || { 78 status=1 79 total_failed=$((total_failed + 1)) 80 } 79 81 done 80 82 return $status -
branches/3.2/mindi-busybox/testsuite/sed.tests
r2725 r3232 7 7 . ./testing.sh 8 8 9 # testing "description" " arguments" "result" "infile" "stdin"9 # testing "description" "commands" "result" "infile" "stdin" 10 10 11 11 # Corner cases … … 49 49 # substitutions 50 50 testing "sed -n" "sed -n -e s/foo/bar/ -e s/bar/baz/" "" "" "foo\n" 51 testing "sed with empty match" "sed 's/z*//g'" "string\n" "" "string\n" 51 52 testing "sed s//p" "sed -e s/foo/bar/p -e s/bar/baz/p" "bar\nbaz\nbaz\n" \ 52 53 "" "foo\n" 53 54 testing "sed -n s//p" "sed -ne s/abc/def/p" "def\n" "" "abc\n" 54 test x"$SKIP_KNOWN_BUGS" = x"" && {55 55 testing "sed s//g (exhaustive)" "sed -e 's/[[:space:]]*/,/g'" ",1,2,3,4,5,\n" \ 56 56 "" "12345\n" 57 }58 57 testing "sed s arbitrary delimiter" "sed -e 's woo boing '" "boing\n" "" "woo\n" 59 58 testing "sed s chains" "sed -e s/foo/bar/ -e s/bar/baz/" "baz\n" "" "foo\n" … … 226 225 # "" "12345" 227 226 228 # testing "description" " arguments" "result" "infile" "stdin"227 # testing "description" "commands" "result" "infile" "stdin" 229 228 230 229 testing "sed n command must reset 'substituted' bit" \ … … 288 287 "bar\nbar\n" "foo\n" "" 289 288 290 291 # testing "description" "arguments" "result" "infile" "stdin" 289 testing "sed understands \r" \ 290 "sed 's/r/\r/'" \ 291 "\rrr\n" "" "rrr\n" 292 293 testing "sed -i finishes ranges correctly" \ 294 "sed '1,2d' -i input; echo \$?; cat input" \ 295 "0\n3\n4\n" "1\n2\n3\n4\n" "" 296 297 testing "sed zero chars match/replace advances correctly 1" \ 298 "sed 's/l*/@/g'" \ 299 "@h@e@o@\n" "" "helllo\n" 300 301 testing "sed zero chars match/replace advances correctly 2" \ 302 "sed 's [^ .]* x g'" \ 303 "x x.x\n" "" " a.b\n" 304 305 testing "sed zero chars match/replace logic must not falsely trigger here 1" \ 306 "sed 's/a/A/g'" \ 307 "_AAA1AA\n" "" "_aaa1aa\n" 308 309 testing "sed zero chars match/replace logic must not falsely trigger here 2" \ 310 "sed 's/ *$/_/g'" \ 311 "qwerty_\n" "" "qwerty\n" 312 313 # testing "description" "commands" "result" "infile" "stdin" 292 314 293 315 exit $FAILCOUNT -
branches/3.2/mindi-busybox/testsuite/tail.tests
r2725 r3232 15 15 "" "qw" 16 16 17 testing "tail: -c +N with largish N" \ 18 " 19 dd if=/dev/zero bs=16k count=1 2>/dev/null | tail -c +8200 | wc -c; 20 dd if=/dev/zero bs=16k count=1 2>/dev/null | tail -c +8208 | wc -c; 21 " \ 22 "8185\n8177\n" \ 23 "" "" 24 17 25 exit $FAILCOUNT -
branches/3.2/mindi-busybox/testsuite/tar.tests
r2725 r3232 155 155 } 156 156 157 # Had a bug where on extract autodetect first "switched off" -z 158 # and then failed to recognize .tgz extension 159 optional FEATURE_TAR_CREATE FEATURE_SEAMLESS_GZ 160 testing "tar extract tgz" "\ 161 dd count=1 bs=1M if=/dev/zero of=F0 2>/dev/null 162 tar -czf F0.tgz F0 163 rm F0 164 tar -xzvf F0.tgz && echo Ok 165 rm F0 || echo BAD 166 " "\ 167 F0 168 Ok 169 " \ 170 "" "" 171 SKIP= 172 173 # Do we detect XZ-compressed data (even w/o .tar.xz or txz extension)? 174 # (the uuencoded hello_world.txz contains one empty file named "hello_world") 175 optional UUDECODE FEATURE_TAR_AUTODETECT FEATURE_SEAMLESS_XZ 176 testing "tar extract txz" "\ 177 uudecode -o input && tar tf input && echo Ok 178 " "\ 179 hello_world 180 Ok 181 " \ 182 "" "\ 183 begin-base64 644 hello_world.txz 184 /Td6WFoAAATm1rRGAgAhARYAAAB0L+Wj4AX/AEldADQZSe6ODIZQ3rSQ8kAJ 185 SnMPTX+XWGKW3Yu/Rwqg4Ik5wqgQKgVH97J8yA8IvZ4ahaCQogUNHRkXibr2 186 Q615wcb2G7fJU49AhWAAAAAAUA8gu9DyXfAAAWWADAAAAB5FXGCxxGf7AgAA 187 AAAEWVo= 188 ==== 189 " 190 SKIP= 191 192 # On extract, everything up to and including last ".." component is stripped 193 optional FEATURE_TAR_CREATE 194 testing "tar strips /../ on extract" "\ 195 rm -rf input_* test.tar 2>/dev/null 196 mkdir input_dir 197 echo Ok >input_dir/file 198 tar cf test.tar ./../tar.tempdir/input_dir/../input_dir 2>&1 199 rm -rf input_* 2>/dev/null 200 tar -vxf test.tar 2>&1 201 cat input_dir/file 2>&1 202 " "\ 203 tar: removing leading './../tar.tempdir/input_dir/../' from member names 204 input_dir/ 205 input_dir/file 206 Ok 207 " \ 208 "" "" 209 SKIP= 210 157 211 158 212 cd .. && rm -rf tar.tempdir || exit 1 -
branches/3.2/mindi-busybox/testsuite/tar/tar-extracts-all-subdirs
r1765 r3232 10 10 tar xf foo.tar -C foo ./1/10 11 11 find foo | sort >logfile.gnu 12 cmplogfile.gnu logfile.bb12 diff -u logfile.gnu logfile.bb -
branches/3.2/mindi-busybox/testsuite/testing.sh
r2725 r3232 88 88 $ECHO -ne "$3" > expected 89 89 $ECHO -ne "$4" > input 90 [ -z "$VERBOSE" ] || echo ====================== 90 91 [ -z "$VERBOSE" ] || echo "echo -ne '$4' >input" 91 92 [ -z "$VERBOSE" ] || echo "echo -ne '$5' | $2" -
branches/3.2/mindi-busybox/testsuite/uuencode.tests
r2725 r3232 9 9 . ./testing.sh 10 10 11 # testing "test name" " options" "expected result" "file input" "stdin"12 # 13 # 11 # testing "test name" "command(s)" "expected result" "file input" "stdin" 12 # file input will be file called "input" 13 # test can create a file "actual" instead of writing to stdout 14 14 15 15 # Test setup of standard input … … 25 25 "begin-base64 644 bb_uuenc_test.out\nVGhlIGZhc3QgZ3JleSBmb3gganVtcGVkIG92ZXIgdGhlIGxhenkgYnJvd24g\nZG9nLgo=\n====\n" \ 26 26 "" "The fast grey fox jumped over the lazy brown dog.\n" 27 28 testing "uuencode empty file" 'r=`uuencode FILE`; echo "$r"; echo "$r" | uudecode -o -;' \ 29 'begin 644 FILE 30 ` 31 end 32 ' "" "" 33 testing "uuencode -m empty file" 'r=`uuencode -m FILE`; echo "$r"; echo "$r" | uudecode -o -;' \ 34 'begin-base64 644 FILE 35 ==== 36 ' "" "" 37 38 testing "uuencode file 'A'" 'r=`uuencode FILE`; echo "$r"; echo "$r" | uudecode -o -;' \ 39 'begin 644 FILE 40 !00`` 41 ` 42 end 43 A' "" "A" 44 testing "uuencode -m file 'A'" 'r=`uuencode -m FILE`; echo "$r"; echo "$r" | uudecode -o -;' \ 45 'begin-base64 644 FILE 46 QQ== 47 ==== 48 A' "" "A" 49 50 testing "uuencode file 'AB'" 'r=`uuencode FILE`; echo "$r"; echo "$r" | uudecode -o -;' \ 51 'begin 644 FILE 52 "04(` 53 ` 54 end 55 AB' "" "AB" 56 testing "uuencode -m file 'AB'" 'r=`uuencode -m FILE`; echo "$r"; echo "$r" | uudecode -o -;' \ 57 'begin-base64 644 FILE 58 QUI= 59 ==== 60 AB' "" "AB" 61 62 testing "uuencode file 'ABC'" 'r=`uuencode FILE`; echo "$r"; echo "$r" | uudecode -o -;' \ 63 'begin 644 FILE 64 #04)# 65 ` 66 end 67 ABC' "" "ABC" 68 testing "uuencode -m file 'ABC'" 'r=`uuencode -m FILE`; echo "$r"; echo "$r" | uudecode -o -;' \ 69 'begin-base64 644 FILE 70 QUJD 71 ==== 72 ABC' "" "ABC" 73 74 testing "uuencode file 'ABCD'" 'r=`uuencode FILE`; echo "$r"; echo "$r" | uudecode -o -;' \ 75 'begin 644 FILE 76 $04)#1``` 77 ` 78 end 79 ABCD' "" "ABCD" 80 testing "uuencode -m file 'ABCD'" 'r=`uuencode -m FILE`; echo "$r"; echo "$r" | uudecode -o -;' \ 81 'begin-base64 644 FILE 82 QUJDRA== 83 ==== 84 ABCD' "" "ABCD" 85 86 testing "uuencode file 'ABCDE'" 'r=`uuencode FILE`; echo "$r"; echo "$r" | uudecode -o -;' \ 87 'begin 644 FILE 88 %04)#1$4` 89 ` 90 end 91 ABCDE' "" "ABCDE" 92 testing "uuencode -m file 'ABCDE'" 'r=`uuencode -m FILE`; echo "$r"; echo "$r" | uudecode -o -;' \ 93 'begin-base64 644 FILE 94 QUJDREU= 95 ==== 96 ABCDE' "" "ABCDE" 97 98 testing "uuencode file 'ABCDEF'" 'r=`uuencode FILE`; echo "$r"; echo "$r" | uudecode -o -;' \ 99 'begin 644 FILE 100 &04)#1$5& 101 ` 102 end 103 ABCDEF' "" "ABCDEF" 104 testing "uuencode -m file 'ABCDEF'" 'r=`uuencode -m FILE`; echo "$r"; echo "$r" | uudecode -o -;' \ 105 'begin-base64 644 FILE 106 QUJDREVG 107 ==== 108 ABCDEF' "" "ABCDEF" 109 110 testing "uuencode file 'A<NUL><0xff>Z'" 'r=`uuencode FILE`; echo "$r"; echo "$r" | uudecode -o -;' \ 111 'begin 644 FILE 112 $00#_6@`` 113 ` 114 end 115 A\x0\xffZ' "" "A\x0\xffZ" 116 testing "uuencode -m file 'A<NUL><0xff>Z'" 'r=`uuencode -m FILE`; echo "$r"; echo "$r" | uudecode -o -;' \ 117 'begin-base64 644 FILE 118 QQD/Wg== 119 ==== 120 A\x0\xffZ' "" "A\x0\xffZ" 121 27 122 exit $FAILCOUNT
Note:
See TracChangeset
for help on using the changeset viewer.