Commit Graph

456 Commits

Author SHA1 Message Date
Dan Doel
907aba9550 Rerun jit tests with regenerated file 2024-06-27 17:21:42 -04:00
Chris Penner
5ca1eb3b8d Replace '.' references with scratch/main 2024-06-25 11:11:07 -07:00
Arya Irani
4da7930d11
unmodify jit-tests.sh 2024-05-10 12:03:34 -04:00
Arya Irani
9da0a4f43c Merge remote-tracking branch 'origin/trunk' into kylegoetz-udp 2024-05-10 11:23:38 -04:00
Kyle Goetz
e2aa974b80 use my branch on Share for testing 2024-05-06 00:07:12 -05:00
Dan Doel
043a202b63 Add test. Fix a corresponding EROR mismatch in boot.ss 2024-05-03 15:49:43 -04:00
Kyle Goetz
7b2e520baa temp JIT test script 2024-05-01 00:15:08 -05:00
Arya Irani
19be0a5efd Merge remote-tracking branch 'origin/trunk' into kylegoetz-udp
# Conflicts:
#	unison-cli/unison-cli.cabal
#	unison-src/builtin-tests/interpreter-tests.md
#	unison-src/builtin-tests/testlib.u
#	unison-src/builtin-tests/tests.u
2024-04-05 14:39:07 -06:00
Arya Irani
eb355bfa3e code review ftw 2024-04-05 11:21:29 -06:00
Arya Irani
4def6bc310 update instructions in {jit,interpreter}-tests.tpl.md 2024-04-04 15:19:49 -06:00
Arya Irani
3ba74632f2 added threadKilledTypeLinkTest to common tests on Share 2024-04-04 15:19:16 -06:00
Arya Irani
8f9237251f update readmes 2024-04-04 11:44:12 -06:00
Arya Irani
6d3746e8bb jit-tests.sh to accept a "ucm" arg 2024-04-04 11:34:34 -06:00
Arya Irani
4289192d36 delete superfluous builtin-tests/*.u files 2024-04-04 01:36:54 -06:00
Arya Irani
f5d187ef84 let jit tests run on jit; among other things 2024-04-04 01:20:26 -06:00
Arya Irani
cac59a7edb try retrieving runtime tests from Share 2024-04-03 15:29:16 -06:00
Arya Irani
b202656454 Merge branch 'kylegoetz-udp' of github.com:unisonweb/unison into kylegoetz-udp
# Please enter a commit message to explain why this merge is necessary,
# especially if it merges an updated upstream into a topic branch.
#
# Lines starting with '#' will be ignored, and an empty message aborts
# the commit.
2024-04-02 10:46:56 -06:00
Kyle Goetz
178fa7d96e Merge branch 'kylegoetz-udp' of https://github.com/unisonweb/unison into kylegoetz-udp 2024-04-02 10:51:08 -05:00
Kyle Goetz
9341656bea fixed UDP tests 2024-04-02 10:50:32 -05:00
Arya Irani
0f6246904e fixup testlib and add udp-tests.u to interpreter-tests.md 2024-04-02 01:15:21 -06:00
Arya Irani
1be5cf2d1d Merge branch 'trunk' into kylegoetz-udp
# Conflicts:
#	unison-src/transcripts-using-base/all-base-hashes.output.md
#	unison-src/transcripts/builtins-merge.output.md
#	unison-src/transcripts/emptyCodebase.output.md
#	unison-src/transcripts/merges.output.md
#	unison-src/transcripts/move-all.output.md
#	unison-src/transcripts/move-namespace.output.md
#	unison-src/transcripts/reflog.output.md
#	unison-src/transcripts/reset.output.md
#	unison-src/transcripts/squash.output.md
#	unison-src/transcripts/upgrade-happy-path.output.md
2024-04-02 00:19:42 -06:00
Dan Doel
4f4395fd65 Add a jit test for multiple evaluation from scratch file 2024-04-01 16:12:22 -04:00
Arya Irani
35c4bdd372 Merge branch 'kylegoetz-udp' of github.com:unisonweb/unison into kylegoetz-udp
# Conflicts:
#	parser-typechecker/src/Unison/Builtin.hs
#	parser-typechecker/src/Unison/Runtime/Builtin.hs
2024-03-31 01:17:21 -06:00
Kyle Goetz
3679b0d8c1 move UDP tests to correct spot 2024-03-29 20:57:24 -05:00
Kyle Goetz
f8e80a672f add UDP test 2024-03-29 20:53:45 -05:00
Dan Doel
8c58de7d62 Add jit link tests file 2024-03-28 19:30:07 -04:00
Dan Doel
bb0ee7d044 Add link equality/comparison tests to jit test suite 2024-03-28 17:41:24 -04:00
Dan Doel
596fb892ac Modify serial-tests to test for cache_ bug 2024-03-22 17:47:37 -04:00
Arya Irani
e8e610d0a8 do we need base.output.md? 2024-03-08 14:50:42 -05:00
Arya Irani
3cc86fac62 all the mergeio types we rely on should be in base I suppose? 2024-02-15 17:11:27 -05:00
Arya Irani
b668fe3b96 jit tests reply on some types not in base
at least ThreadKilledFailure, from https://github.com/unisonweb/unison/pull/3835
2024-02-15 16:53:04 -05:00
Arya Irani
f56fb23f46 don't fetch internal 2024-02-14 08:15:14 -05:00
Arya Irani
b3cad2ce2a refactor ci.yaml with jit setup steps (attempt 1)
recommend moving support scheme files to another repo
if they aren't deeply related to ucm; but maybe they are.
2024-02-11 21:02:04 -05:00
Dan Doel
a678f55e10 Actually make run.native use the standalone runner
All the infrastructure was there already, just needed to enable it.

This should break the jit tests in CI until we can get the runner
building as a prior step, and coordinate the location the native runtime
looks for the build files.
2024-02-07 16:10:33 -05:00
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
Dan Doel
cc7367a84a Implement captureAs for racket 2023-11-30 15:36:25 -05:00
Dan Doel
8b3ca4f57d Add some basic murmur hash tests 2023-11-06 15:47:49 -05:00
Dan Doel
a9e06d42cc Tweak sandbox tests
Add some cases that actually fail if statically generated sandboxing
information isn't produced.
2023-10-25 17:06:03 -04:00
Dan Doel
05bd1f928a Fix unsafe deserial test case check
Was wrapping in value too many times, which makes things safe.
2023-10-25 11:23:48 -04:00
Dan Doel
3d5e688466 Add a new serialized test case
Contains a serialized, mutually recursive function that won't be
recognized as unsafe unless the sandboxing information is expanded
correctly.
2023-10-25 11:19:10 -04:00
Dan Doel
ed45bc87b6 Add alias for Value.validateSandboxed to jit tests 2023-10-24 10:52:36 -04:00
Dan Doel
66c19bc307 Fix interpreter tests
- Value.validateSandboxed wasn't being aliased there
- The sandbox check in the interpreter wasn't handling builtin
  dependencies correctly
2023-10-24 10:48:40 -04:00
Dan Doel
976764f082 Fix some type mismatches in primops
Lists vs. chunked lists, byte strings vs. typelinks, etc.
2023-10-24 10:26:29 -04:00
Dan Doel
72841d1264 Implement sandboxing functions in scheme
- Creates a map storing associations of termlinks with sensitive ops
- Procedures for dynamically expanding the map, and declaring
  associations statically
- Structural termlink equality and hashing has been added to the struct,
  because otherwise looking up associated links was failing.
- Declarations for all the sensitive builtins have been included
  statically in the sandbox implementation file
  * Generated code will use a direct declaration of all builtins
    transitively used, since we can look that up at code generation time
- Both sandbox validation functions have been provided, but the one for
  arbitrary values is incomplete.
- Sandboxing has been added to the jit test suite.
2023-10-23 13:49:13 -04:00
Dan Doel
87692f5264 Forgot code-lookup in interpreter-tests.md 2023-10-05 16:28:42 -04:00
Dan Doel
0fa3045371 Add tests for static code lookup
Includes an implementation of Link.Term.toText
2023-10-05 15:35:33 -04:00
Dan Doel
7c694ca5f3 Add a code lookup check to the serial tests
- Makes sure the code that is added to the cache as part of the test can
  be looked back up, and is equal to what was added to the cache.
2023-10-04 23:24:23 -04:00
Dan Doel
9fb3496bd7 Fix JIT/interpreter builtin serial test names 2023-09-11 17:24:19 -04:00
Dan Doel
9d52145f52 Change transcripts for new serialized file names 2023-09-11 16:36:19 -04:00
Dan Doel
699b9d68e3 Add serialization for boxed arrays 2023-09-08 20:01:55 -04:00