aboutsummaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
authorArnold D. Robbins <arnold@skeeve.com>2017-03-20 21:26:06 +0200
committerArnold D. Robbins <arnold@skeeve.com>2017-03-20 21:26:06 +0200
commit34f44e49e257d48eb1db3bc4d78c2b9ceb331717 (patch)
treeb247bd82ba77ac5a6e5466b231fa97141ef6196d /test
parentd3d3f38ef66954d54fa687d49872ed968c391a3b (diff)
parentefc7e96c876ccf3b83ab3249eca852a0292ff943 (diff)
downloadegawk-34f44e49e257d48eb1db3bc4d78c2b9ceb331717.tar.gz
egawk-34f44e49e257d48eb1db3bc4d78c2b9ceb331717.tar.bz2
egawk-34f44e49e257d48eb1db3bc4d78c2b9ceb331717.zip
Merge branch 'master' into feature/stringfix
Diffstat (limited to 'test')
-rw-r--r--test/ChangeLog7
-rw-r--r--test/Makefile.am12
-rw-r--r--test/Makefile.in12
-rw-r--r--test/argarray.ok4
4 files changed, 15 insertions, 20 deletions
diff --git a/test/ChangeLog b/test/ChangeLog
index 5f3c349c..6aea1662 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-02-21 Andrew J. Schorr <aschorr@telemetry-investments.com>
* Makefile.am (mktime): New test.
diff --git a/test/Makefile.am b/test/Makefile.am
index 1f482122..e29d5d9a 100644
--- a/test/Makefile.am
+++ b/test/Makefile.am
@@ -1464,15 +1464,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 7059b73d..84b8a8f7 100644
--- a/test/Makefile.in
+++ b/test/Makefile.in
@@ -1904,15 +1904,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 "-"