Replace "sed" with "$(SED)" in Makefiles
[pspp] / tests / automake.mk
index 28159d4c13b63a27c3174946ffe382408feac659..561f23bfcefabfb38f56a536134b06c9d7a135c2 100644 (file)
@@ -31,6 +31,8 @@ check_PROGRAMS += \
        tests/libpspp/tower-test \
        tests/libpspp/u8-istream-test \
        tests/libpspp/zip-test \
+       tests/math/chart-get-ticks-format-test \
+       tests/math/chart-get-scale-test \
        tests/output/render-test \
        tests/ui/syntax-gen-test
 
@@ -209,6 +211,22 @@ tests_libpspp_zip_test_LDADD = \
        src/libpspp-core.la \
        gl/libgl.la 
 
+check_PROGRAMS += tests/math/chart-get-scale-test
+tests_math_chart_get_scale_test_SOURCES = tests/math/chart-get-scale-test.c
+tests_math_chart_get_scale_test_LDADD = \
+       src/math/libpspp-math.la \
+       src/libpspp/liblibpspp.la \
+       src/libpspp-core.la \
+       gl/libgl.la
+
+check_PROGRAMS += tests/math/chart-get-ticks-format-test
+tests_math_chart_get_ticks_format_test_SOURCES = tests/math/chart-get-ticks-format-test.c
+tests_math_chart_get_ticks_format_test_LDADD = \
+       src/math/libpspp-math.la \
+       src/libpspp/liblibpspp.la \
+       src/libpspp-core.la \
+       gl/libgl.la
+
 check_PROGRAMS += tests/output/render-test
 tests_output_render_test_SOURCES = tests/output/render-test.c
 tests_output_render_test_LDADD = \
@@ -237,9 +255,11 @@ EXTRA_DIST += \
        tests/data/num-out.expected.cmp.gz \
        tests/data/v13.sav \
        tests/data/v14.sav \
+       tests/data/test-encrypted.sps \
        tests/language/data-io/Book1.gnm.unzipped \
        tests/language/data-io/test.ods \
-       tests/language/data-io/newone.ods
+       tests/language/data-io/newone.ods \
+       tests/language/stats/llz.zsav
 
 CLEANFILES += *.save pspp.* foo*
 \f
@@ -259,11 +279,13 @@ TESTSUITE_AT = \
        tests/data/data-out.at \
        tests/data/datasheet-test.at \
        tests/data/dictionary.at \
+       tests/data/file.at \
        tests/data/format-guesser.at \
+       tests/data/pc+-file-reader.at \
        tests/data/por-file.at \
        tests/data/sys-file-reader.at \
        tests/data/sys-file.at \
-       tests/data/sys-file-encryption.at \
+       tests/data/encrypted-file.at \
        tests/language/command.at \
        tests/language/control/do-if.at \
        tests/language/control/do-repeat.at \
@@ -312,6 +334,7 @@ TESTSUITE_AT = \
        tests/language/stats/crosstabs.at \
        tests/language/stats/descriptives.at \
        tests/language/stats/examine.at \
+       tests/language/stats/graph.at \
        tests/language/stats/factor.at \
        tests/language/stats/flip.at \
        tests/language/stats/frequencies.at \
@@ -364,6 +387,7 @@ TESTSUITE_AT = \
        tests/libpspp/tower.at \
        tests/libpspp/u8-istream.at \
        tests/libpspp/zip.at \
+       tests/math/chart-geometry.at \
        tests/math/moments.at \
        tests/math/randist.at \
        tests/output/ascii.at \
@@ -381,8 +405,8 @@ DISTCLEANFILES += tests/atconfig tests/atlocal $(TESTSUITE)
 AUTOTEST_PATH = tests/data:tests/language/lexer:tests/libpspp:tests/output:src/ui/terminal:utilities
 
 $(srcdir)/tests/testsuite.at: tests/testsuite.in tests/automake.mk
-       cp $< $@
-       for t in $(TESTSUITE_AT); do \
+       $(AM_V_GEN)cp $< $@
+       $(AM_V_at)for t in $(TESTSUITE_AT); do \
          echo "m4_include([$$t])" >> $@ ;\
        done
 EXTRA_DIST += tests/testsuite.at
@@ -398,12 +422,12 @@ tests_clean:
 AUTOM4TE = $(SHELL) $(srcdir)/build-aux/missing --run autom4te
 AUTOTEST = $(AUTOM4TE) --language=autotest
 $(TESTSUITE): package.m4 $(srcdir)/tests/testsuite.at $(TESTSUITE_AT) 
-       $(AUTOTEST) -I '$(srcdir)' $@.at | sed 's/@<00A0>@/ /g' > $@.tmp
-       mv $@.tmp $@
+       $(AM_V_GEN)$(AUTOTEST) -I '$(srcdir)' $@.at | $(SED) 's/@<00A0>@/ /g' > $@.tmp
+       $(AM_V_at)mv $@.tmp $@
 
 # The `:;' works around a Bash 3.2 bug when the output is not writeable.
 $(srcdir)/package.m4: $(top_srcdir)/configure.ac
-       :;{ \
+       $(AM_V_GEN):;{ \
          echo '# Signature of the current package.' && \
          echo 'm4_define([AT_PACKAGE_NAME],      [$(PACKAGE_NAME)])' && \
          echo 'm4_define([AT_PACKAGE_TARNAME],   [$(PACKAGE_TARNAME)])' && \
@@ -447,10 +471,10 @@ valgrind_wrappers = \
 
 $(valgrind_wrappers): tests/valgrind-wrapper.in
        @$(MKDIR_P) tests/valgrind
-       sed -e 's,[@]wrap_program[@],$@,' \
+       $(AM_V_GEN)$(SED) -e 's,[@]wrap_program[@],$@,' \
                $(top_srcdir)/tests/valgrind-wrapper.in > $@.tmp
-       chmod +x $@.tmp
-       mv $@.tmp $@
+       $(AM_V_at)chmod +x $@.tmp
+       $(AM_V_at)mv $@.tmp $@
 CLEANFILES += $(valgrind_wrappers)
 EXTRA_DIST += tests/valgrind-wrapper.in