summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
Diffstat (limited to 'tests')
-rw-r--r--tests/Makefile.am25
-rw-r--r--tests/aplwc.bin/example.exp2
-rw-r--r--tests/aplwc.lib/example.exp3
-rw-r--r--tests/atlocal.in1
-rw-r--r--tests/lib/aplwc.exp1
-rw-r--r--tests/package.m4.in6
-rw-r--r--tests/testsuite.at19
7 files changed, 12 insertions, 45 deletions
diff --git a/tests/Makefile.am b/tests/Makefile.am
index 44e31d3..086e276 100644
--- a/tests/Makefile.am
+++ b/tests/Makefile.am
@@ -1,19 +1,6 @@
-TESTSUITE_SRC = $(srcdir)/testsuite.at
-TESTSUITE = $(builddir)/testsuite
-EXTRA_DIST = $(TESTSUITE_SRC)
-
-DISTCLEANFILES = $(TESTSUITE) atconfig
-
-AUTOM4TE = $(SHELL) $(top_srcdir)/build-aux/missing --run autom4te
-AUTOTEST = $(AUTOM4TE) --language=autotest
-
-$(TESTSUITE): $(TESTSUITE_SRC)
- $(AUTOTEST) $(TESTSUITE_SRC) > $(TESTSUITE)
-
-check-local: $(TESTSUITE)
- $(SHELL) $(TESTSUITE)
-
-clean-local:
- test ! -f $(TESTSUITE) || \
- $(SHELL) $(TESTSUITE) --clean
-
+AUTOMAKE_OPTIONS = dejagnu
+CLEANFILES = *.log *.sum site.*
+EXTRA_DIST = \
+ lib/*.exp \
+ aplwc.bin/*.exp \
+ aplwc.lib/*.exp
diff --git a/tests/aplwc.bin/example.exp b/tests/aplwc.bin/example.exp
new file mode 100644
index 0000000..15ba15c
--- /dev/null
+++ b/tests/aplwc.bin/example.exp
@@ -0,0 +1,2 @@
+spawn "${aplwc_bin}"
+fail "not implemented"
diff --git a/tests/aplwc.lib/example.exp b/tests/aplwc.lib/example.exp
new file mode 100644
index 0000000..92e00d8
--- /dev/null
+++ b/tests/aplwc.lib/example.exp
@@ -0,0 +1,3 @@
+spawn "${aplwc_bin}"
+fail "not implemented"
+
diff --git a/tests/atlocal.in b/tests/atlocal.in
deleted file mode 100644
index d105ffc..0000000
--- a/tests/atlocal.in
+++ /dev/null
@@ -1 +0,0 @@
-PATH=@abs_top_builddir@/src:$PATH
diff --git a/tests/lib/aplwc.exp b/tests/lib/aplwc.exp
new file mode 100644
index 0000000..4406dff
--- /dev/null
+++ b/tests/lib/aplwc.exp
@@ -0,0 +1 @@
+set aplwc_bin "${objdir}/../src/aplwc"
diff --git a/tests/package.m4.in b/tests/package.m4.in
deleted file mode 100644
index 6db7b87..0000000
--- a/tests/package.m4.in
+++ /dev/null
@@ -1,6 +0,0 @@
-m4_define([AT_PACKAGE_NAME], [@PACKAGE_NAME@]);
-m4_define([AT_PACKAGE_TARNAME], [@PACKAGE_TARNAME@]);
-m4_define([AT_PACKAGE_VERSION], [@PACKAGE_VERSION@]);
-m4_define([AT_PACKAGE_STRING], [@PACKAGE_STRING@]);
-m4_define([AT_PACKAGE_BUGREPORT], [@PACKAGE_BUGREPORT@]);
-m4_define([AT_PACKAGE_URL], [@PACKAGE_URL@]);
diff --git a/tests/testsuite.at b/tests/testsuite.at
deleted file mode 100644
index 41af6b5..0000000
--- a/tests/testsuite.at
+++ /dev/null
@@ -1,19 +0,0 @@
-AT_INIT([aplwc-repl test suite])
-AT_COLOR_TESTS
-
-AT_SETUP([Command line arguments])
-AT_TESTED([aplwc])
-AT_CHECK([aplwc --version | sed 1q], [0], [AT_PACKAGE_NAME AT_PACKAGE_VERSION
-])
-AT_CHECK([aplwc -v | sed 1q], [0], [AT_PACKAGE_NAME AT_PACKAGE_VERSION
-])
-AT_CHECK([aplwc --help | sed 1q], [0], [Usage: aplwc [[OPTION...]]
-])
-AT_CHECK([aplwc --h | sed 1q], [0], [Usage: aplwc [[OPTION...]]
-])
-AT_CHECK([aplwc --some-unknown-long-option], [1], ignore, ignore)
-AT_CHECK([aplwc -k], [1], ignore, ignore)
-AT_CHECK([aplwc --help | grep -e '-v, --version'], [0], ignore)
-AT_CHECK([aplwc --help | grep -e '-h, --help'], [0], ignore)
-AT_CHECK([aplwc --help | grep -e '-k, --ksdfsgs'], [1], ignore, ignore)
-AT_CLEANUP \ No newline at end of file