GNM_SUPPORT='@GNM_SUPPORT@'
GZIP=
export GZIP
+EXEEXT='@EXEEXT@'
PSQL_SUPPORT='@PSQL_SUPPORT@'
if test "$PSQL_SUPPORT" = yes; then
tests/formats/wkday-in.sh \
tests/formats/wkday-out.sh \
tests/formats/360.sh \
- tests/data/datasheet-test.sh \
tests/libpspp/sparse-xarray-test.sh \
tests/output/paper-size.sh \
tests/expressions/randist.sh \
TESTSUITE_AT = \
tests/data/calendar.at \
tests/data/data-in.at \
+ tests/data/datasheet-test.at \
tests/data/por-file.at \
tests/data/sys-file.at \
tests/language/command.at \
CHECK_LOCAL += tests_check
tests_check: tests/atconfig tests/atlocal $(TESTSUITE) $(check_PROGRAMS)
- $(SHELL) '$(TESTSUITE)' -C tests AUTOTEST_PATH=tests/libpspp:tests/output:src/ui/terminal $(TESTSUITEFLAGS)
+ $(SHELL) '$(TESTSUITE)' -C tests AUTOTEST_PATH=tests/data:tests/libpspp:tests/output:src/ui/terminal $(TESTSUITEFLAGS)
CLEAN_LOCAL += tests_clean
tests_clean:
--- /dev/null
+AT_BANNER([datasheet])
+
+m4_define([DATASHEET_TEST],
+ [AT_SETUP([$1x$2, $3 backing rows, backing widths $4])
+ AT_KEYWORDS([datasheet])
+ AT_CHECK(
+ [datasheet-test$EXEEXT --verbosity=0 --max-rows=$1 --max-columns=$2 \
+ --backing-rows=$3 --backing-widths=$4],
+ [0], [ignore], [ignore])
+ AT_CLEANUP])
+
+DATASHEET_TEST([3], [3], [0], [])
+DATASHEET_TEST([3], [3], [3], [0,0,0])
+DATASHEET_TEST([3], [3], [3], [0])
+DATASHEET_TEST([3], [3], [3], [5])
+DATASHEET_TEST([3], [3], [1], [0,9,0])
+++ /dev/null
-#!/bin/sh
-
-# This program tests the datasheet implementation.
-
-set -e
-
-: ${top_builddir:=.}
-RUN_TEST="${top_builddir}/tests/data/datasheet-test$EXEEXT --verbosity=0"
-
-$RUN_TEST --max-rows=3 --max-columns=3 --backing-rows=0 --backing-widths=
-$RUN_TEST --max-rows=3 --max-columns=3 --backing-rows=3 --backing-widths=0,0,0
-$RUN_TEST --max-rows=3 --max-columns=3 --backing-rows=3 --backing-widths=0
-$RUN_TEST --max-rows=3 --max-columns=3 --backing-rows=3 --backing-widths=5
-$RUN_TEST --max-rows=3 --max-columns=3 --backing-rows=1 --backing-widths=0,9,0