aboutsummaryrefslogtreecommitdiff
path: root/debian/tests/compile-and-tests.lisp
diff options
context:
space:
mode:
Diffstat (limited to 'debian/tests/compile-and-tests.lisp')
-rw-r--r--debian/tests/compile-and-tests.lisp13
1 files changed, 13 insertions, 0 deletions
diff --git a/debian/tests/compile-and-tests.lisp b/debian/tests/compile-and-tests.lisp
new file mode 100644
index 0000000..568fd72
--- /dev/null
+++ b/debian/tests/compile-and-tests.lisp
@@ -0,0 +1,13 @@
+(require "asdf")
+
+;; this in itself ensures that we've listed the files in consfigurator.asd in
+;; the correct order
+(let ((asdf:*compile-file-failure-behaviour* :error)
+ (asdf:*compile-file-warnings-behaviour* :error)
+ (asdf:*user-cache* (uiop:getenv "AUTOPKGTEST_TMP")))
+ (asdf:load-system "consfigurator/tests"))
+
+;; we can't use ASDF:TEST-SYSTEM because its return value does not indicate
+;; whether any tests failed
+(unless (consfigurator/tests::do-tests)
+ (uiop:quit 2))