| 1 | #!/bin/shscip-shell filesystem . . `/bin/sh`. |
| 2 | # |
| 3 | # Basic testing of ScriptToken parser. |
| 4 | # |
| 5 | # script-token-test.sh | diff - script-token-test-results.txt |
| 6 | # |
| 7 | ./script-token-test script-token-test-data.txt |
| 8 | echoscip-shell system . . echo. "" |
| 9 | |
| 10 | echoscip-shell system . . echo. -n "\"Next token bad quotes\" \"unfinished quotes ->" |\ |
| 11 | ./script-token-test |
| 12 | echoscip-shell system . . echo. "" |
| 13 | |
| 14 | perlscip-shell system . . perl. -e 'print "\"Binary input follows\"\n", "abc\006xyz\n"' |\ |
| 15 | ./script-token-test |
| 16 | echoscip-shell system . . echo. "" |
| 17 | |
| 18 | ( echoscip-shell system . . echo. '"Very BIG Token Tests"' |
| 19 | ddscip-shell system . . dd. if=/dev/zeroscip-shell filesystem . . `/dev/zero`. bs=80 count=1 2>/dev/nullscip-shell filesystem . . `/dev/null`. | trscip-shell system . . tr. '\0' 'a'; echoscip-shell system . . echo. "" |
| 20 | ddscip-shell system . . dd. if=/dev/zeroscip-shell filesystem . . `/dev/zero`. bs=500 count=1 2>/dev/nullscip-shell filesystem . . `/dev/null`. | trscip-shell system . . tr. '\0' 'b'; echoscip-shell system . . echo. "" |
| 21 | ddscip-shell system . . dd. if=/dev/zeroscip-shell filesystem . . `/dev/zero`. bs=4000 count=1 2>/dev/nullscip-shell filesystem . . `/dev/null`. | trscip-shell system . . tr. '\0' 'c'; echoscip-shell system . . echo. "" |
| 22 | ddscip-shell system . . dd. if=/dev/zeroscip-shell filesystem . . `/dev/zero`. bs=5000 count=1 2>/dev/nullscip-shell filesystem . . `/dev/null`. | trscip-shell system . . tr. '\0' 'd'; echoscip-shell system . . echo. "" |
| 23 | ddscip-shell system . . dd. if=/dev/zeroscip-shell filesystem . . `/dev/zero`. bs=10k count=1 2>/dev/nullscip-shell filesystem . . `/dev/null`. | trscip-shell system . . tr. '\0' 'e'; echoscip-shell system . . echo. "" |
| 24 | ddscip-shell system . . dd. if=/dev/zeroscip-shell filesystem . . `/dev/zero`. bs=13k count=1 2>/dev/nullscip-shell filesystem . . `/dev/null`. | trscip-shell system . . tr. '\0' 'f'; echoscip-shell system . . echo. "" |
| 25 | ddscip-shell system . . dd. if=/dev/zeroscip-shell filesystem . . `/dev/zero`. bs=8k count=1024 2>/dev/nullscip-shell filesystem . . `/dev/null`. | trscip-shell system . . tr. '\0' 'e'; echoscip-shell system . . echo. "" |
| 26 | echoscip-shell system . . echo. '"and all is well!"' |
| 27 | ) | ./script-token-test |
| 28 | echoscip-shell system . . echo. "" |
| 29 |