racket/collects/tests/mred
Matthew Flatt 6aa847ca67 update MrEd gc test for v4
svn: r10122
2008-06-04 11:45:41 +00:00
..
auto.ss Adding collects, with all the right properties (except eoln-style). 2005-05-27 18:56:37 +00:00
blits.ss svn: r1441 2005-11-29 23:28:45 +00:00
button-steps.txt Adding collects, with all the right properties (except eoln-style). 2005-05-27 18:56:37 +00:00
cache-image8.mre more WXME tests 2007-01-19 02:03:57 +00:00
canvas-steps.txt typos 2005-06-08 00:28:39 +00:00
checkbox-steps.txt Adding collects, with all the right properties (except eoln-style). 2005-05-27 18:56:37 +00:00
choice-list-steps.txt typos 2005-06-08 00:28:39 +00:00
dc.ss use new require specs in many places 2008-02-23 09:42:03 +00:00
draw-info.txt typos 2005-06-08 00:28:39 +00:00
draw.ss class and mzc -k fixes 2007-11-14 16:24:48 +00:00
editor.ss 369.11 2007-04-29 02:08:24 +00:00
frame-edit.ss Adding collects, with all the right properties (except eoln-style). 2005-05-27 18:56:37 +00:00
frame-steps.txt typos 2005-06-08 00:28:39 +00:00
gauge-steps.txt Adding collects, with all the right properties (except eoln-style). 2005-05-27 18:56:37 +00:00
gui-main.ss Adding collects, with all the right properties (except eoln-style). 2005-05-27 18:56:37 +00:00
gui.ss Adding collects, with all the right properties (except eoln-style). 2005-05-27 18:56:37 +00:00
imred.ss Adding collects, with all the right properties (except eoln-style). 2005-05-27 18:56:37 +00:00
item.ss use new require specs in many places 2008-02-23 09:42:03 +00:00
loadtest.ss Adding collects, with all the right properties (except eoln-style). 2005-05-27 18:56:37 +00:00
media3.mre rename original media file to include right version 2007-01-18 12:16:54 +00:00
media6.mre added program, corrected media6 2007-01-18 09:15:42 +00:00
media8.mre change #reader path 2007-01-18 22:28:06 +00:00
mediastream.example Adding collects, with all the right properties (except eoln-style). 2005-05-27 18:56:37 +00:00
mediastream.ss Adding collects, with all the right properties (except eoln-style). 2005-05-27 18:56:37 +00:00
mem.ss update MrEd gc test for v4 2008-06-04 11:45:41 +00:00
menu-steps.txt Adding collects, with all the right properties (except eoln-style). 2005-05-27 18:56:37 +00:00
nruter.xbm Adding collects, with all the right properties (except eoln-style). 2005-05-27 18:56:37 +00:00
paramz.ss Adding collects, with all the right properties (except eoln-style). 2005-05-27 18:56:37 +00:00
png.ss use new require specs in many places 2008-02-23 09:42:03 +00:00
prog6.mre rename prog to include format version 2007-01-18 09:16:27 +00:00
prog8.mre WXME version-8 examples 2007-01-18 12:13:33 +00:00
radiobox-steps.txt Adding collects, with all the right properties (except eoln-style). 2005-05-27 18:56:37 +00:00
random.ss use new require specs in many places 2008-02-23 09:42:03 +00:00
README Adding collects, with all the right properties (except eoln-style). 2005-05-27 18:56:37 +00:00
showkey.ss use new require specs in many places 2008-02-23 09:42:03 +00:00
sixlib.ss use new require specs in many places 2008-02-23 09:42:03 +00:00
slider-steps.txt typos 2005-06-08 00:28:39 +00:00
testbox6.mre some test graphical files in the v209 format (WXME version 6) 2007-01-18 09:11:00 +00:00
testbox8.mre more WXME tests 2007-01-19 02:03:57 +00:00
testing.ss use new require specs in many places 2008-02-23 09:42:03 +00:00
text-scale.ss use new require specs in many places 2008-02-23 09:42:03 +00:00
windowing.ss reworked the buttons along the top of drscheme 2008-05-01 23:15:06 +00:00

The "item.ss" test (use load/cd) 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
"What Should I See?" button for further details.

---------------------------------------------------------------------------

The "mem.ss" test is loaded at startup:
  mred -r mem.ss
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:
  (frame (1 . 5))
This means that the frame allocated by thread #1 at cycle 5
(counting down from some number) hasn't been garbage-collected.
If there's a few of these lines (around 10), that's ok.
A large number of lines (say, 50) indicates a GC problem.

---------------------------------------------------------------------------

[Out of date:]
The "random.ss" test is a randomized test of the MrEd classes that tests
MrEd's stability. Load "random.ss", and then run
  (init)
This attempts to create instances of classes using random
intialization arguments. (init) can be run any number of times. 
(2 is a good number) Then run
  (call-all-random) 
This calls every method of every class (skipping some "dangerous" ones
that modify the file system) with a random instance and with random
arguments.

To avoid testing much of the wxMedia toolbox, which is likely to be
platform-independent, (define skip-media? #t) before loading
"random.ss".


==================================================
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
of symbol flags:
  'force not included:
     Use the current eventspaces; expects mred:run-exit-callbacks
     to terminate everything properly
  'force included:
     Use a new eventspace; don't run mred:run-exit-callbacks and
     call wx:kill-eventspace instead.
  'console included:
     Open a MrEd console
  'thread included:
     Spawn a sleeping-and-looping thread during each invocation.
     Also tests semaphore-callback (because it has to)
  'eventspace included:
     Create a new sub-eventspace during each invocation with
     a wx:frame% shown

---------------------------------------------------------------------------

"startup" tests the startup flags of mred. run "run.ss" from that directory.

---------------------------------------------------------------------------

"frame-edit.ss" checks that various frames match with various
edits. Under construction.

---------------------------------------------------------------------------

"gui.ss" tests:
 - save prompting (before closing unsaved files) and
 - autosaving 

evaluate `(load "gui.ss")' in the console to run.

It also overwrites the file "tmp.ss" in the testing directory.

---------------------------------------------------------------------------