diff options
author | Arnold D. Robbins <arnold@skeeve.com> | 2010-07-16 12:18:27 +0300 |
---|---|---|
committer | Arnold D. Robbins <arnold@skeeve.com> | 2010-07-16 12:18:27 +0300 |
commit | e1ef22d366abd1f9ec95eb495c727d55181c8584 (patch) | |
tree | cc0fee624202820eb928e60b6a096362c85ff807 /test | |
parent | cae8bc6ced84c12590e3554a06a952283735363a (diff) | |
download | egawk-e1ef22d366abd1f9ec95eb495c727d55181c8584.tar.gz egawk-e1ef22d366abd1f9ec95eb495c727d55181c8584.tar.bz2 egawk-e1ef22d366abd1f9ec95eb495c727d55181c8584.zip |
Move to 2.15.
Diffstat (limited to 'test')
-rw-r--r-- | test/Makefile | 27 | ||||
-rw-r--r-- | test/fieldwdth.good (renamed from test/fieldwidths.good) | 0 | ||||
-rw-r--r-- | test/ignrcase.good (renamed from test/ignorecase.good) | 0 | ||||
-rwxr-xr-x | test/pound-bang | 3 | ||||
-rw-r--r-- | test/pound-bang.good | 1 | ||||
-rwxr-xr-x | test/poundbang | 3 | ||||
-rw-r--r-- | test/poundbang.good | 1 |
7 files changed, 18 insertions, 17 deletions
diff --git a/test/Makefile b/test/Makefile index dcf4f15f..cbe054fd 100644 --- a/test/Makefile +++ b/test/Makefile @@ -1,19 +1,19 @@ SHELL = /bin/sh -all: msg swaplns messages argarray longwrds \ - getline inftest fstabplus compare arrayref rs fsrs rand \ - fsbs negexp asgext anchgsub splitargv awkpath nfset reparse +bigtest: basic poundbang gawk.extensions -gawk.extensions: fieldwidths ignorecase posix manyfiles igncfs +basic: msg swaplns messages argarray longwrds \ + getline fstabplus compare arrayref rs fsrs rand \ + fsbs negexp asgext anchgsub splitargv awkpath nfset reparse -bigtest: all pound-bang gawk.extensions +gawk.extensions: fieldwdth ignrcase posix manyfiles igncfs -extra: regtest +extra: regtest inftest -pound-bang:: - cp ../gawk /tmp && chmod +x pound-bang && ./pound-bang pound-bang >tmp +poundbang:: + cp ../gawk /tmp && chmod +x poundbang && ./poundbang poundbang >tmp rm -f /tmp/gawk - cmp pound-bang.good tmp && rm -f tmp + cmp poundbang.good tmp && rm -f tmp msg:: @echo 'Any output from "cmp" is bad news, although some differences' @@ -50,13 +50,13 @@ longwrds:: @../gawk -f longwrds.awk manpage | sort >tmp cmp longwrds.good tmp && rm -f tmp -fieldwidths:: +fieldwdth:: @echo '123456789' | ../gawk -v FIELDWIDTHS="2 3 4" '{print $$2}' >tmp - cmp fieldwidths.good tmp && rm -f tmp + cmp fieldwdth.good tmp && rm -f tmp -ignorecase:: +ignrcase:: @echo xYz | ../gawk -v IGNORECASE=1 '{sub(/y/, ""); print}' >tmp - cmp ignorecase.good tmp && rm -f tmp + cmp ignrcase.good tmp && rm -f tmp regtest:: @echo 'Some of the output from regtest is very system specific, do not' @@ -93,6 +93,7 @@ fsbs:: cmp fsbs.good tmp && rm -f tmp inftest:: + @echo This test is very machine specific... @../gawk -f inftest.awk >tmp cmp inftest.good tmp && rm -f tmp diff --git a/test/fieldwidths.good b/test/fieldwdth.good index 51b40081..51b40081 100644 --- a/test/fieldwidths.good +++ b/test/fieldwdth.good diff --git a/test/ignorecase.good b/test/ignrcase.good index d66e95ca..d66e95ca 100644 --- a/test/ignorecase.good +++ b/test/ignrcase.good diff --git a/test/pound-bang b/test/pound-bang deleted file mode 100755 index a1c24d2b..00000000 --- a/test/pound-bang +++ /dev/null @@ -1,3 +0,0 @@ -#! /tmp/gawk -f - { ccount += length($0) } -END { print "average line length is", ccount/NR} diff --git a/test/pound-bang.good b/test/pound-bang.good deleted file mode 100644 index a94f6a99..00000000 --- a/test/pound-bang.good +++ /dev/null @@ -1 +0,0 @@ -average line length is 29.6667 diff --git a/test/poundbang b/test/poundbang new file mode 100755 index 00000000..d60652e3 --- /dev/null +++ b/test/poundbang @@ -0,0 +1,3 @@ +#! /tmp/gawk -f + { ccount += length($0) } +END { printf "average line length is %2.4f\n", ccount/NR} diff --git a/test/poundbang.good b/test/poundbang.good new file mode 100644 index 00000000..143e28dd --- /dev/null +++ b/test/poundbang.good @@ -0,0 +1 @@ +average line length is 32.6667 |