From 093be6d640d01d7cd24a2d87f6901aa3b3cf4fc6 Mon Sep 17 00:00:00 2001 From: Pavel Raiskup Date: Wed, 17 Sep 2014 00:22:38 +0200 Subject: testsuite: configury & and add first test-case This required little bit of generalization so I moved the SED_CALL into configure.ac to have it available for tests/Makefile.am also. The first testsuite just checks that no un-expanded @pattern@ exists in generated files. --- tests/testsuite.at | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 tests/testsuite.at (limited to 'tests/testsuite.at') diff --git a/tests/testsuite.at b/tests/testsuite.at new file mode 100644 index 0000000..9d18b29 --- /dev/null +++ b/tests/testsuite.at @@ -0,0 +1,17 @@ +AT_INIT +AT_COLOR_TESTS + +AT_SETUP([Check files are generated correctly]) +AT_CHECK([file_list=$top_srcdir/$at_testdir/$TEST_GEN_FILES_LIST +test -f "$file_list" || { echo "no such file '$file_list'" ; exit 1 ; } + +pattern='@[[a-zA-Z0-9_]]*@' + +while read file; do + file=${top_srcdir}/$file + grep $pattern $file && echo "file $file is incomplete" && exit 1 +done < $file_list + +exit 0 +]) +AT_CLEANUP -- cgit