[Switched to `guile-devel'.] Kevin Ryde <[EMAIL PROTECTED]> writes:
> You'll need to make something for > test-suite/tests/socket.test exercising each case, eventually. It turns out that I had never looked at the test-suite, mostly because it isn't run at `make check' time. Additionally, the `guile-test' script was largely outdated. The patch below fixes these two things. It also comments out the `elisp' test which results in a stack overflow here. My understanding is that the Elisp work is almost only due to Neil has never been widely used, so hopefully it won't hurt too much until a better solution is found. All the other tests pass on my PPC GNU/Linux box, some of them are unresolved though. Thanks, Ludovic. 2005-09-22 Ludovic Courtès <[EMAIL PROTECTED]> * Makefile.am (check-local): New target. * guile-test: Made executable as a stand-alone script. (main): Fixed to use the latest `getopt-long'; use `option-ref'. * tests/elisp.test: Momentarily ignored. --- orig/test-suite/Makefile.am +++ mod/test-suite/Makefile.am @@ -101,3 +101,6 @@ cp -pR $(srcdir)/$$d $(distdir)/$$d; \ rm -rf $(distdir)/$$d/CVS; \ done + +check-local: + ./guile-test --test-suite tests/ --- orig/test-suite/guile-test +++ mod/test-suite/guile-test @@ -1,5 +1,12 @@ -#!../libguile/guile \ --e main -s +#!/bin/sh +# This is in fact -*- Scheme -*- code. + +# We need to make sure that we load the right `ice-9' modules so `-L' is not +# enough since it gets parsed too late. +GUILE_LOAD_PATH=".." +export GUILE_LOAD_PATH + +exec ../libguile/guile -L .. -l $0 -e main -- "$@" !# ;;;; guile-test --- run the Guile test suite @@ -166,7 +173,7 @@ (sort tests string<?))) (define (main args) - (let ((options (getopt-long args + (let ((options (getopt-long (cons "progname" args) `((test-suite (single-char #\t) (value #t)) @@ -177,15 +184,12 @@ (value #t)) (debug (single-char #\d)))))) - (define (opt tag default) - (let ((pair (assq tag options))) - (if pair (cdr pair) default))) - (if (opt 'debug #f) + (if (option-ref options 'debug #f) (enable-debug-mode)) (set! test-suite - (or (opt 'test-suite #f) + (or (option-ref options 'test-suite #f) (getenv "TEST_SUITE_DIR") default-test-suite)) @@ -194,13 +198,8 @@ ;; not the src-dir. (set! tmp-dir (getcwd)) - (let* ((tests - (let ((foo (opt '() '()))) - (if (null? foo) - (enumerate-tests test-suite) - foo))) - (log-file - (opt 'log-file "guile.log"))) + (let* ((tests (enumerate-tests test-suite)) + (log-file (option-ref options 'log-file "guile.log"))) ;; Open the log file. (let ((log-port (open-output-file log-file))) @@ -214,7 +213,8 @@ (register-reporter (lambda results (case (car results) ((unresolved) - (and (opt 'flag-unresolved #f) + (and (option-ref options + 'flag-unresolved #f) (set! global-pass #f))) ((fail upass error) (set! global-pass #f))))) --- orig/test-suite/tests/elisp.test +++ mod/test-suite/tests/elisp.test @@ -19,6 +19,9 @@ :use-module (test-suite lib) :use-module (ice-9 weak-vector)) +(if #t #t ;; FIXME: Ignore this test for now + (begin + ;;; ;;; elisp ;;; @@ -331,4 +334,6 @@ )) +)) + ;;; elisp.test ends here _______________________________________________ Guile-devel mailing list Guile-devel@gnu.org http://lists.gnu.org/mailman/listinfo/guile-devel