Commit graph

531 commits

Author SHA1 Message Date
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
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
Luke Boswell
eb6d61b437
fix crates/cli/tests/platform_requires_pkg host 2024-10-08 19:01:07 +11:00
Luke Boswell
915097d792
Merge remote-tracking branch 'remote/main' into upgrade-llvm-zig 2024-10-08 18:21:24 +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
Brendan Hansknecht
c61b7bf2a6
Remove requires type from the provides field 2024-10-07 21:16:30 -07:00
Agus Zubiaga
3eadc03e28
Add failing test for multiline params 2024-09-20 16:19:56 -03:00
Luke Boswell
99e2bc2038
Merge remote-tracking branch 'remote/main' into upgrade-llvm-zig 2024-09-05 12:11:51 +10:00
Luke Boswell
73846ed282
add test for module_params pass_task.roc 2024-09-04 21:22:52 +10:00
Luke Boswell
5dfcdaed1e
migrate inspect-logging.roc into cli tests and use effects platform 2024-09-04 21:18:03 +10:00
Luke Boswell
c6a67c929e
remove basic-cli tests from roc_cli 2024-09-04 21:09:51 +10:00
Luke Boswell
ef876537b2
migrate cli test combine-tasks.roc off basic-cli 2024-09-04 20:56:23 +10:00
Anton-4
251e1ed070
misc improvements 2024-09-03 18:17:00 +02:00
Anton-4
ec8f6e8a0a
clippy fix 2024-09-03 18:12:17 +02:00
Luke Boswell
a11f51a315
fixup 2024-09-03 20:35:56 +10:00
Luke Boswell
012a2fc63f
Merge remote-tracking branch 'remote/main' into rebuild-platform 2024-09-03 20:35:39 +10:00
Agus Zubiaga
e4079ccb11
Add module_params_pass_task test 2024-09-01 19:18:07 -03:00
Anton-4
e7a44430fd
update to basic cli 15 2024-08-31 14:30:07 +02:00
Anton-4
3c679f6338
Merge branch 'main' into lower-module-params 2024-08-30 16:29:46 +02:00
Sam Mohr
3f866d93ae
Ignore false-interpreter test, unrelated issue 2024-08-29 19:50:03 -07:00
Anton-4
7938e4bdc8
basic-cli 0.15, test fixes 2024-08-28 18:39:15 +02:00
Anton-4
ca7d1cb3fa
Revert "Avoid defining unsized platform Tasks"
This reverts commit d3732b4440.
2024-08-28 16:37:01 +02:00
Agus Zubiaga
287a8fa2e7
Merge branch 'main' into lower-module-params 2024-08-28 08:50:40 -03:00
Agus Zubiaga
d033057a58
Hide params from annotation type mismatches 2024-08-27 19:06:31 -03:00
Agus Zubiaga
a4f4d00ff0
Add unexpected fn params test case 2024-08-27 17:24:13 -03:00
Agus Zubiaga
dd78b8e25b
Add TOO FEW ARGS test case for params 2024-08-27 17:08:55 -03:00
Agus Zubiaga
121a087328
Handle TOO MANY ARGS error for value defs 2024-08-27 17:04:39 -03:00
Agus Zubiaga
658c6963c5
Remove param arguments from TOO MANY ARGS error 2024-08-27 16:08:26 -03:00