chiark / gitweb /
tests/check: New test script, quite basic
authorIan Jackson <ijackson@chiark.greenend.org.uk>
Wed, 13 Nov 2019 22:38:23 +0000 (22:38 +0000)
committerIan Jackson <ijackson@chiark.greenend.org.uk>
Wed, 13 Nov 2019 22:38:23 +0000 (22:38 +0000)
Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
example/.gitignore
tests/check [new file with mode: 0755]

index 0b60a39..4c8a2a9 100644 (file)
@@ -23,3 +23,6 @@
 Makefile
 Subdir.mk
 *.tmp
+
+#----- For our out-of-tree build test -----
+/build
diff --git a/tests/check b/tests/check
new file mode 100755 (executable)
index 0000000..85d7637
--- /dev/null
@@ -0,0 +1,15 @@
+#!/bin/sh
+set -e
+
+cd example
+git clean -xdff
+./autogen.sh && ./configure
+make -j4 all check
+make -j4 clean
+make -j4 all check
+
+git clean -xdff
+mkdir build
+cd build
+.././autogen.sh && ../configure
+make -j4 all check