Commit graph

857 commits

Author SHA1 Message Date
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
Brendan Hansknecht
c61b7bf2a6
Remove requires type from the provides field 2024-10-07 21:16:30 -07:00
Omar Jatoi
3f318e2235
update existing calls to roc_cache_dir()
using `roc_cache_packages_dir()` instead, which will return "~/.cache/roc/packages", which was the existing functionality, but `roc_cache_dir()` will now return "~/.cache/roc"
2024-10-03 12:52:52 -04:00
Hannes
058ef106af Add commit information to roc versions built from source 2024-09-25 21:12:46 +08:00
Agus Zubiaga
3eadc03e28
Add failing test for multiline params 2024-09-20 16:19:56 -03:00
Aurélien Geron
b57258f5cb
Remove a couple remaining references to pf.Task 2024-09-11 15:39:26 +12:00
Sam Mohr
aadc74a37b
Merge branch 'main' into repl-no-color-no-header-flags 2024-09-06 15:52:18 -07:00
Luke Boswell
beb2dcbc84
remove unneeded basic-cli reference in formatting test 2024-09-04 21:26:37 +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
f89f2e8ea7
fix #6987
Signed-off-by: Anton-4 <17049058+Anton-4@users.noreply.github.com>
2024-09-03 20:43:25 +02: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
jamin-eisenberg
d9db14c3d7
Make whitespace uniform 2024-08-28 18:15:24 -04:00
jamin-eisenberg
7429f8a970
Initial attempt (failing tests?) 2024-08-28 18:15:23 -04: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