diff options
author | Ludovic Courtès | 2008-12-23 01:59:35 +0100 |
---|---|---|
committer | Ludovic Courtès | 2008-12-23 01:59:35 +0100 |
commit | 3d0850364eb2099ff7f047642ae1c48e82cfb1a7 (patch) | |
tree | bbafda9481e316c7ad7fb355f6eff649cae4950c /src/guile/srfi/srfi-64.scm | |
parent | 6fa59c5132a1a8bde543dd4ce4c6b6c33b8d0625 (diff) | |
download | skribilo-3d0850364eb2099ff7f047642ae1c48e82cfb1a7.tar.gz skribilo-3d0850364eb2099ff7f047642ae1c48e82cfb1a7.tar.lz skribilo-3d0850364eb2099ff7f047642ae1c48e82cfb1a7.zip |
Add test framework and `rss-2' unit tests.
* Makefile.am (SUBDIRS): Add `tests'.
* configure.ac: Produce `tests/Makefile'.
* src/guile/Makefile.am (EXTRA_DIST): Add SRFI-64 files.
* tests: New directory.
Diffstat (limited to 'src/guile/srfi/srfi-64.scm')
-rw-r--r-- | src/guile/srfi/srfi-64.scm | 45 |
1 files changed, 45 insertions, 0 deletions
diff --git a/src/guile/srfi/srfi-64.scm b/src/guile/srfi/srfi-64.scm new file mode 100644 index 0000000..56a99a4 --- /dev/null +++ b/src/guile/srfi/srfi-64.scm @@ -0,0 +1,45 @@ +(define-module (srfi srfi-64) + :export (;; Macros in Guile suck: We need to explicitly export all bindings + ;; referred to by the expanded macros. + %test-begin %test-comp2 %test-comp2body %test-on-test-begin + %test-evaluate-with-catch %test-on-test-end %test-report-result + %test-end + + test-begin ;; must be listed first, since in Kawa (at least) it is "magic". + test-end test-assert test-eqv test-eq test-equal + test-approximate test-assert test-error test-apply test-with-runner + test-match-nth test-match-all test-match-any test-match-name + test-skip test-expect-fail test-read-eval-string + test-runner-group-path test-group-with-cleanup + test-result-ref test-result-set! test-result-clear test-result-remove + test-result-kind test-passed? + test-log-to-file + ; Misc test-runner functions + test-runner? test-runner-reset test-runner-null + test-runner-simple test-runner-current test-runner-factory test-runner-get + test-runner-create test-runner-test-name + ;; test-runner field setter and getter functions - see %test-record-define: + test-runner-pass-count test-runner-pass-count! + test-runner-fail-count test-runner-fail-count! + test-runner-xpass-count test-runner-xpass-count! + test-runner-xfail-count test-runner-xfail-count! + test-runner-skip-count test-runner-skip-count! + test-runner-group-stack test-runner-group-stack! + test-runner-on-test-begin test-runner-on-test-begin! + test-runner-on-test-end test-runner-on-test-end! + test-runner-on-group-begin test-runner-on-group-begin! + test-runner-on-group-end test-runner-on-group-end! + test-runner-on-final test-runner-on-final! + test-runner-on-bad-count test-runner-on-bad-count! + test-runner-on-bad-end-name test-runner-on-bad-end-name! + test-result-alist test-result-alist! + test-runner-aux-value test-runner-aux-value! + ;; default/simple call-back functions, used in default test-runner, + ;; but can be called to construct more complex ones. + test-on-group-begin-simple test-on-group-end-simple + test-on-bad-count-simple test-on-bad-end-name-simple + test-on-final-simple test-on-test-end-simple + test-on-final-simple)) + +;; Load Per Bothner's original SRFI-64 implementation. +(load-from-path "srfi/srfi-64.upstream.scm") |