Skip to content

Commit 8e1303e

Browse files
committed
assorted test script cleanup
1 parent 7072b08 commit 8e1303e

7 files changed

+14
-10
lines changed

gerbil.pkg

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
(prelude: :scheme/r7rs)

hook.sld

+3
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,9 @@
1313
((and (not chicken) (library (srfi 173)))
1414
(import (srfi 173)))
1515
(else
16+
(cond-expand
17+
((and chicken debug) (import (only (srfi 99) define-record-type)))
18+
(else))
1619
(begin
1720
(define-record-type Hook
1821
(list->hook arity handlers)

scripts/chicken.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
11
#!/bin/bash
2-
csi -R r7rs -R utf8 -qb $(find . -name '*.sld' | "$(dirname "$0")/find-dependencies.scm" "$@") "$@"
2+
csi -D debug -R r7rs -R utf8 -qbn $(find . -name '*.sld' | "$(dirname "$0")/find-dependencies.scm" "$@") "$@"

scripts/gerbil-compile.sh

+4
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
#!/bin/bash
2+
gxc -gsc-flag -:t8,f8,-8 -static \
3+
$(find . -name '*.sld' | "$(dirname "$0")/../schemepunk/scripts/find-dependencies.scm" "$1")
4+
gxc -static -exe -o "$2" "$1"

scripts/repl-chicken.sh

+2
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
#!/bin/bash
2+
rlwrap csi -D debug -R r7rs -R utf8 $(find . -name '*.sld' | "$(dirname "$0")/find-dependencies.scm" $(dirname "$0")/repl.scm) "$(dirname "$0")/repl.scm"

scripts/test-chibi.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
#!/bin/bash
22
TEST_FILES="$(echo "$@" | sort | awk '{printf "(load \"%s\") ", $0}')"
3-
chibi-scheme -m "(schemepunk test)" -e "(begin $TEST_FILES (end-test-runner))"
3+
chibi-scheme -D debug -m "(schemepunk test)" -e "(begin $TEST_FILES (end-test-runner))"

test.sld

+2-8
Original file line numberDiff line numberDiff line change
@@ -50,15 +50,9 @@
5050
(import (only (kawa reflect) instance?)
5151
(class java.lang Exception))
5252
(begin
53-
(define (test-error? e) (or (error-object? e) (instance? e Exception)))
53+
(define (test-error? e) (instance? e Exception))
5454
(define (write-test-error err port)
55-
(format port "Test raised error:~%~%")
56-
(if (error-object? err)
57-
(format port "~a~%message: ~a~%irritants: ~a"
58-
err
59-
(error-object-message err)
60-
(error-object-irritants err))
61-
(err:printStackTrace port)))))
55+
(err:printStackTrace port))))
6256
((library (rnrs conditions))
6357
(import (rnrs conditions))
6458
(begin

0 commit comments

Comments
 (0)