diff --git a/quad/qtest/info.rkt b/quad/qtest/info.rkt index 58d3f50a..abe60844 100644 --- a/quad/qtest/info.rkt +++ b/quad/qtest/info.rkt @@ -1,3 +1,4 @@ #lang info (define compile-omit-paths 'all) -(define test-omit-paths 'all) \ No newline at end of file +(define test-omit-paths 'all) +(define raco-commands '(("qtest" qtest/raco "qtests" #f))) \ No newline at end of file diff --git a/quad/qtest/log.rkt b/quad/qtest/log.rkt new file mode 100644 index 00000000..74013126 --- /dev/null +++ b/quad/qtest/log.rkt @@ -0,0 +1,4 @@ +#lang racket/base +(require racket/logging) +(provide (all-defined-out)) +(define-logger qtest) \ No newline at end of file diff --git a/quad/qtest/raco.rkt b/quad/qtest/raco.rkt new file mode 100644 index 00000000..c3b185f5 --- /dev/null +++ b/quad/qtest/raco.rkt @@ -0,0 +1,15 @@ +#lang debug racket/base +(require racket/logging + racket/match + "log.rkt") + +(with-logging-to-port + (current-error-port) + (λ () + (match (with-handlers ([exn:fail? (λ (exn) #f)]) + (vector-ref (current-command-line-arguments) 0)) + ["test" (dynamic-require 'qtest/all #f)] + [_ (displayln "no cmd given")])) + #:logger qtest-logger + 'info + 'qtest) \ No newline at end of file