Commit graph

831 commits

Author SHA1 Message Date
Luke Boswell
def5372e1c fix combine_tasks_with_record_builder cli test on linux 2024-11-11 20:56:51 +11:00
Luke Boswell
fc315f7c67
revert separate test platform commits 2024-11-11 16:59:08 +11:00
Luke Boswell
e4fd9ce434
use crate for test-platform-simple-zig 2024-11-11 13:22:19 +11:00
Luke Boswell
f84aad1967
move effectful test platform into rust crate 2024-11-11 12:58:51 +11:00
Luke Boswell
e4d0115ca4
Merge remote-tracking branch 'remote/main' into rebuild-platform 2024-11-11 11:55:06 +11:00
Luke Boswell
aa98706547
complete merge remote/main into rebuild-platform 2024-11-11 11:32:46 +11:00
Luke Boswell
8a566dc339
WIP 2024-11-11 10:22:58 +11:00
Anton-4
219ebe084a
update everything to basic-cli 0.16.0 2024-11-08 15:51:20 +01:00
Agus Zubiaga
7f8149d386
Ignore all but one cli_run effectful tests on Linux
Things go wrong when multiple tests depend on the same platform
on Linux. Tried a few workarounds but the problem persisted.
We decided to keep only one test for now.
2024-11-07 19:11:57 -03:00
Agus Zubiaga
de2260e67a
Add simple effectful cli run tests 2024-11-07 18:54:22 -03:00
Agus Zubiaga
c9f001b041
Allow ignored defs with an effectful RHS 2024-11-07 18:54:22 -03:00
Agus Zubiaga
cfc4be5254
Treat untyped suffixed functions as effectful 2024-11-07 18:54:21 -03:00
Agus Zubiaga
c1a82ae59b
Merge pull request #7199 from roc-lang/fix-imports-in-expect-7025 2024-11-06 07:56:21 -03:00
Agus Zubiaga
0dedab1725
Fix imports in expects #7025 2024-11-05 19:13:29 -03:00
Agus Zubiaga
6c505a4dc8
Add test for fixed issue 7116 2024-11-05 18:12:56 -03:00
Agus Zubiaga
625a5425f4
Unify import params on copied variable 2024-11-05 18:10:01 -03:00
Luke Boswell
743030fc99
ignore platform-switching rust cli test 2024-11-05 07:41:59 +11:00
Luke Boswell
1b0cd14715
add script to prebuild platform-switching rust 2024-11-04 15:37:34 +11:00
Luke Boswell
81f466fee0
cargo fmt 2024-11-04 13:59:14 +11:00
Anton-4
afd26360a0
removed unused dependency, wasm benchmark debugging progress 2024-10-26 19:59:57 +02:00
Anton-4
82beb35d3f
updated benchmarks to new ExecCli 2024-10-25 20:45:59 +02:00
Sam Mohr
ca762127e5
Fix formatting and clippy errors 2024-10-24 23:11:20 -07:00
Luke Boswell
d0ee040421
make clippy happy 2024-10-24 11:31:15 +11:00
Luke Boswell
926014518f
Merge remote-tracking branch 'remote/main' into rebuild-platform 2024-10-24 10:21:08 +11:00
Anton-4
9b7c6c9fe7
cleanup warnings 2024-10-23 19:36:03 +02:00
Anton-4
63b8e50d96
refactoring PrebuiltHost, fixed glue tests 2024-10-23 19:30:39 +02:00
Jasper Woudenberg
ad555297cf
Set argv[0] to .roc file passed to 'roc run'
When we run `roc run <file>` or `roc <file>` then Roc will compile a
binary and run it. Before this commit we would set the path to the
compiled binary as argv[0]. This commit changes the behavior to make
argv[0] in the binary correspond to the roc file being ran.

This benefits the use of roc scripts that make use of a shebang:

    #!/usr/bin/env roc

With this change such scripts will be able to read the path to
themselves out of ARGV. This trick is commonly used for instance by bash
scripts in order to access files relative to the script itself.
2024-10-21 21:54:46 +02:00
Anton-4
0e28199b49
fixed valgrind crate 2024-10-21 17:43:22 +02:00
Anton-4
5953155f70
done with cli_tests 2024-10-19 19:25:50 +02:00
Anton-4
37f1c98bf7
finished refactoring benchmarks 2024-10-19 17:23:22 +02:00
Anton-4
9f4c8b18d8
refactoring progress 2024-10-18 20:09:10 +02:00
Anton-4
54ae11be25
finished refactoring simple zig platform tests 2024-10-18 17:45:28 +02:00
Anton-4
a18e4100c6
refactoring cli_tests progress 2024-10-16 19:35:21 +02:00
Anton-4
5b451f9288
fixed run_multi_dep_str 2024-10-16 18:24:14 +02:00
Anton-4
b346adfab8
fixes and refactoring progress 2024-10-16 16:39:16 +02:00
Anton-4
837dc7b7cc
Merge pull request #7154 from DavidEdwards1/allow-check-on-markdown
Initial Sketch of roc check on Markdown
2024-10-15 13:54:09 +02:00
Anton-4
734a4e4504
clean up dbg
Signed-off-by: Anton-4 <17049058+Anton-4@users.noreply.github.com>
2024-10-15 12:54:52 +02:00
Anton-4
e73484d282
improve names
Signed-off-by: Anton-4 <17049058+Anton-4@users.noreply.github.com>
2024-10-15 12:53:56 +02:00
David Edwards
94ad57dcfa
Read file line by line rather than all at once 2024-10-13 21:33:41 +01:00
Anton-4
7dfa469ea8
stuck on Only 64bit little endian elf currently... 2024-10-12 19:47:16 +02:00
Anton-4
0659abdc40
cli tests refactoring progress 2024-10-11 20:54:31 +02:00
David Edwards
13ffa9b9db
Initial Sketch of roc check on Markdown
This commit alters `roc check` to be able to run on Markdown files. The overall flow is:
 - check if the file has a `.md` extension
  - if it does extract any fenced code blocks marked as Roc
  - write those blocks to temp files
  - run `roc check` sequentially on every temp file
  - print out the results of `roc check`
  - exit early if any individual `roc check` has non-zero exit status
 - if the file does not have `.md` extension proceed as before
2024-10-09 21:13:45 +01:00
Anton-4
3bad18dc92
refactoring progress, use valgrind on exe 2024-10-09 20:04:36 +02:00
Luke Boswell
de9491eb7f
Merge remote-tracking branch 'remote/main' into rebuild-platform 2024-10-09 09:57:27 +11:00
Luke Boswell
8b8db294c0
restore module_params cli tests 2024-10-09 09:51:33 +11:00
Luke Boswell
81668e66bf
move roc_cli tests to use insta snapshots 2024-10-09 09:45:07 +11:00
Luke Boswell
e3afeaa7ff
WIP Merge remote-tracking branch 'remote/main' into rebuild-platform 2024-10-09 09:21:46 +11:00
Brendan Hansknecht
21e370f41f
minor formatting fixes 2024-10-07 21:16:30 -07:00
Brendan Hansknecht
9da9c08015
make the test more robust and actually run it 2024-10-07 21:16:30 -07:00
Brendan Hansknecht
3c232446d9
add a test for multiple expose and fix naming 2024-10-07 21:16:30 -07:00