aboutsummaryrefslogtreecommitdiffstats
path: root/test/Makefile.am
diff options
context:
space:
mode:
Diffstat (limited to 'test/Makefile.am')
-rw-r--r--test/Makefile.am10
1 files changed, 9 insertions, 1 deletions
diff --git a/test/Makefile.am b/test/Makefile.am
index ce28345f..bdb8831f 100644
--- a/test/Makefile.am
+++ b/test/Makefile.am
@@ -56,6 +56,9 @@ EXTRA_DIST = \
argarray.awk \
argarray.in \
argarray.ok \
+ argcasfile.awk \
+ argcasfile.in \
+ argcasfile.ok \
argtest.awk \
argtest.ok \
arrayind1.awk \
@@ -1378,7 +1381,7 @@ CLEANFILES = core core.* fmtspcl.ok
# try to keep these sorted. each letter starts a new line
BASIC_TESTS = \
- addcomma anchgsub anchor argarray arrayind1 arrayind2 arrayind3 arrayparm \
+ addcomma anchgsub anchor argarray argcasfile arrayind1 arrayind2 arrayind3 arrayparm \
arrayprm2 arrayprm3 arrayref arrymem1 arryref2 arryref3 arryref4 arryref5 \
arynasty arynocls aryprm1 aryprm2 aryprm3 aryprm4 aryprm5 aryprm6 aryprm7 \
aryprm8 aryprm9 arysubnm aryunasgn asgext awkpath \
@@ -2479,6 +2482,11 @@ iolint:
@-$(CMP) "$(srcdir)"/$@.ok _$@ && rm -f _$@
@-$(RM) -f cat 'echo hello' 'exec cat' f1 f2 md5sum
+argcasfile:
+ @echo $@
+ @$(AWK) -f "$(srcdir)"/$@.awk ARGC=1 /no/such/file < "$(srcdir)/$@.in" >_$@ 2>&1 || echo EXIT CODE: $$? >>_$@
+ @-$(CMP) "$(srcdir)"/$@.ok _$@ && rm -f _$@
+
# Targets generated for other tests:
include Maketests