Commit Graph

31358 Commits

Author SHA1 Message Date
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
Matthew Flatt
f5cfcfecfe setup/command-name: drop ".exe" in short form 2013-12-24 15:38:29 -06:00
Matthew Flatt
1f2012a106 Windows: fix reported exe name in "independent" launchers
For example, make `raco exe --wrong` show "raco" instead of "racket"
as the error-reporting program. Normally, only `raco` and `setup-plt`
are implemented as "independent" launchers, because it's needed for
bootstrapping.
2013-12-24 15:38:28 -06:00
Robby Findler
06598dd5c7 forgot to add a file to the last commit 2013-12-24 15:34:51 -06:00
Robby Findler
e28b63e056 improve the speed of "second order" -> contacts
to bring them back in line with how they were before the
first order special-casing happened
2013-12-24 15:02:38 -06:00
Matthew Flatt
fd487b86a3 make installers: fix quoting for windows/bash ssh 2013-12-24 09:54:16 -06:00
Matthew Flatt
85c85b02b9 mzcom: fix rebuild when version changes 2013-12-24 06:56:03 -06:00
Mike Sperber
3836aebecf Synch German string constants with latest. 2013-12-22 16:18:11 +01:00
Matthew Flatt
6858b8df90 fix problem with doc database in read-only mode
Now that the documentation-build phase of `raco setup` uses read-only
mode, contention between writing and reading sometimes (though
infrequently) triggers an SQLITE_IOERR_LOCK error. Change the SQLite
binding to expose that specific error, as well as SQLITE_IOERR_BLOCKED,
because a retry of the affected operation is appropriate.
2013-12-21 14:37:17 -07:00
Ryan Culpepper
06aa4770f1 fix sqlite rollback-transaction in case of auto-rollback error
Merge to release branch.

An invalid (needs-rollback?) transaction may correspond to a closed
underlying transaction. In that case, don't issue ROLLBACK command.
2013-12-21 10:24:39 -05:00
Vincent St-Amour
15b333a0a6 Add history file for the profiler. 2013-12-21 10:02:18 -05:00
Jay McCarthy
9012f7b3d6 Adding suggestion about 1.0 package versions 2013-12-20 16:31:28 -07:00
Jay McCarthy
490e21ff07 Use Racket navbar on pkgs. and have navbar link to pkgs.
Open question: Where does link to Planet go? Sam's new design has a natural place, but on the old site... it's not clear, community?
2013-12-20 16:31:27 -07:00
Jay McCarthy
7faab4d617 Fix PR14216 2013-12-20 16:31:27 -07:00
Jay McCarthy
6c4650ebbd Remove secret information from pkg error messages 2013-12-20 16:31:27 -07:00
Jay McCarthy
abc8b301d0 Fix typo on pkg site 2013-12-20 16:31:27 -07:00