diff options
author | Sean Whitton <spwhitton@spwhitton.name> | 2021-04-01 14:42:07 -0700 |
---|---|---|
committer | Sean Whitton <spwhitton@spwhitton.name> | 2021-04-01 15:56:45 -0700 |
commit | 0fef94b5318fa4831a773f34e3994be9258d1f78 (patch) | |
tree | e6f24184bd907f6e127d06d543853329dd0a4cb7 /debian/tests | |
parent | 9d7f1a796750947a185a1251b89b8570fc51f2d5 (diff) | |
download | consfigurator-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.lisp | 13 | ||||
-rw-r--r-- | debian/tests/compile.lisp | 9 | ||||
-rw-r--r-- | debian/tests/control | 2 |
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, @, |