diff options
-rw-r--r-- | test/ChangeLog | 5 | ||||
-rw-r--r-- | test/Makefile.am | 2 | ||||
-rw-r--r-- | test/Makefile.in | 2 | ||||
-rwxr-xr-x | test/beginfile2.sh | 2 |
4 files changed, 8 insertions, 3 deletions
diff --git a/test/ChangeLog b/test/ChangeLog index 21224fd7..3685aefe 100644 --- a/test/ChangeLog +++ b/test/ChangeLog @@ -1,3 +1,8 @@ +2011-10-21 Corinna Vinschen <vinschen@redhat.com> + + * Makefile.am (beginfile2): Adjust for running out of srcdir. + * beginfile2.sh: Same. + 2011-10-02 Arnold D. Robbins <arnold@skeeve.com> * Makefile.am (rtlen, rtlen01, rtlenmb): New tests. diff --git a/test/Makefile.am b/test/Makefile.am index 57d4d464..33078813 100644 --- a/test/Makefile.am +++ b/test/Makefile.am @@ -1390,7 +1390,7 @@ beginfile1:: beginfile2: @echo $@ - @-AWK="$(AWKPROG)" $(srcdir)/$@.sh $(srcdir)/$@.in > _$@ 2>&1 + @-( cd $(srcdir) && AWK="$(abs_builddir)/$(AWKPROG)" $(srcdir)/$@.sh $(srcdir)/$@.in ) > _$@ 2>&1 @-$(CMP) $(srcdir)/$@.ok _$@ && rm -f _$@ dumpvars:: diff --git a/test/Makefile.in b/test/Makefile.in index e5ff2005..6ad2cdd0 100644 --- a/test/Makefile.in +++ b/test/Makefile.in @@ -1741,7 +1741,7 @@ beginfile1:: beginfile2: @echo $@ - @-AWK="$(AWKPROG)" $(srcdir)/$@.sh $(srcdir)/$@.in > _$@ 2>&1 + @-( cd $(srcdir) && AWK="$(abs_builddir)/$(AWKPROG)" $(srcdir)/$@.sh $(srcdir)/$@.in ) > _$@ 2>&1 @-$(CMP) $(srcdir)/$@.ok _$@ && rm -f _$@ dumpvars:: diff --git a/test/beginfile2.sh b/test/beginfile2.sh index 19deef62..abf9efe0 100755 --- a/test/beginfile2.sh +++ b/test/beginfile2.sh @@ -2,7 +2,7 @@ # beginfile2.sh --- test BEGINFILE/ENDFILE/getline/nextfile/exit combinations -AWK="../gawk" +#AWK="../gawk" AWKPROG="beginfile2.in" SCRIPT=`basename $0` |