unison/unison-src/builtin-tests
Dan Doel d1494a160d Tweak the sandbox test for jit/interpreter comparison
For some reason, the new implementation doesn't think the existing code
should have been sandboxed for the derivations of `open`. After
considerable debugging, this seems to be due to the line:

  _ = FilePath.open

being completely floated out of the combinator before the code is sent
to the native evaluator. So in fact the sandboxing code there is
correct, the function does _not_ need to be sandboxed. However, I'm
uncertain why this discrepancy exists between the native and interpreted
paths. It is completely dead code, though, so I've modified the example
to not be dead.
2023-12-14 14:32:49 -05:00
..
array-tests.u Add serialization for boxed arrays 2023-09-08 20:01:55 -04:00
base.md Bump builtin-tests to base 2.5 2023-08-28 09:14:35 -04:00
base.output.md [iops] ok pulling is working 2023-08-29 09:14:06 -05:00
bytes-tests.u Bump builtin-tests to base 2.5 2023-08-28 09:14:35 -04:00
code-lookup.u Add tests for static code lookup 2023-10-05 15:35:33 -04:00
concurrency-tests.u Bump builtin-tests to base 2.5 2023-08-28 09:14:35 -04:00
interpreter-tests.md Implement captureAs for racket 2023-11-30 15:36:25 -05:00
interpreter-tests.output.md Remove base tests from interpreter builtin tests 2023-09-08 10:58:08 -04:00
interpreter-tests.sh [fix-example-com] hrmmm 2023-04-04 10:04:25 -05:00
io-tests.u [iops] tests passing interpreter 2023-08-30 07:00:45 -05:00
jit-tests.md Implement captureAs for racket 2023-11-30 15:36:25 -05:00
jit-tests.output.md [iops] nice 2023-08-30 07:02:25 -05:00
jit-tests.sh [iops] ok pulling is working 2023-08-29 09:14:06 -05:00
list-tests.u Test equality when using Universal.compare 2023-04-13 11:20:28 +01:00
math-tests.u [even-more-pops] popc 2023-07-24 09:19:53 -06:00
Readme.md fixup 2023-02-03 19:58:24 -06:00
sandbox-tests.u Tweak the sandbox test for jit/interpreter comparison 2023-12-14 14:32:49 -05:00
serial-tests.u Add a new serialized test case 2023-10-25 11:19:10 -04:00
setup-base-codebase.sh make downloading base a separate step in CI 2023-05-25 09:42:27 -04:00
tcp-tests.u Bump builtin-tests to base 2.5 2023-08-28 09:14:35 -04:00
testlib.u Bump builtin-tests to base 2.5 2023-08-28 09:14:35 -04:00
tests-interpreter-only.u Add getLine and seekHandle primitives to the jit 2023-05-30 09:24:23 -05:00
tests-jit-only.u [tls-rest] trying these out 2023-05-15 21:21:35 -05:00
tests.u Add some basic murmur hash tests 2023-11-06 15:47:49 -05:00
text-tests.u Implement captureAs for racket 2023-11-30 15:36:25 -05:00
thread-killed-typeLink-test.u Thread killed typeLink test passing 2023-02-22 11:19:36 +00:00
tls-chain-tests.u Bump builtin-tests to base 2.5 2023-08-28 09:14:35 -04:00
tls-tests.u Bump builtin-tests to base 2.5 2023-08-28 09:14:35 -04:00

Test suite for builtins

Edit tests.u in this directory to add to the test suite. The same test suite can be run using the JIT or the interpreter, using either of the two scripts:

$ ./unison-src/builtin-tests/jit-tests.sh
$ ./unison-src/builtin-tests/interpreter-tests.sh

The scripts will fetch a copy of base and the scheme codegen library and cache it for subsequent runs.