diff options
author | Andy Wingo <wingo@pobox.com> | 2012-04-21 17:06:48 -0400 |
---|---|---|
committer | Andy Wingo <wingo@pobox.com> | 2012-04-23 21:46:06 +0200 |
commit | d10f7b572c0ca1ccef87f9c46069daa30946e0cf (patch) | |
tree | 8e1d567222a8091610980ec3f7b4f37960f1707c /test-suite/tests/ftw.test | |
parent | 7a4188c4492736f7afd7304a01eaebc3474ccdee (diff) | |
download | guile-d10f7b572c0ca1ccef87f9c46069daa30946e0cf.tar.gz |
move (test-suite lib) to lower dir; cleans up uninstalled paths.
* check-guile.in:
* test-suite/Makefile.am:
* test-suite/test-suite/lib.scm:
* benchmark-guile.in:
* benchmark-suite/Makefile.am:
* benchmark-suite/benchmark-suite/lib.scm: Lower the lib modules in the
source tree. This lets us remove top_srcdir and top_builddir from the
uninstalled paths.
* test-suite/tests/asm-to-bytecode.test:
* test-suite/tests/brainfuck.test:
* test-suite/tests/compiler.test:
* test-suite/tests/ftw.test:
* test-suite/tests/gc.test:
* test-suite/tests/match.test:
* test-suite/tests/rnrs-libraries.test:
* test-suite/tests/rnrs-test-a.scm:
* test-suite/tests/sxml.match.test: Adapt to not expect that module
names be prefixed with "test-suite".
Diffstat (limited to 'test-suite/tests/ftw.test')
-rw-r--r-- | test-suite/tests/ftw.test | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/test-suite/tests/ftw.test b/test-suite/tests/ftw.test index be983a16a..805c779bf 100644 --- a/test-suite/tests/ftw.test +++ b/test-suite/tests/ftw.test @@ -90,6 +90,9 @@ (define %test-dir (string-append %top-srcdir "/test-suite")) +(define %test-suite-lib-dir + (string-append %top-srcdir "/test-suite/test-suite")) + (define (make-file-tree dir tree) "Make file system TREE at DIR." (define (touch file) @@ -152,7 +155,8 @@ (let ((enter? (lambda (n s r) ;; Enter only `test-suite/tests/'. (if (member `(down ,%test-dir) r) - (string=? (basename n) "tests") + (or (string=? (basename n) "tests") + (string=? (basename n) "test-suite")) (string=? (basename n) "test-suite")))) (leaf (lambda (n s r) (cons `(leaf ,n) r))) (down (lambda (n s r) (cons `(down ,n) r))) @@ -167,7 +171,7 @@ ((('down (? (cut string=? <> %test-dir))) between ... ('up (? (cut string=? <> %test-dir)))) - (and (any (match-lambda (('leaf (= basename "lib.scm")) #t) (_ #f)) + (and (any (match-lambda (('down (= basename "test-suite")) #t) (_ #f)) between) (any (match-lambda (('down (= basename "tests")) #t) (_ #f)) between) @@ -195,7 +199,7 @@ (up (lambda (n s r) (cons `(up ,n) r))) (skip (lambda (n s r) (cons `(skip ,n) r))) (error (lambda (n s e r) (cons `(error ,n) r))) - (name (string-append %test-dir "/lib.scm"))) + (name (string-append %test-suite-lib-dir "/lib.scm"))) (equal? (file-system-fold enter? leaf down up skip error '() name) `((leaf ,name))))) |