diff options
author | Arnold D. Robbins <arnold@skeeve.com> | 2012-09-11 22:11:32 +0300 |
---|---|---|
committer | Arnold D. Robbins <arnold@skeeve.com> | 2012-09-11 22:11:32 +0300 |
commit | 47f2bd34643ceda78773e5abbfa466c2f898a815 (patch) | |
tree | 653d93b973bee1ebd235c9bb30a038fe47ca391d | |
parent | c6cf44eef1b7c80f4dbdaa74eddbf7a67636f84f (diff) | |
download | egawk-47f2bd34643ceda78773e5abbfa466c2f898a815.tar.gz egawk-47f2bd34643ceda78773e5abbfa466c2f898a815.tar.bz2 egawk-47f2bd34643ceda78773e5abbfa466c2f898a815.zip |
Only run shlib tests on systems that support them.
-rw-r--r-- | test/ChangeLog | 6 | ||||
-rw-r--r-- | test/Makefile.am | 8 | ||||
-rw-r--r-- | test/Makefile.in | 8 |
3 files changed, 20 insertions, 2 deletions
diff --git a/test/ChangeLog b/test/ChangeLog index 135251af..ff992365 100644 --- a/test/ChangeLog +++ b/test/ChangeLog @@ -1,3 +1,9 @@ +2012-09-11 Arnold D. Robbins <arnold@skeeve.com> + + * Makefile.am (shlib-tests): Check if DYNAMIC is enabled and + only if so run the tests. A bit hacky. Needed at least for + z/OS. + 2012-09-07 Arnold D. Robbins <arnold@skeeve.com> * readdir.awk: Change argument to readdir_do_ftype(). diff --git a/test/Makefile.am b/test/Makefile.am index 60b50a87..962ab6b2 100644 --- a/test/Makefile.am +++ b/test/Makefile.am @@ -985,7 +985,13 @@ machine-tests: $(MACHINE_TESTS) mpfr-tests: $(MPFR_TESTS) -shlib-tests: $(SHLIB_TESTS) +shlib-tests: + @if grep 'DYNAMIC 1' $(top_srcdir)/config.h > /dev/null ; then \ + $(MAKE) shlib-real-tests ; \ + else echo shlib tests not supported on this system ; \ + fi + +shlib-real-tests: $(SHLIB_TESTS) msg:: @echo '' diff --git a/test/Makefile.in b/test/Makefile.in index 4cda1d44..cc8091a0 100644 --- a/test/Makefile.in +++ b/test/Makefile.in @@ -1369,7 +1369,13 @@ machine-tests: $(MACHINE_TESTS) mpfr-tests: $(MPFR_TESTS) -shlib-tests: $(SHLIB_TESTS) +shlib-tests: + @if grep 'DYNAMIC 1' $(top_srcdir)/config.h > /dev/null ; then \ + $(MAKE) shlib-real-tests ; \ + else echo shlib tests not supported on this system ; \ + fi + +shlib-real-tests: $(SHLIB_TESTS) msg:: @echo '' |