Commit Graph

170 Commits

Author SHA1 Message Date
Robby Findler
760ec887b9 split up the REPL test to get parallelism in drdr (and hopefully avoid timeouts) 2012-02-12 19:33:35 -06:00
Matthew Flatt
9b569aa9a2 adjust some libraries to avoid converting paths to strings too early
Early conversions leave absolute paths in bytecode and rendered
documentation.
2012-02-10 06:17:18 -07:00
Matthew Flatt
8cf49dfdb1 fix format of some error messages
Closes 12536
2012-02-04 05:32:00 -07:00
Robby Findler
c9e4c88b7c fix a bug in check syntax where it would attempt to (as part of the
coloring for blame assignment in check syntax) try to color
the right-hand side of a binding that actually comes from
a lambda-bound variable (and thus crash for not finding the
right-hand side)
2012-01-19 13:20:41 -06:00
Robby Findler
2e54a89773 adjust drracket's repl so that it renders convertible things by turning them into .png's. 2011-12-02 08:10:32 -06:00
Robby Findler
c338e5bfe3 remove now-unneeded debugging printfs from drracket's module-lang test suite 2011-11-30 08:24:20 -06:00
Robby Findler
153dd73f6b adjust drracket to clean up the code that sets the initial value of
current-directory and current-load-relative-directory and to make
current-directory's initial value be the user's home directory
2011-11-28 13:29:55 -06:00
Robby Findler
462a348f19 fix bugs in the way the Racket|Disable Tests menu item worked
also adjust the test-engine-test.rkt test suite to bring it into
sync with the changes to the way the DrRacket REPL works from
commit bfa6b1d953
2011-11-28 00:13:59 -06:00
Robby Findler
2f5e0206a8 more printfs to try to find what is going on in drdr with the module-lang-test.rkt 2011-11-14 07:08:37 -06:00
Robby Findler
38b4d11abe add some debugging printfs in an effort to try to understand what's going wrong when this test runs in drdr 2011-11-13 08:15:02 -06:00
Matthew Flatt
13605b55db remove accidentally added file 2011-11-12 05:33:20 -07:00
Matthew Flatt
3cd071beb2 fix fd polling in atomic mode 2011-11-11 07:05:16 -07:00
Robby Findler
961e280a98 add a bunch of tests to the module language test suite based on test cases in the repl test suite
(since the repl test suite tests the pretty big language's repl and since there was a test case
there that would have discovered a bug that we only found in the hours before the release but had
been lurking for a few days)
2011-11-10 16:31:09 -06:00
Robby Findler
b063604ab4 fix begin-for-syntax test 2011-11-08 22:02:12 -06:00
Robby Findler
bfa6b1d953 Fixed some bugs in the double-stacktrace window; adjusted the repl to
be able to insert more with-stack-checkpoint calls in useful places;
adjust test suites to match the change in when the stacktrace icon
shows up
2011-11-07 07:42:14 -06:00
Robby Findler
cac37b0b6a added test cases for phase issues in the module language repl 2011-11-06 21:14:51 -06:00
Robby Findler
b7541c5d1b Revert "IN PROGRESS: starting to fix the repl-test for the new error icons"
This reverts commit 8ec968fe8f.
2011-11-03 17:14:06 -05:00
Robby Findler
8ec968fe8f IN PROGRESS: starting to fix the repl-test for the new error icons 2011-11-03 17:13:17 -05:00
Robby Findler
90304687f1 improve the strategy for check syntax's tail arrow information collection
In particular, instead of trying to collect all of the arrows and do some kind
of a smart transitive closure (that tries to avoid adding links that would "skip"
expressions but doesn't always manage it), the new code tries instead to build
the right links directly while traversing the fully expanded expression

This also seems to have been a minor performance improvement. When running the
information collection phase of check syntax (ie, not counting the time for
expansion) on a 1.8 GHz core i7, for collects/framework/private/text.rkt,
the times went from:

cpu time: 7347 real time: 7413 gc time: 211
cpu time: 7328 real time: 7393 gc time: 239
cpu time: 7356 real time: 7418 gc time: 240

to:

cpu time: 7562 real time: 7632 gc time: 265
cpu time: 7555 real time: 7618 gc time: 269
cpu time: 7552 real time: 7617 gc time: 262

closes PR 11835

do not include in 5.2
2011-10-10 14:18:01 -05:00
Robby Findler
1c630063c5 remove debugging edit 2011-09-28 19:56:37 -05:00
Robby Findler
c8cbe81e51 fix problems with the autosave recovery gui and add a drdr test for it 2011-09-28 17:06:30 -05:00
Robby Findler
0baa32bcf8 fix the way that the set of identifiers to rename is calculated so that
macros that do strange things like the one below are treated better

(define-syntax-rule (m q)
  (begin (lambda (q) q)
         (define q 1)))
(m x)
x
2011-09-26 13:00:23 -05:00
Robby Findler
ae34e1a960 fix a race (suggested by drdr test results) 2011-09-26 06:08:58 -05:00
Robby Findler
abda257295 moved the 'send to repl' keystrokes to the manual (and added a test
suite to make sure the example code in the manual doesn't get stale)
2011-09-23 16:37:18 -05:00
Robby Findler
d654d3e09b add the place creation memory use to the memory-log test
(this required rearranging a bunch of local-member-names)
2011-09-20 17:15:02 -05:00
Robby Findler
5ce47fe988 adjust a syncheck test so hopefully to avoid mutating datastructures from the wrong thread 2011-09-20 17:14:57 -05:00
Robby Findler
443434fd01 adjust hangman test suite strategy; instead of waiting for a hangman frame to get teh focus,
instead wait for a frame in the user's eventspace that has the name "Hangman".

also, some minor rackety
2011-09-16 12:24:39 -05:00
Eli Barzilay
370678abf6 Avoid compiling wxme test files.
Since that requires `racket/draw', which requires libcairo, which is
missing on some build machines.  It might be needed in the future, but
for now it's better to make it easier to add build machines.
2011-09-16 10:48:18 -04:00
Mike Sperber
bbb38c0ff9 Report signature violations in the REPL.
In the course of this, revamp the logic that controls when the
test-results window pops up and when it doesn't.

Closes PR 12185
2011-09-14 22:00:42 +02:00
Robby Findler
437d654cc1 add some more snips to the test suite 2011-09-13 20:46:05 -05:00
Robby Findler
89ef65a746 fix the collapsed snipclass so that it cooperates with the wxme library and
thus saved files with collapsed snips can be required in non-GUI contexts
2011-09-13 14:58:39 -05:00
Robby Findler
cbaa25c2b0 add a test so that the current version of files with collapsed snips in them
continue to work going forward
2011-09-13 14:56:33 -05:00
Robby Findler
cd1c96d596 adjust check syntax to work with the new begin-for-syntax 2011-09-10 22:10:59 -05:00
Robby Findler
e947df4359 finally fixed up the syncheck tests so they run under windows 2011-09-10 22:10:51 -05:00
Robby Findler
c30122d1fc more adjustments to try to get the drracket test suites running in drdr 2011-09-05 20:19:17 -05:00
Robby Findler
09e65716d5 add missing require 2011-09-05 20:19:15 -05:00
Robby Findler
cda12b39ed more adjustment of the drracket test suites to avoid using os-given focus information
also increase the timeout of the io.rkt test
2011-09-05 14:13:49 -05:00
Robby Findler
a67f509f90 add frame:focus-table-mixin & related things to be able to make drracket
test suites that don't depend on the OS giving any focus messages
2011-09-05 08:30:49 -05:00
Eli Barzilay
1b05a2968c Quick fix
(Didn't realize that tool names are relative to the info file.)
2011-08-29 16:48:15 -04:00
Eli Barzilay
e788903d0e Remove a bunch of no-longer-needed `compile-omit-paths', and move the
few ones into the subcollections.
2011-08-29 16:33:12 -04:00
Robby Findler
0f534be12c oops 2011-08-27 17:25:52 -05:00
Robby Findler
7c640c5c5d add a test case for starting up drracket when there is no writing to the filesystem allowed 2011-08-27 17:25:15 -05:00
Eli Barzilay
1db5ad97f8 Fix another bunch of "language" typos. 2011-08-26 05:26:46 -04:00
Vincent St-Amour
cfec4280d3 Fix DrRacket test. 2011-08-17 17:34:55 -04:00
Vincent St-Amour
c8a930550e Fix DrRacket tests. 2011-08-17 12:12:54 -04:00
Robby Findler
a221e4bba2 move some helper files into the private/ directory for drracket tests 2011-08-17 06:19:23 -05:00
Casey Klein
72059c908b Fixes check syntax bug 2011-08-15 17:50:11 -05:00
Robby Findler
00d3f72f21 fix up a few bugs, improve the docs, and start a test suite for the
new check syntax direct-to-traversal api
2011-08-14 14:32:45 -05:00
Robby Findler
71c6483f4f trace the language-position require(s) specially
so as not to turn them red when there is no use
of something exported by them in the program
  closes PR 12100
2011-08-10 19:12:04 -05:00
Robby Findler
b972a0940d Added online expansion and compilation of files
being edited in DrRacket (via places)

Added an API to let tools have access to that
  information (and compute more stuff)

Used that to make an online version of Check Syntax
  which led to a separately callable Check Syntax API.
2011-08-02 16:28:16 -05:00
Matthew Flatt
bd10ccc1b7 don't compile test file with image constant 2011-07-16 19:29:35 -06:00
Robby Findler
75c1aa5f4d adding teaching language executable creation test case 2011-07-16 09:38:45 -05:00
Guillaume Marceau
c287519cc0 Updated the expected errors messages in the tests to match the new vocab. 2011-07-06 08:47:15 -04:00
Guillaume Marceau
9706920055 Updated the error messages of the world and universe teachpacks. 2011-07-06 05:35:27 -04:00
Guillaume Marceau
aa9dbd21f5 Updated the error message of check-expect. Fine tuning of the error messages. 2011-07-06 05:35:25 -04:00
Guillaume Marceau
6eea5b1793 The new error messages now pass the tests/language-test.rkt suite
(except for contract runtime error messages in levels higher than
 beginner.)
2011-07-06 00:19:26 -04:00
Eli Barzilay
3157955d40 ".ss" -> ".rkt" scan done. 2011-07-02 10:37:53 -04:00
Eli Barzilay
40124a0619 A long overdue scan to eliminate files without terminating newlines.
(DrRacket should really do that.)
2011-06-28 02:01:41 -04:00
Robby Findler
c5f8add9ea avoid eval-compile-time-part-of-top-level when in the module language
Thanks to Ryan for spotting this call!
  Closes PR 11908
2011-05-10 14:10:28 -05:00
Robby Findler
0e58a37105 fixed up a test (that I hadn't meant to push the last time, sigh) 2011-05-09 15:34:01 -05:00
Robby Findler
f60f23496d added a drracket test 2011-05-08 22:30:24 -05:00
Robby Findler
41497cec6a avoid printing stacktrace information when the exception is a exn:fail:user?.
closes PR 11874
2011-04-24 07:45:07 -05:00
Robby Findler
e8ce23cc9a adjust the test-engine test suite so it prints errors to stderr
and thus drdr will send email when test cases fail
2011-04-22 06:16:43 -05:00
Robby Findler
2187773474 adjusted to change in the module language dialog 2011-02-25 09:42:16 -06:00
Robby Findler
783945f96b adjust the test coverage test suite to the changes in test coverage 2011-02-18 13:20:37 -06:00
David Van Horn
c9519fd113 Fixed various spelling errors. 2011-02-03 17:42:33 -05:00
Robby Findler
419ca0a36d adjust the test-engine test suite to use the new preferences location 2011-01-27 11:00:49 -06:00
Robby Findler
85c955fad6 tweak to move interactions fetch to the eventspace handler thread 2011-01-25 20:58:39 -06:00
Robby Findler
45a635339e refactored to make testing check syntax renaming possible
made sure to remove duplicates from the list before doing renaming
  closes PR 11659
2011-01-21 22:27:18 -06:00
Robby Findler
8c513f2b32 drracket tests: dont' insist on a stacktrace for break exceptions 2011-01-20 19:05:43 -06:00
Robby Findler
ff800c997e make the example-test private file's work be behind a thunk (so more drdr friendly) 2011-01-17 15:04:00 -06:00
Robby Findler
6c974f6c5f add missing require 2011-01-15 15:14:57 -06:00
Robby Findler
90b8400d50 make up a new temp dir instead of using C:\tmp 2011-01-15 06:44:42 -06:00
Mike Sperber
d2aa1c1138 Make test-engine tests work with new gracket. 2011-01-15 12:25:39 +01:00
Robby Findler
255cb84b87 add an example tool (that actually does something) to the docs and make a test suite that sets that tool up and runs it 2011-01-13 20:11:55 -06:00
Robby Findler
d1e0e7e254 fixed a few places in the repl-test where it was accessing gui stuff on a non-GUI thread 2011-01-03 17:41:08 -06:00
Robby Findler
fbe6e06957 give up on predicting the stack trace contents when yield is used 2011-01-03 07:15:03 -06:00
Robby Findler
6fb6fca73b make the test suite less picky about the contents of the stack (but not if it has content or not) 2011-01-02 19:53:39 -06:00
Robby Findler
699058d3a4 do a little bit better job keeping the manipulation of the gui state on the eventspace handler thread (in the syncheck test) 2010-12-31 15:29:23 -06:00
Robby Findler
e75d6b3fae replace one inherently racecondition-prone test with two others that approximate it 2010-12-31 10:50:27 -06:00
Robby Findler
fb25dc9a42 adjusted drracket test suites so that it is (more) careful to keep all manipulation of GUI objects (text% objects seem to have been the important one) on the drracket eventspace main thread in an effort to make the test suites more stable. 2010-12-29 20:31:40 -06:00
Matthew Flatt
5339be7594 make language test work with cgc 2010-12-28 10:52:17 -07:00
Robby Findler
6fe8643194 adjust teaching languages so that print works properly 2010-12-27 09:16:09 -06:00
Robby Findler
dd531dde9e check syntax does not call eval-compile-time-part-of-top-level when
checking programs in the module language.
closes PR 10908
2010-12-25 15:38:08 -06:00
Robby Findler
53509bef5f made module lang tests Windows friendly & Rackety 2010-12-20 08:43:28 -06:00
Robby Findler
60d986b6df added a not-quite-right test case (drracket's test suites don't run well in gr2 yet) 2010-12-02 10:40:43 -06:00
Robby Findler
9501a9d7f8 adjustments to match gr2 2010-12-02 10:40:43 -06:00
Robby Findler
eabbb7dff2 improve the leak test a little by looking to see tabs get gc'd and so do the user's namespaces. 2010-11-28 19:26:38 -06:00
Robby Findler
4c9794acc6 drracket frames leak; add a test case 2010-11-26 08:51:37 -06:00
Robby Findler
ea985a81d6 added some more information to the error messages when a syncheck test case fails 2010-10-19 18:41:20 -05:00
Mike Sperber
32455894bc Unbreak the test-engine-test.rkt test suite.
- signatures are only in ASL now
- the error messages for the DMdA languages are different
2010-10-18 09:37:48 +02:00
Robby Findler
dac011bc9f move the signature coverage test to ASL since signatures are now only in ASL 2010-10-14 11:45:04 -05:00
Robby Findler
61188f3e44 adjusted to new error messages 2010-10-14 10:06:26 -05:00
Robby Findler
798e35bb4c fixed a bug in the test suite so that test errors are now (all) reported to stderr instead of stdout
also added a test suite for teh 'language in the source' language
2010-10-13 15:55:17 -05:00
Mike Sperber
bb098fc77c Added rudimentary test suite for test engine. 2010-10-13 14:01:07 +02:00
Robby Findler
2649e21e4b fixed race-condition in hangman test case 2010-09-24 20:33:58 -05:00
Robby Findler
8499a4e65d added a test suite for the hangman teachpack 2010-09-21 15:27:49 -05:00
Casey Klein
a773471b7e Strengthens the definition-finder tests 2010-09-09 13:42:15 -05:00
Robby Findler
72afa3d7b3 fixed the teachpack test suite for the new teachpack dialog 2010-09-09 13:17:27 -05:00
Casey Klein
f1be76f2e2 Special-cases DrRacket's definition-finder to find Redex metafunction definitions 2010-09-09 12:07:24 -05:00