From 4f9e438108cdb4564de142b18daf994255c06afb Mon Sep 17 00:00:00 2001 From: Matt Birkholz Date: Sun, 19 Oct 2014 11:25:32 -0700 Subject: [PATCH] tests: Replace : with / so progress notes are not errors to Emacs. Use - instead of : in timestamps reported by compile-svm.sh too. --- src/etc/compile-svm.sh | 44 ++++++++++++++++++++---------------- tests/runtime/test-arith.scm | 8 +++---- tests/unit-testing.scm | 4 ++-- 3 files changed, 31 insertions(+), 25 deletions(-) diff --git a/src/etc/compile-svm.sh b/src/etc/compile-svm.sh index cf45b1b8c..64e21ee31 100755 --- a/src/etc/compile-svm.sh +++ b/src/etc/compile-svm.sh @@ -30,29 +30,35 @@ set -e . etc/functions.sh -echo "# `date`: Remove the cross-compiler's bands and stash its products." +# To avoid miscuing GNU Emacs's compilation-mode. +mydate () +{ + date "+%Y-%m-%d %H-%M-%S" +} + +echo "# `mydate`: Remove the cross-compiler's bands and stash its products." run_cmd rm -f lib/x-runtime.com run_cmd rm -f lib/x-compiler.com run_cmd ./Stage.sh remove 0 run_cmd ./Stage.sh make-cross 0 -echo "# `date`: Restore the cross-compiler's host-compiled .coms." +echo "# `mydate`: Restore the cross-compiler's host-compiled .coms." run_cmd ./Stage.sh unmake X -echo "# `date`: Re-compile the cross-compiler." +echo "# `mydate`: Re-compile the cross-compiler." -echo "# `date`: Re-syntax prerequisites." +echo "# `mydate`: Re-syntax prerequisites." for DIR in runtime sf cref; do run_cmd_in_dir ${DIR} "${@}" --batch-mode --load ${DIR}.sf = i n)) - (define-test (symbol prefix ': (vector-ref elements i)) + (define-test (symbol prefix '/ (vector-ref elements i)) (lambda () (procedure (vector-ref elements i))))))) @@ -67,8 +67,8 @@ USA. (do ((j 0 (+ j 1))) ((>= j n)) (define-test (symbol prefix - ': (vector-ref elements i) - ': (vector-ref elements j)) + '/ (vector-ref elements i) + '/ (vector-ref elements j)) (lambda () (procedure i (vector-ref elements i) j (vector-ref elements j)))))))) @@ -138,4 +138,4 @@ USA. (define-enumerated-test 'X/NAN (vector (inf-) -2. -1 -0. 0 +0. +1 +2. (inf+)) - (lambda (v) (assert-nan (/ v (nan))))) + (lambda (v) (assert-nan (/ v (nan))))) \ No newline at end of file diff --git a/tests/unit-testing.scm b/tests/unit-testing.scm index 0d74dc953..8d5ae95c2 100644 --- a/tests/unit-testing.scm +++ b/tests/unit-testing.scm @@ -151,7 +151,7 @@ USA. (fresh-line port) (write-char #\; port) (write test-name port) - (write-string ": " port) + (write-char #\space port) (if (> n-failed 0) (begin (write-string "failed " port) @@ -185,7 +185,7 @@ USA. (define (report-test-failure prefix name failure port) (write-string prefix port) (write-string name port) - (write-string ": " port) + (write-char #\space port) (cond ((not failure) (write-string "passed" port)) ((failure? failure) (report-failure failure port)) (else (error "Ill-formed failure:" failure))) -- 2.25.1