Commit Graph

27 Commits

Author SHA1 Message Date
Matthew Flatt
2d3b856b71 raco test: create fresh user directory for each test in DrDr mode 2014-06-03 07:40:05 +01:00
Jay McCarthy
4b1cb56b99 Ensure that explicit arguments are always run even when ignored by info.rkt 2014-06-02 18:31:30 -06:00
Matthew Flatt
3f75bc21d9 raco decompile: fix for bytecode without source 2014-06-02 20:40:24 +01:00
Matthew Flatt
5ad11c85e6 raco {make,decompile}: fix bytecode path calculation
Use `compiler/compilation-path` to take into account PLTCOMPILEDROOTS, etc.

Closes PR 14525
2014-05-27 09:27:15 +01:00
Matthew Flatt
e4189afb15 raco decompile: improve argument checking and reporting
Relevant to PR 14525
2014-05-27 07:17:11 +01:00
Matthew Flatt
9e3b984463 raco make: improve parallelism
The `require` macro now logs "prefetch" messages when it sees a `require`
with multiple module paths. The prefix information is approximate, since
parsing a `require` subform might depend on imports from a previous subform,
but in the common case, there are many obvious module paths to prefetch.

The parallel mode of `raco make` watches for prefetch messages and
records the suggested "prefetch" paths so they can be compiled by other
processes.
2014-05-26 18:56:50 +01:00
Robby Findler
fa68b57de3 fix raco test -c
closes PR 14494
2014-05-10 11:12:22 -05:00
Sam Tobin-Hochstadt
cff3c41e01 Add -l flag to raco test.
Behaves similarly to `-l` for plain `racket`.
2014-04-23 17:52:33 -04:00
Eric Dobson
f0ebfee9ac Make parallel compile not call exit.
Closes PR 13373.
2014-01-13 09:34:40 -08:00
Vincent St-Amour
3a025efcce Fix raco test on relative paths. 2014-01-06 18:00:29 -05:00
Matthew Flatt
19f8f30f63 copy responsible info to "info.rkt" files
It seems more ideal that `pkg-authors` would be specific enough
responsibility, but our existing allocations of responsibility are
more fine-grained, and we keep them for now.
2014-01-01 07:27:15 -07:00
Matthew Flatt
59cbefe47a raco test: responsible-party and varying-party logging, lock names
The responsible party for a test defaults to the enclosing package's
author.

Also, add support for a `test-timeouts` fallback in "info.rkt".
2014-01-01 07:27:15 -07: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
58d425c00c raco test: fix error summary in direct mode
Also, fix a doc typo
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
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
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
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
33b7d49b2e raco exe: add --config-path option, default to "etc"
Make executables created by `raco exe` not refer to the original
configuration directory by default, but add an option for setting
the directory.

For Unix ELF executables, fix `raco exe` to set/preserve the
configuration directory.

Merge to v6.0
2013-11-29 13:13:25 -07:00
Jay McCarthy
8e2622857f Continue fixing PR14175 by looking at all links files 2013-11-19 14:20:59 -07:00
Jay McCarthy
80ba30eaab Fix PR14175 2013-11-19 13:22:48 -07:00
Matthew Flatt
9b04d516ba raco expand & decompile: add --columns option 2013-11-07 13:52:38 -07:00
Matthew Flatt
1920ac59ab move some test & doc collections out of "racket-" pkgs to new pkgs 2013-10-15 17:50:32 -06:00