Rename "collects/tests/mred" -> ".../gracket".
Some additional mred-related tweaks. original commit: fcedc30ee4787d955adab3e0e656332812685e25
This commit is contained in:
parent
d7fccc9d0d
commit
3efca9178e
|
@ -7,9 +7,9 @@ completion of the engine test suites and the mzscheme test suites.
|
|||
|
||||
All of these tests reside in PLTHOME/collects/tests/framework/
|
||||
|
||||
There will be a main mzscheme process which will start up a new mred
|
||||
There will be a main mzscheme process which will start up a new gracket
|
||||
as necessary for the test suites. Since some tests actually require
|
||||
mred to exit in order to pass, this governor is required.
|
||||
gracket to exit in order to pass, this governor is required.
|
||||
|
||||
To run a test use:
|
||||
|
||||
|
@ -22,7 +22,7 @@ Some of the tests in this file are not yet present in the
|
|||
testing directory. They are planned future expansions of
|
||||
this test suite (and have been for some time....)
|
||||
|
||||
OS X: you will have to click on the newly started mred
|
||||
OS X: you will have to click on the newly started gracket
|
||||
processes in the doc while the test suite runs or it will
|
||||
signal failures when there aren't any.
|
||||
|
||||
|
@ -39,7 +39,7 @@ signal failures when there aren't any.
|
|||
- preferences: |# prefs.ss #|
|
||||
|
||||
| This tests that preferences are saved and restored correctly, both
|
||||
| immediately and across reboots of mred.
|
||||
| immediately and across reboots of gracket.
|
||||
|
||||
|
||||
- individual object tests:
|
||||
|
|
|
@ -1,3 +1,3 @@
|
|||
#!/bin/sh
|
||||
|
||||
exec mred -qu framework-test-engine.ss "$@"
|
||||
exec gracket -u framework-test-engine.rkt "$@"
|
||||
|
|
|
@ -14,7 +14,7 @@
|
|||
(car x)
|
||||
(error 'car* "got a non-pair for ~s" 'x))])))
|
||||
|
||||
;; this test uses a new eventspace so that the mred function
|
||||
;; this test uses a new eventspace so that the gracket function
|
||||
;; current-eventspace-has-standard-menus? returns #f and thus
|
||||
;; all of the platforms behave the same way.
|
||||
(test
|
||||
|
@ -182,4 +182,4 @@
|
|||
(unless (equal? (send x get-label) "first")
|
||||
(send x close)))
|
||||
frames))))))
|
||||
)
|
||||
)
|
||||
|
|
|
@ -88,7 +88,7 @@
|
|||
(let-values ([(dir exe _)
|
||||
(split-path (find-system-path 'exec-file))])
|
||||
dir)
|
||||
(if (eq? 'windows (system-type)) "GRacket.exe" "mred")))
|
||||
(if (eq? 'windows (system-type)) "GRacket.exe" "gracket")))
|
||||
(path->string
|
||||
(build-path (collection-path "tests" "framework")
|
||||
"framework-test-engine.ss")))))
|
||||
|
@ -172,15 +172,15 @@
|
|||
(or (not (char-ready? in-port))
|
||||
(not (eof-object? (peek-char in-port))))))
|
||||
(restart-mred))
|
||||
(debug-printf messages " ~a // ~a: sending to mred:\n"
|
||||
(debug-printf messages " ~a // ~a: sending to gracket:\n"
|
||||
section-name test-name)
|
||||
(show-text sexp)
|
||||
(with-handlers ([exn:fail?
|
||||
(lambda (x)
|
||||
(cond
|
||||
;; this means that mred was closed
|
||||
;; this means that gracket was closed
|
||||
;; so we can restart it and try again.
|
||||
[(tcp-error? x)
|
||||
[(tcp-error? x)
|
||||
(restart-mred)
|
||||
(write sexp out-port)
|
||||
(newline out-port)
|
||||
|
@ -210,21 +210,21 @@
|
|||
(cons char (loop))))
|
||||
null))))))))])
|
||||
(read in-port))])
|
||||
(debug-printf messages " ~a // ~a: received from mred:\n" section-name test-name)
|
||||
(debug-printf messages " ~a // ~a: received from gracket:\n" section-name test-name)
|
||||
(show-text answer)
|
||||
(unless (or (eof-object? answer)
|
||||
(and (list? answer)
|
||||
(= 2 (length answer))
|
||||
(memq (car answer)
|
||||
'(error last-error cant-read normal))))
|
||||
(error 'send-sexp-to-mred "unpected result from mred: ~s\n" answer))
|
||||
(error 'send-sexp-to-mred "unpected result from gracket: ~s\n" answer))
|
||||
(if (eof-object? answer)
|
||||
(raise (make-eof-result))
|
||||
(case (car answer)
|
||||
[(error)
|
||||
(error 'send-sexp-to-mred "mred raised \"~a\"" (second answer))]
|
||||
(error 'send-sexp-to-mred "gracket raised \"~a\"" (second answer))]
|
||||
[(last-error)
|
||||
(error 'send-sexp-to-mred "mred (last time) raised \"~a\"" (second answer))]
|
||||
(error 'send-sexp-to-mred "gracket (last time) raised \"~a\"" (second answer))]
|
||||
[(cant-read) (error 'mred/cant-parse (second answer))]
|
||||
[(normal)
|
||||
(eval (second answer))]))))))
|
||||
|
|
|
@ -1,17 +1,17 @@
|
|||
|
||||
The "item.ss" test (use load/cd) creates a frame to select among
|
||||
The "item.rkt" test (use `require') creates a frame to select among
|
||||
several types of control-testing frames. Click the `Get Instructions'
|
||||
button in the top-left for more information.
|
||||
|
||||
---------------------------------------------------------------------------
|
||||
|
||||
The "draw.ss" test (use load/cd) tests drawing commands. Click the
|
||||
The "draw.rkt" test (use load/cd) tests drawing commands. Click the
|
||||
"What Should I See?" button for further details.
|
||||
|
||||
---------------------------------------------------------------------------
|
||||
|
||||
The "mem.ss" test is loaded at startup:
|
||||
mred -r mem.ss
|
||||
The "mem.rktl" test is loaded at startup:
|
||||
gracket -r mem.rktl
|
||||
Creates a lot of frames and instance of other objects, reporting
|
||||
memory information along the way. At the end, before the last memory
|
||||
dump, objects that are still allocated are displayed like this:
|
||||
|
@ -24,8 +24,8 @@ A large number of lines (say, 50) indicates a GC problem.
|
|||
---------------------------------------------------------------------------
|
||||
|
||||
[Out of date:]
|
||||
The "random.ss" test is a randomized test of the GRacket classes that tests
|
||||
GRacket's stability. Load "random.ss", and then run
|
||||
The "random.rktl" test is a randomized test of the GRacket classes that tests
|
||||
GRacket's stability. Load "random.rktl", and then run
|
||||
(init)
|
||||
This attempts to create instances of classes using random
|
||||
intialization arguments. (init) can be run any number of times.
|
||||
|
@ -37,7 +37,7 @@ arguments.
|
|||
|
||||
To avoid testing much of the wxMedia toolbox, which is likely to be
|
||||
platform-independent, (define skip-media? #t) before loading
|
||||
"random.ss".
|
||||
"random.rktl".
|
||||
|
||||
|
||||
==================================================
|
||||
|
@ -46,8 +46,8 @@ Old Stuff
|
|||
|
||||
---------------------------------------------------------------------------
|
||||
|
||||
The "imred.ss" test is used to check for memory leaks in a loop
|
||||
invoking the mred system. Call the `go' procedure with a list
|
||||
The "imred.rktl" test is used to check for memory leaks in a loop
|
||||
invoking the gracket system. Call the `go' procedure with a list
|
||||
of symbol flags:
|
||||
'force not included:
|
||||
Use the current eventspaces; expects mred:run-exit-callbacks
|
||||
|
@ -66,22 +66,23 @@ of symbol flags:
|
|||
|
||||
---------------------------------------------------------------------------
|
||||
|
||||
"startup" tests the startup flags of mred. run "run.ss" from that directory.
|
||||
"startup" tests the startup flags of gracket.
|
||||
run "run.rktl" from that directory.
|
||||
|
||||
---------------------------------------------------------------------------
|
||||
|
||||
"frame-edit.ss" checks that various frames match with various
|
||||
"frame-edit.rktl" checks that various frames match with various
|
||||
edits. Under construction.
|
||||
|
||||
---------------------------------------------------------------------------
|
||||
|
||||
"gui.ss" tests:
|
||||
"gui.rktl" tests:
|
||||
- save prompting (before closing unsaved files) and
|
||||
- autosaving
|
||||
|
||||
evaluate `(load "gui.ss")' in the console to run.
|
||||
evaluate `(load "gui.rktl")' in the console to run.
|
||||
|
||||
It also overwrites the file "tmp.ss" in the testing directory.
|
||||
It also overwrites the file "tmp.rktd" in the testing directory.
|
||||
|
||||
---------------------------------------------------------------------------
|
||||
|
|
@ -1,5 +1,5 @@
|
|||
|
||||
; run with mred -u -- -f mem.ss
|
||||
; run with gracket -u -- -f mem.rktl
|
||||
|
||||
(require mzlib/class100)
|
||||
|
Loading…
Reference in New Issue
Block a user