Fixed non-portable shell syntax in tests. Added a dist-hook target to check
[pspp-builds.git] / tests / automake.mk
index a905a010b9bac29b43021b1aa3519e6db49e0e7f..1dd783238fe6011ff710c5c2460e29217640a606 100644 (file)
@@ -49,6 +49,7 @@ dist_TESTS = \
        tests/command/rank.sh \
        tests/command/rename.sh \
        tests/command/regression.sh \
+       tests/command/regression-qr.sh \
        tests/command/sample.sh \
        tests/command/sort.sh \
        tests/command/sysfiles.sh \
@@ -310,3 +311,8 @@ EXTRA_DIST += \
 
 CLEANFILES += *.save pspp.* foo*
 
+dist-hook:
+       @if grep -q 'export .*=' $(dist_TESTS) ; then \
+        echo 'One or more tests contain non-portable "export VAR=val" syntax' ; \
+        false ; \
+       fi