racket/pkgs/racket-test/tests/syntax/run.rkt
Matthew Flatt 2d4f3e2ac9 remove the "racket-pkgs" directory layer
The layer is now redundant, since everything left in "pkgs" is in the
"racket-pkgs" category.
2014-12-08 05:22:59 -07:00

21 lines
522 B
Racket

#lang racket/base
(require rackunit rackunit/text-ui racket/runtime-path)
;; Runs all the files in the tests subdirectory.
;; A test fails if it throws an exception.
(define-runtime-path tests-dir "./tests")
(define tests
(make-test-suite
"syntax tests"
(for/list ([t (directory-list tests-dir)]
#:when (regexp-match ".*rkt$" t))
(test-suite
(path->string t)
(check-not-exn (lambda ()
(dynamic-require (build-path tests-dir t) #f)))))))
(run-tests tests)