Richard Feldman
1bae95574e
Use more CMD_ constants in cli_run test
2022-05-06 18:03:01 -04:00
Richard Feldman
4a98f7ff0b
Revert "Experiment with multiple input files in CLI tests"
...
This reverts commit f07ffb58f2
.
2022-05-06 17:51:25 -04:00
Richard Feldman
f07ffb58f2
Experiment with multiple input files in CLI tests
2022-05-06 17:51:14 -04:00
Richard Feldman
b64e0b3ce4
Pass input files to roc
and roc run
in CLI tests
2022-05-06 17:50:58 -04:00
Richard Feldman
7cbde410e5
Simplify some error reporting
2022-05-06 17:50:47 -04:00
Richard Feldman
81bdc507f5
Pass args from clap to roc
/roc run
child processes
...
This works much better than the previous "arg index"
approach, especially with subcommands like `roc run`
2022-05-06 17:21:38 -04:00
Richard Feldman
e3865a3679
Use matches_of_os for file paths
2022-05-06 17:13:04 -04:00
Richard Feldman
71fa8c6ee2
Allow args to pass through roc run
to application
2022-05-06 17:13:04 -04:00
Richard Feldman
39ba0aca29
Reorganize parsing of extra CLI args
2022-05-06 17:13:03 -04:00
Richard Feldman
8849e5cdd1
Improve false interpreter missing CLI arg message
2022-05-06 17:13:03 -04:00
Richard Feldman
6f35d1891a
Capture stdin for roc
and roc run
tests
2022-05-06 17:13:03 -04:00
Richard Feldman
e7ac4dac96
Test roc run
and roc
in addition to roc build
...
Also, use constants instead of hardcoded strings.
2022-05-06 17:13:03 -04:00
Richard Feldman
4c3c42f278
Merge pull request #3011 from rtfeldman/fmt-tests
...
Improved formatting tests
2022-05-06 16:17:57 -04:00
Richard Feldman
281602d664
Merge pull request #3003 from rtfeldman/threading
...
Explicit single vs multithreading for build functions
2022-05-06 15:07:33 -04:00
Richard Feldman
c0f18f1c52
Move RemoveSpaces into fmt, for use in tests
2022-05-06 14:37:22 -04:00
Richard Feldman
d337a80ff5
Use matches.value_of_t
2022-05-05 18:00:47 -04:00
Richard Feldman
da3490be8b
Make sure CLI subcommands support the right flags
2022-05-05 17:47:32 -04:00
Richard Feldman
a836570a7b
Remove --link option from CLI
2022-05-05 17:36:25 -04:00
Richard Feldman
dd460fb818
Use single-threaded builds in tests
2022-05-05 14:42:36 -04:00
Ayaz Hafiz
ef877364d4
Allow invalid UTF-8 for roc format
argument
...
Presumably with a new version of clap that was introduced, we must now
specify that invalid-utf8 is permitted in order to run `matches.values_of_os`
as we do on line 174 of cli/src/main.rs:
```rust
Some((CMD_FORMAT, matches)) => {
let maybe_values = matches.values_of_os(DIRECTORY_OR_FILES);
```
Otherwise, clap panics:
```
thread 'main' panicked at 'Must use `Arg::allow_invalid_utf8` with `_os` lookups at `DIRECTORY_OR_FILES`', cli/src/main.rs:174:40
```
2022-05-05 09:04:34 -04:00
Anton-4
108ad9bb86
fix docs generation
2022-05-04 17:45:36 +02:00
Anton-4
dc8a6abf22
updated clap
2022-05-04 14:41:02 +02:00
Anton-4
cc28de408c
update wasmer to 2.2.1
2022-05-03 18:00:29 +02:00
Richard Feldman
85e7969c2d
Replace references to "global tag" with "tag"
2022-04-25 17:04:34 -04:00
Ayaz Hafiz
1ed9cf551a
Remove private tags from Ast
2022-04-25 11:20:37 -04:00
Richard Feldman
6d991476c4
Merge remote-tracking branch 'origin/trunk' into breakout
2022-04-23 22:37:24 -04:00
Richard Feldman
57b7832917
Upgrade target-lexicon
2022-04-23 20:51:57 -04:00
Richard Feldman
061b26e90d
Add breakout to examples under test
2022-04-23 19:45:53 -04:00
Richard Feldman
ed336af17b
Test roc build
on breakout example
2022-04-23 15:34:28 -04:00
Richard Feldman
3a0adb1c7e
Merge pull request #2904 from rtfeldman/cli-args
...
CLI revisions
2022-04-21 12:59:08 -04:00
Jared Cone
66009c4b3c
Updated unit tests
2022-04-20 21:25:11 -07:00
Richard Feldman
6fb8481ebd
Report contents of stderr when example test fails
2022-04-20 20:43:39 -04:00
Richard Feldman
4952f7e9d2
fix cli_run tests
2022-04-20 20:43:39 -04:00
Richard Feldman
e2ea66043a
Add color_reset to StyleCodes
2022-04-20 20:43:39 -04:00
Richard Feldman
6c1e8d3789
fix typo
2022-04-20 17:14:22 -04:00
Richard Feldman
41fafd85fd
C L I P P Y
2022-04-20 17:06:20 -04:00
Richard Feldman
729aab21a1
Don't try to mem::forget a reference
2022-04-20 17:06:17 -04:00
Richard Feldman
4d11e7cbe6
Revamp notes printed after compilation finishes.
2022-04-20 17:05:21 -04:00
Richard Feldman
62484d3890
Add roc run
to run even if there are build errors.
2022-04-20 15:44:39 -04:00
Richard Feldman
a47b3be9c0
Revise some CLI flag descriptions
2022-04-20 11:42:19 -04:00
Richard Feldman
84727b31e5
Only support --target with roc build
2022-04-20 08:23:44 -04:00
Richard Feldman
9a89287365
Don't specify a default value for --precompiled-host
...
If we do, it's treated as always present even if it's
not passed in, which overrides the default of
"infer based on target."
2022-04-15 16:23:27 -04:00
Richard Feldman
d5c843a771
Don't use deprecated --roc-linker flag in tests
2022-04-15 12:13:05 -04:00
Richard Feldman
b60235f3af
Change TEST_SURGICAL_LINKER to TEST_LEGACY_LINKER
2022-04-15 12:12:50 -04:00
Richard Feldman
f56972742f
Default to not precompiled
2022-04-15 10:21:17 -04:00
Richard Feldman
0b979ebe1e
Revert "Try fixing the Killed: 9 problem on M1 Mac"
...
(this didn't fix it)
This reverts commit 089a3de22f
.
2022-04-15 09:42:44 -04:00
Richard Feldman
089a3de22f
Try fixing the Killed: 9 problem on M1 Mac
2022-04-15 09:42:31 -04:00
Richard Feldman
56f97a2edc
Fix some cli_run warnings
2022-04-15 09:24:57 -04:00
Richard Feldman
4065645d3c
Fix references to obsolete CLI flags
2022-04-15 08:46:12 -04:00
Richard Feldman
03c189c049
c-c-c-c-clippy! (turn and face the strange)
2022-04-14 21:52:00 -04:00