#lang scheme/base
(require (for-syntax scheme/base)
scheme/contract
scheme/runtime-path
(file "base.ss")
(file "core.ss"))
(define-runtime-path delirium-htdocs-path "htdocs")
(define-runtime-path delirium-servlet-path "instaweb-servlet.ss")
(define-runtime-path delirium-servlet-config-path "instaweb-servlet-config.ss")
(define *test* #f)
(define (test-ref)
(if *test*
*test*
(raise-exn exn:fail:contract
"No target test specified.")))
(define (test-set! test)
(set! *test* test))
(define *run-tests* test/text-ui/pause-on-fail)
(define (run-tests-ref)
*run-tests*)
(define (run-tests-set! run-tests)
(set! *run-tests* run-tests))
(provide/contract
[delirium-htdocs-path path?]
[delirium-servlet-path path?]
[delirium-servlet-config-path path?]
[test-ref (-> schemeunit-test?)]
[test-set! (-> schemeunit-test? void?)]
[run-tests-ref (-> (-> schemeunit-test? any))]
[run-tests-set! (-> (-> schemeunit-test? any) void?)])