-
Notifications
You must be signed in to change notification settings - Fork 14
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix loading of fiveam-asdf defsystem.
Previously, we were forced to load that system by hand, when reading the ASDF system definition. By pulling some code out, and by using strings for class designators in shop3.asd's tester systems, we no longer have to do this.
- Loading branch information
Showing
3 changed files
with
24 additions
and
31 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
(defsystem shop-silent-test | ||
:depends-on ((:version "fiveam-asdf" "2")) | ||
:components ((:file "silent-shop-test"))) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,17 @@ | ||
(defpackage :silent-shop-test | ||
(:use :asdf :common-lisp) | ||
(:export #:shop-fiveam-tester)) | ||
|
||
(defmethod asdf:perform :around ((op asdf:test-op) | ||
(component shop2-asd::shop-tester-mixin)) | ||
(let ((shop::*silent* t)) | ||
(declare (special shop::*silent*)) | ||
(in-package #:silent-shop-test) | ||
|
||
|
||
(defclass shop-tester-mixin () | ||
() | ||
(:documentation "Mixin that adds silent functioning of SHOP3.")) | ||
|
||
(defclass shop-fiveam-tester (shop-tester-mixin fiveam-tester-system) ()) | ||
|
||
(defmethod perform :around ((op test-op) | ||
(component shop-tester-mixin)) | ||
(progv (list (uiop:intern* '#:*silent* '#:shop)) | ||
(call-next-method))) |