From: Kevin M. Rosenberg Date: Tue, 29 Sep 2020 16:09:14 +0000 (+0000) Subject: Improve test suite for modern ASDF X-Git-Url: http://git.kpe.io/?p=puri.git;a=commitdiff_plain;h=654461565dc29a7bbe6e1c478cab6231188b163b Improve test suite for modern ASDF --- diff --git a/debian/changelog b/debian/changelog index ea1dee2..1eab622 100644 --- a/debian/changelog +++ b/debian/changelog @@ -1,3 +1,10 @@ +cl-puri (1:1.5.7.1-1) unstable; urgency=medium + + * Rework test suite for newer versions of ASDF + * Upload to Debian (closes: 921508) + + -- Kevin M. Rosenberg Tue, 29 Sep 2020 15:55:37 +0000 + cl-puri (1:1.5.7-1) unstable; urgency=medium * Avoid name collision with zacl and net.uri nickname (thanks Dave Cooper) diff --git a/debian/compat b/debian/compat index 7f8f011..b4de394 100644 --- a/debian/compat +++ b/debian/compat @@ -1 +1 @@ -7 +11 diff --git a/debian/control b/debian/control index 5d382cf..71bca06 100644 --- a/debian/control +++ b/debian/control @@ -3,7 +3,7 @@ Section: lisp Priority: optional Maintainer: Kevin M. Rosenberg Build-Depends-Indep: dh-lisp -Build-Depends: debhelper (>= 7.0.0) +Build-Depends: debhelper (>= 11.0.0) Standards-Version: 3.9.5.0 Homepage: http://files.kpe.io/puri/ Vcs-Git: git://git.kpe.io/puri/ diff --git a/puri.asd b/puri.asd index 0e4ea9c..eda4faf 100644 --- a/puri.asd +++ b/puri.asd @@ -6,28 +6,20 @@ (defpackage #:puri-system (:use #:cl #:asdf)) (in-package #:puri-system) - (defsystem puri :name "cl-puri" :maintainer "Kevin M. Rosenberg " :licence "GNU Lesser General Public License" :description "Portable Universal Resource Indentifier Library" :components - ((:file "src"))) - -(defmethod perform ((o test-op) (c (eql (find-system 'puri)))) - (oos 'load-op 'puri-tests) - (oos 'test-op 'puri-tests)) + ((:file "src")) + :in-order-to ((test-op (test-op "puri/test")))) -(defsystem puri-tests - :depends-on (:puri :ptester) +(defsystem puri/test + :depends-on (:ptester :puri) :components - ((:file "tests"))) - -(defmethod perform ((o test-op) (c (eql (find-system 'puri-tests)))) - (or (funcall (intern (symbol-name '#:do-tests) - (find-package :puri-tests))) - (error "test-op failed"))) - -(defmethod operation-done-p ((o test-op) (c (eql (find-system 'puri-tests)))) - (values nil)) + ((:file "tests")) + :perform (test-op (o s) + (or (funcall (intern (symbol-name '#:do-tests) + (find-package '#:puri/test))) + (error "test-op failed")))) diff --git a/tests.lisp b/tests.lisp index 0344922..4d77fff 100644 --- a/tests.lisp +++ b/tests.lisp @@ -23,8 +23,8 @@ ;; $Id$ -(defpackage #:puri-tests (:use #:puri #:cl #:ptester)) -(in-package #:puri-tests) +(defpackage #:puri/test (:use #:puri #:cl #:ptester)) +(in-package #:puri/test) (unintern-uri t) @@ -427,5 +427,3 @@ (with-tests (:name "puri") (gen-test-forms))) t) - -