aboutsummaryrefslogtreecommitdiff
path: root/debian/tests
diff options
context:
space:
mode:
Diffstat (limited to 'debian/tests')
-rw-r--r--debian/tests/compile-and-tests.lisp13
-rw-r--r--debian/tests/compile.lisp9
-rw-r--r--debian/tests/control2
3 files changed, 14 insertions, 10 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))
diff --git a/debian/tests/compile.lisp b/debian/tests/compile.lisp
deleted file mode 100644
index b4377ba..0000000
--- a/debian/tests/compile.lisp
+++ /dev/null
@@ -1,9 +0,0 @@
-(require "asdf")
-
-;; this 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"))
diff --git a/debian/tests/control b/debian/tests/control
index a52a8f5..4d13430 100644
--- a/debian/tests/control
+++ b/debian/tests/control
@@ -1,4 +1,4 @@
-Test-Command: sbcl --script debian/tests/compile.lisp
+Test-Command: sbcl --script debian/tests/compile-and-tests.lisp
Depends:
sbcl,
@,