diff options
author | Arnold D. Robbins <arnold@skeeve.com> | 2017-03-20 21:24:51 +0200 |
---|---|---|
committer | Arnold D. Robbins <arnold@skeeve.com> | 2017-03-20 21:24:51 +0200 |
commit | a9b388f5902d8d06eeb2e742c7cea3c8f49cc2d0 (patch) | |
tree | 4e9465ca331406b17e32d2861e7095e935a0b06f /test | |
parent | 39c46265139aa8faf87160b30710876bde4c6ba9 (diff) | |
parent | efc7e96c876ccf3b83ab3249eca852a0292ff943 (diff) | |
download | egawk-a9b388f5902d8d06eeb2e742c7cea3c8f49cc2d0.tar.gz egawk-a9b388f5902d8d06eeb2e742c7cea3c8f49cc2d0.tar.bz2 egawk-a9b388f5902d8d06eeb2e742c7cea3c8f49cc2d0.zip |
Merge branch 'master' into feature/api-parser
Diffstat (limited to 'test')
-rw-r--r-- | test/ChangeLog | 7 | ||||
-rw-r--r-- | test/Makefile.am | 12 | ||||
-rw-r--r-- | test/Makefile.in | 12 | ||||
-rw-r--r-- | test/argarray.ok | 4 |
4 files changed, 15 insertions, 20 deletions
diff --git a/test/ChangeLog b/test/ChangeLog index acd2bf72..ad1b35b1 100644 --- a/test/ChangeLog +++ b/test/ChangeLog @@ -1,3 +1,10 @@ +2017-03-19 Andrew J. Schorr <aschorr@telemetry-investments.com> + + * Makefile.am (argarray): Always copy argarray.in to the local + directory as argarray.input instead of trying to figure out whether + $(srcdir) is the current directory. + * argarray.ok: Replace argarray.in with argarray.input. + 2017-03-06 Andrew J. Schorr <aschorr@telemetry-investments.com> * Makefile.am (readdir_test): New test to check whether get_record diff --git a/test/Makefile.am b/test/Makefile.am index c41e9dd9..855958f1 100644 --- a/test/Makefile.am +++ b/test/Makefile.am @@ -1461,15 +1461,9 @@ messages:: argarray:: @echo $@ - @case "$(srcdir)" in \ - .) : ;; \ - *) cp "$(srcdir)"/argarray.in . ;; \ - esac - @TEST=test echo just a test | $(AWK) -f "$(srcdir)"/argarray.awk ./argarray.in - >_$@ - @case "$(srcdir)" in \ - .) : ;; \ - *) rm -f ./argarray.in ;; \ - esac + @cp "$(srcdir)"/argarray.in ./argarray.input + @TEST=test echo just a test | $(AWK) -f "$(srcdir)"/argarray.awk ./argarray.input - >_$@ + @rm -f ./argarray.input @-$(CMP) "$(srcdir)"/$@.ok _$@ && rm -f _$@ regtest:: diff --git a/test/Makefile.in b/test/Makefile.in index c07bc6d7..c23156df 100644 --- a/test/Makefile.in +++ b/test/Makefile.in @@ -1901,15 +1901,9 @@ messages:: argarray:: @echo $@ - @case "$(srcdir)" in \ - .) : ;; \ - *) cp "$(srcdir)"/argarray.in . ;; \ - esac - @TEST=test echo just a test | $(AWK) -f "$(srcdir)"/argarray.awk ./argarray.in - >_$@ - @case "$(srcdir)" in \ - .) : ;; \ - *) rm -f ./argarray.in ;; \ - esac + @cp "$(srcdir)"/argarray.in ./argarray.input + @TEST=test echo just a test | $(AWK) -f "$(srcdir)"/argarray.awk ./argarray.input - >_$@ + @rm -f ./argarray.input @-$(CMP) "$(srcdir)"/$@.ok _$@ && rm -f _$@ regtest:: diff --git a/test/argarray.ok b/test/argarray.ok index 18eb841c..3c026634 100644 --- a/test/argarray.ok +++ b/test/argarray.ok @@ -1,9 +1,9 @@ here we have 3 arguments which are gawk - ./argarray.in + ./argarray.input - Environment variable TEST= and the current input file is called "" -in main loop, this input file is known as "./argarray.in" +in main loop, this input file is known as "./argarray.input" in main loop, this input file is known as "-" |