Commit Graph

31423 Commits

Author SHA1 Message Date
Robby Findler
796f82e4ad whoops: remove duplicate test submodule 2013-12-31 21:26:53 -06:00
Robby Findler
d7970d37ce move planet test specifications into the test files and out of info.rkt
and also minor rackety
2013-12-31 21:22:57 -06:00
Robby Findler
856bf24d1c add deps 2013-12-31 18:01:58 -06:00
Robby Findler
13cab9ca7a disable planet tests except run-all.rkt
since run-all.rkt runs them all and this way we can
make sure they run sequentially
2013-12-31 15:48:10 -06:00
Stephen Bloch
7b742e7c65 Added add-polygon and scene+polygon functions. 2013-12-31 13:41:42 -05:00
Matthew Flatt
b7f4e10fe1 MzCom: fix command-line parsing
I couldn't get MzCOM to work in a release build, because my
installations always had a "-" in the path.

Merge bug fix to v6.0 (pending review)
2013-12-31 10:55:04 -07:00
Jay McCarthy
947bebad23 Look for randomness notification 2013-12-31 10:22:39 -07:00
Jay McCarthy
669229a911 Setting PLTLOCKDIR 2013-12-31 10:17:15 -07:00
Jay McCarthy
96e4ddd8ab Incorporate new raco test usage 2013-12-31 10:13:42 -07:00
Jay McCarthy
0dd91cdc2f Add HTML tests to main-distribution-test 2013-12-31 09:47:43 -07:00
Matthew Flatt
93b38e25a6 fix CPP guard on clang pragmas 2013-12-31 06:49:49 -07:00
Matthew Flatt
d3095f47da fix (disable) for test 2013-12-31 06:49:49 -07:00
Matthew Flatt
88435da36b db/odbc: make library-missing failure lazy 2013-12-31 06:49:49 -07:00
Matthew Flatt
9a44e24fca props: restore gracket entries
Although `raco test` can run the relevant tests, `gracket` causes DrDr
to serialize tests, so keep the `gracket` entries for now.
2013-12-31 06:49:49 -07:00
Robby Findler
8cd129ba6d A possible fix to a memory leak in errortrace
This seems to get rid of the leak, but I'm not sure
if the cache is still doing is job properly. (Most of
the diff hunks in this commit are renaming variables;
the main change is adding the parameter to hold the cache)
2013-12-31 07:18:54 -06:00
Robby Findler
fd743ccdba make me and christos responsible for the options contracts tests 2013-12-30 21:05:46 -06:00
Robby Findler
ae278e3130 adjust drracket to run the test submodule before the main one. 2013-12-30 21:05:46 -06:00
Matthew Flatt
bce27aa387 raco test: add -m/--modules flag, exit code 2 for timeout
Treats file arguments the same as a file in a directory, package,
or collection.

If any test fails due to a timeout, the exit code is 2 (instead
of 1 for only non-timeout failures or 0 for only success).
2013-12-30 17:32:06 -07:00
Matthew Flatt
bce8fc84f8 fix ordering bug in place termination
This bug was introduced in 94771f16ed, moving a local-variable
initialization to after its use.
2013-12-30 16:23:44 -07:00
Matthew Flatt
56483c8809 suppress clang warnings
The warnings need to be suppressed only when compiling preprocessed
code during 3m compilation (because clang doesn't complain about
the relevant patterns when it knows that macros produced them).
2013-12-30 16:22:43 -07:00
Matthew Flatt
d33638248e fix some test properties/submodules
Mostly, revert accidentally removed ".scm" and ".ss" entries.
2013-12-30 16:22:30 -07:00
Matthew Flatt
33f2c23c05 workaround clang problem
Using MZ_INLINE on scheme_get_realint_val() and
scheme_get_unsigned_realint_val() leads to a link
error when using the current clang on Mac OS X 10.9.
Remove the MZ_INLINE declaration, since a modern C
compiler will inline, anyway.
2013-12-30 15:20:30 -07:00
Matthew Flatt
6a0b3af9cd add missing dependency in "r6rs-test" 2013-12-30 12:51:40 -07:00
Matthew Flatt
43d3479786 sync test configuration for non-".rkt" files 2013-12-30 12:15:18 -07:00
Matthew Flatt
58d425c00c raco test: fix error summary in direct mode
Also, fix a doc typo
2013-12-30 12:15:18 -07:00
Matthew Flatt
b3ab82c5f9 fix problem with path->collects-relative
An internal error could be triggered by a path immediately
inside the "pkgs" directory.
2013-12-30 12:15:18 -07:00
Matthew Flatt
e44b15c032 raco test: run ".scrbl" files by default; check cmdline args for all files
To test a file that ends in".ss", ".scm", etc., add a
`test-command-line-arguments` entry to an "info.rkt" file.
2013-12-30 12:15:18 -07:00
Matthew Flatt
fee479e2fa minor doc repair 2013-12-30 12:15:18 -07:00
Matthew Flatt
e226ad66c5 move "props" test configs to test submodules or "info.rkt" files
The "props" file still has

 * ".rkt" `drdr:timeout` entries, needed until DrDr uses submodules and
   "info.rkt" files; although timeout information has been put in
   submodules for `raco test`, DrDr uses `raco test` in a way that does not
   enable timeouts, so that DrDr can implement timeouts itself (and record
   when a test times out)

 * ".rkt" `drdr:random #t` entries; not sure what to do with these, yet

 * ".rkt" `responsible` entries; not sure what to do with these, yet

 * ".rktl" `drdr:command-line #f` entries, needed until all ".rktl" files
   are disabled in DrDr

The following files were previously disabled for DrDr testing, but were
intentionally left as enabled with these changes:

pkgs/racket-pkgs/racket-test/tests/pkg/shelly.rkt
pkgs/racket-pkgs/racket-test/tests/pkg/util.rkt
pkgs/racket-pkgs/racket-test/tests/pkg/info.rkt
pkgs/racket-pkgs/racket-test/tests/pkg/basic-index.rkt
pkgs/racket-pkgs/racket-test/tests/racket/link.rkt
pkgs/racket-pkgs/racket-test/tests/racket/embed-in-c.rkt
pkgs/racket-pkgs/racket-doc/ffi/examples/use-c-printf.rkt
pkgs/racket-pkgs/racket-doc/ffi/examples/c-printf.rkt
pkgs/parser-tools-pkgs/parser-tools-lib/parser-tools/private-lex/error-tests.rkt
pkgs/mysterx/mysterx.rkt
pkgs/mysterx/main.rkt
pkgs/games/gobblet/test-model.rkt
pkgs/games/gobblet/test-explore.rkt
pkgs/games/gobblet/robot.rkt
pkgs/games/gobblet/check.rkt
pkgs/db-pkgs/db-lib/db/private/odbc/main.rkt
pkgs/db-pkgs/db-lib/db/private/odbc/ffi.rkt
pkgs/db-pkgs/db-lib/db/private/odbc/dbsystem.rkt
pkgs/db-pkgs/db-lib/db/private/odbc/connection.rkt
pkgs/distributed-places-pkgs/distributed-places-lib/racket/place/distributed/examples/hello-world.rkt
pkgs/redex-pkgs/redex-lib/redex/private/compiler/match.rkt
pkgs/redex-pkgs/redex-lib/redex/private/compiler/match.rkt
pkgs/htdp-pkgs/htdp-test/2htdp/utest/balls.rkt
pkgs/gui-pkgs/gui-test/framework/tests/test-suite-utils.rkt
pkgs/games/paint-by-numbers/raw-problems/size-calculation.rkt
pkgs/db-pkgs/db-lib/db/odbc.rkt
pkgs/compatibility-pkgs/compatibility-lib/mzlib/traceld.rkt
pkgs/cext-lib/dynext/private/stdio.rkt
pkgs/db-pkgs/db-lib/db/odbc.rkt
racket/collects/ffi/unsafe/objc.rkt
racket/collects/ffi/objc.rkt
pkgs/racket-pkgs/racket-test/tests/pkg/tests-db.rkt
pkgs/racket-pkgs/racket-test/tests/pkg/test-docs.rkt
pkgs/racket-pkgs/racket-test/tests/pkg/test-catalogs-api.rkt
pkgs/gui-pkg-manager-pkgs/gui-pkg-manager-lib/pkg/gui/main.rkt
pkgs/redex-pkgs/redex-lib/redex/private/compiler/redextomatrix.rkt
pkgs/typed-racket-pkgs/typed-racket-lib/typed-racket/base-env/base-special-env.rkt
pkgs/planet-pkgs/planet-test/tests/planet/version.rkt
pkgs/planet-pkgs/planet-test/tests/planet/test-docs-complete.rkt
pkgs/planet-pkgs/planet-test/tests/planet/lang.rkt
pkgs/planet-pkgs/planet-test/tests/planet/docs-build.rkt
pkgs/drracket-pkgs/drracket-test/tests/drracket/follow-log.rkt
pkgs/drracket-pkgs/drracket/drracket/private/dock-icon.rkt
pkgs/drracket-pkgs/drracket-test/tests/drracket/tool-lib-and-sig.rkt
2013-12-30 12:15:18 -07:00
Matthew Flatt
4a19403288 raco test: use executable-yield-handler before exit 2013-12-30 12:13:57 -07:00
Matthew Flatt
f830768c37 raco test: add test-command-line-arguments field for "info.rkt"
Also, make `--drdr` timeout 90 seconds instead of 600.
2013-12-30 12:13:57 -07:00
Mike Sperber
ddbdebe362 German string constant for install-pkg-not-rentrant.
Please merge to 6.0 release branch.
2013-12-30 15:25:06 +01:00
Robby Findler
a41c408158 fix populate-compiled.rkt test 2013-12-29 22:33:01 -06:00
Matthew Flatt
bbb0c5f6e9 raco test: fix process command-line handling and adjust timeout handling 2013-12-29 09:40:22 -06:00
Matthew Flatt
81a03d59de raco test: add "info.rkt" field test-omit-paths
Using an "info.rkt" field is a fallback for when a submodule
won't do (e.g., because the module doesn't normally compile).
2013-12-29 08:35:21 -06:00
Matthew Flatt
3b3c3726ba raco test: default mode more like before
By default, a single file runs directly, instead of in a subprocess,
and stderr is not checked. That's both more in line with the old
behavior and more suitable for DrDr's use in running an individual
test.

Also, get rid of the `drdr` submodule, which doesn't look like a good
idea anymore.
2013-12-29 06:40:15 -06:00
Robby Findler
5059db47d3 adjust the installation package GUI so it doesn't install during
and installation (ditto update)

closes PR 14263

this may be a release branch candidate. I'm not sure myself, but the PR
sounds worrying.

If it should be considered, then this is the relevant diff (since more than
half of the diff is whitespace changes) to the file pkg/gui/main:

@@ -57,6 +57,8 @@

   (define terminal #f)
   (define (in-terminal-panel abort-label thunk)
+    (cond
+      [(or (not terminal) (send terminal can-close?))
     (send dlg begin-container-sequence)
     (when terminal (send terminal close))
     (define t (in-terminal
@@ -71,7 +73,10 @@
     (disallow-close)
     (send dlg end-container-sequence)
     (yield (send t can-close-evt))
-    (allow-close))
+       (allow-close)]
+      [else
+       (message-box (string-constant install-pkg-dialog-title)
+                    (string-constant install-pkg-not-rentrant))]))
2013-12-28 20:50:29 -06:00
Matthew Flatt
92872addf2 fix some tests 2013-12-28 19:55:32 -06:00
Matthew Flatt
0db19423b4 raco test: add DrDr-like modes
Run tests in separate processes, support tests in
parallel, flag tests with non-zero exit codes or
stderr output as failing, add timeout support, etc.

Use the `--drdr` flag as a shorthand for DrDr-like flags.
The `--drdr` flag causes `raco test` to check for a `drdr`
submodule, then a `test` submodule, then run the module
directly. (The idea is that DrDr will eventualy try the
same sequence.) A test can declare an alternate timeout
through a `config` sub-submodule (and the idea is that
"props" will go away).
2013-12-28 19:55:31 -06:00
Matthew Flatt
5ea4c2ab68 fix sync on place with no writers
A `sync` on a place whose initial channel is known to have no writers
could trigger a place result instead of blocking on the place.
2013-12-28 19:55:31 -06:00
Matthew Flatt
94771f16ed fix race in place termination
A place claimed to be done according to `place-wait` before its
clean-up actions ran, including flushing output ports. Fix the
order.
2013-12-28 19:55:31 -06:00
Matthew Flatt
f6b8f734f3 convert ".rktl" test entry points to ".rkt" 2013-12-28 19:55:31 -06:00
Robby Findler
0edcbf3f82 fix bug in ->* contract combinator
that would cause the optional and mandatory keyword arguments
to get mixed up in certain situations
2013-12-28 16:15:25 -06:00
Robby Findler
b591729891 tighten contracts in a way that appears
consistent with their behavior and their
documentation
2013-12-27 21:28:42 -06:00
Robby Findler
c12a6bea0e Be wary that the default-shortcut-prefix might be
duplicated in a menu item prefix
2013-12-27 21:28:42 -06:00
Eric Dobson
ec75e9ae08 Add rackunit HISTORY.txt for version 6.0. 2013-12-25 06:59:21 -08:00
Matthew Flatt
22513439ff raco setup: fix dependency checking for "racket" package
Possibly, only "base" should depend on "racket", while the version
number of "base" should track the version number of "racket".
2013-12-24 18:00:38 -06:00
Matthew Flatt
4fbea1376e scribble & slideshow: move detail-change notes into docs 2013-12-24 18:00:38 -06:00
Matthew Flatt
99daa9b34d in-directory: add optional argument to filter directories 2013-12-24 18:00:38 -06:00
Matthew Flatt
3f30400a59 scribble/manual: add history
Also, show supplying package in providing-package hover at
definition sites.
2013-12-24 18:00:37 -06:00