summaryrefslogtreecommitdiffstats
path: root/tests/testsuite.at
diff options
context:
space:
mode:
authorPavel Raiskup <praiskup@redhat.com>2014-09-17 00:22:38 +0200
committerPavel Raiskup <praiskup@redhat.com>2014-09-17 14:06:10 +0200
commit093be6d640d01d7cd24a2d87f6901aa3b3cf4fc6 (patch)
tree8e47e5610adb86691ddcb4f02d198eb4869af7b3 /tests/testsuite.at
parent6ff8c6247cf4dec81f5899b09995d25c957ad7d5 (diff)
downloadpostgresql-setup-093be6d640d01d7cd24a2d87f6901aa3b3cf4fc6.tar.gz
postgresql-setup-093be6d640d01d7cd24a2d87f6901aa3b3cf4fc6.tar.xz
postgresql-setup-093be6d640d01d7cd24a2d87f6901aa3b3cf4fc6.zip
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.
Diffstat (limited to 'tests/testsuite.at')
-rw-r--r--tests/testsuite.at17
1 files changed, 17 insertions, 0 deletions
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