aboutsummaryrefslogtreecommitdiff
path: root/debian/tests
diff options
context:
space:
mode:
authorSean Whitton <spwhitton@spwhitton.name>2021-04-01 14:42:07 -0700
committerSean Whitton <spwhitton@spwhitton.name>2021-04-01 15:56:45 -0700
commit0fef94b5318fa4831a773f34e3994be9258d1f78 (patch)
treee6f24184bd907f6e127d06d543853329dd0a4cb7 /debian/tests
parent9d7f1a796750947a185a1251b89b8570fc51f2d5 (diff)
downloadconsfigurator-0fef94b5318fa4831a773f34e3994be9258d1f78.tar.gz
debian/: run upstream test suite as part of autopkgtest
Signed-off-by: Sean Whitton <spwhitton@spwhitton.name>
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,
@,