File: 0011-Skip-chill.impure.lisp-tests-under-autopkgtest.patch

package info (click to toggle)
sbcl 2%3A2.5.10-1
  • links: PTS, VCS
  • area: main
  • in suites: sid
  • size: 50,880 kB
  • sloc: lisp: 518,167; ansic: 41,402; sh: 5,643; asm: 2,322; pascal: 717; makefile: 431; python: 56; cpp: 27
file content (43 lines) | stat: -rw-r--r-- 1,597 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
From: Sean Whitton <spwhitton@spwhitton.name>
Date: Tue, 11 Nov 2025 15:25:59 +0000
Subject: Skip chill.impure.lisp tests under autopkgtest

---
 tests/chill.impure.lisp | 11 ++++++++---
 1 file changed, 8 insertions(+), 3 deletions(-)

diff --git a/tests/chill.impure.lisp b/tests/chill.impure.lisp
index 44a8b4a..4d555f7 100644
--- a/tests/chill.impure.lisp
+++ b/tests/chill.impure.lisp
@@ -1,6 +1,10 @@
 #+parallel-test-runner (setq run-tests::*allowed-inputs* :any)
 
-(with-test (:name (:chill :loads-quietly))
+;; Skip these tests under autopkgtest because the package won't be built so
+;; stuff-groveled-from-headers.lisp won't be available.
+(when (posix-getenv "AUTOPKGTEST_TMP") (push :autopkgtest *features*))
+
+(with-test (:name (:chill :loads-quietly) :skipped-on :autopkgtest)
   (handler-bind (#-sb-devel (warning (lambda (c) (error "Caught warning: ~A" c))))
     (load "../src/cold/chill.lisp")))
 
@@ -27,7 +31,8 @@
          (when (eql o eof)
            (return)))))))
 
-(with-test (:name (:chill :read-xc-files))
+#-autopkgtest
+(with-test (:name (:chill :read-xc-files) :skipped-on :autopkgtest)
   (flet ((try-replacing (stem this that)
            (let ((position (search this stem)))
              (when position
@@ -44,7 +49,7 @@
                            stem)))
             (read-file name)))))))
 
-(with-test (:name (:chill :read-target-2-files))
+(with-test (:name (:chill :read-target-2-files) :skipped-on :autopkgtest)
   (let ((target-2-stems-lists (cdr *build-order-data*)))
     (dolist (stems-list target-2-stems-lists)
       (dolist (stem stems-list)