projects
/
scheme.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Add dodgy uname based host OS detection
[scheme.git]
/
tests.scm
diff --git
a/tests.scm
b/tests.scm
index 65b99d9c5a3574e331228c21933528d1a3490e76..531efe23223d79a1242e50aae316cae953686d89 100644
(file)
--- a/
tests.scm
+++ b/
tests.scm
@@
-22,13
+22,13
@@
(define (test-prog prog exit-code)
(display prog)
(newline)
(define (test-prog prog exit-code)
(display prog)
(newline)
- (compile-to-binary prog "/tmp/test-prog"
'darwin
)
+ (compile-to-binary prog "/tmp/test-prog"
host-os
)
(test (system "/tmp/test-prog") exit-code))
(define (test-prog-stdout prog output)
(display prog)
(newline)
(test (system "/tmp/test-prog") exit-code))
(define (test-prog-stdout prog output)
(display prog)
(newline)
- (compile-to-binary prog "/tmp/test-prog"
'darwin
)
+ (compile-to-binary prog "/tmp/test-prog"
host-os
)
(system "/tmp/test-prog > /tmp/test-output.txt")
(let ((str (read-file "/tmp/test-output.txt")))
(test str output)))
(system "/tmp/test-prog > /tmp/test-output.txt")
(let ((str (read-file "/tmp/test-output.txt")))
(test str output)))