Skip to content
Closed
Changes from 1 commit
Commits
Show all changes
33 commits
Select commit Hold shift + click to select a range
80a5248
cram_exec - add shell_spec to action spec
haochenx Jul 6, 2023
506ff24
cram - add (shell ..) option to the (cram) stanza
haochenx Jul 6, 2023
7273d46
cram - shell-opt.t - add one test case
haochenx Jul 6, 2023
8d34734
fix tests: test/blackbox-tests/test-cases/cram/shell-opt.t
haochenx Jul 6, 2023
5850f0c
add test/blackbox-tests/test-cases/cram/shell-opt-zsh.t
haochenx Jul 6, 2023
96e8204
make fmt
haochenx Jul 6, 2023
60de1af
move Cram_stanza.shell_spec to Dune_lang.Shell_spec.t
haochenx Jul 7, 2023
c5724de
cram - add (shell ..) option to the (cram) user action
haochenx Jul 7, 2023
6aa7773
restrict (shell ..) option on (cram ..) to (lang dune 3.10) or later
haochenx Jul 7, 2023
dae85d8
cram - small fix of document
haochenx Jul 7, 2023
6b8218a
cram - add document describing (shell ..) option
haochenx Jul 7, 2023
d05b7c0
Merge branch 'main' into cram-shell-spec
haochenx Jul 7, 2023
3350047
add change log entry for #8134
haochenx Jul 7, 2023
2a23c30
address review comments: CHANGES
haochenx Jul 8, 2023
716b5fc
address review comments: Dune_lang.Action.Cram arg: record => tuple
haochenx Jul 8, 2023
f3abb2f
address review comments: Dune_lang.Shell_spec: +map and some comments
haochenx Jul 8, 2023
e557e4f
address review comments: format cram-action-shell-opt.t
haochenx Jul 8, 2023
1669115
address review comments: fix encoder bug in dune_lang/action.ml
haochenx Jul 8, 2023
071f56c
address review comments: replace Cram_exec.Shell_spec.t with Path.t
haochenx Jul 8, 2023
2363502
attempt fix bug
haochenx Jul 8, 2023
1721f66
Apply suggestions from code review - doc wording
haochenx Jul 11, 2023
5dfe145
Merge branch 'main' into cram-shell-spec
haochenx Jul 11, 2023
78a5ab8
Merge branch 'main' into cram-shell-spec
haochenx Jul 11, 2023
e291312
Merge branch 'main' into cram-shell-spec
haochenx Jul 11, 2023
c686868
Merge remote-tracking branch 'up/main' into cram-shell-spec
haochenx Sep 25, 2023
fbc7b4f
reflect review comments
haochenx Sep 25, 2023
9dbb040
fix CHANGES.md
haochenx Sep 25, 2023
25c1cc0
bump to 3.12
haochenx Sep 25, 2023
c3a06f5
correct dune language version
haochenx Sep 25, 2023
1993b95
fix tests and doc
haochenx Sep 25, 2023
544d9f2
no optional encoded action
haochenx Sep 25, 2023
5a8f2de
fix hint text in Cram_stanza.system_shell_prog
haochenx Sep 25, 2023
35fb63d
remove extra space
christinerose Oct 2, 2023
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
cram - shell-opt.t - add one test case
Signed-off-by: Haochen Kotoi-Xie <hx@kxc.inc>
  • Loading branch information
haochenx committed Jul 6, 2023
commit 7273d46354b4e9b359a3bcf7feab56afde82208a
43 changes: 43 additions & 0 deletions test/blackbox-tests/test-cases/cram/shell-opt.t
Original file line number Diff line number Diff line change
Expand Up @@ -206,3 +206,46 @@ from custom_shell.ml
dune-project
foo.t
sh.ml

Check that shell = ./custom_shell.exe uses executable compiled
from custom_shell.ml

$ cat > dune <<EOF
> (cram (shell ./custom_shell.exe))
> (executables (names custom_shell))
> EOF

$ dune build && ls
_build
bash.ml
custom_shell.ml
dune
dune-project
foo.t
sh.ml

$ cat > foo.t <<EOF
> $ echo "foo from foo.t"
> EOF

$ dune runtest --auto-promote
custom_shell.ml
File "foo.t", line 1, characters 0-0:
Error: Files _build/default/foo.t and _build/default/foo.t.corrected differ.
Promoting _build/default/foo.t.corrected to foo.t.
[1]

$ dune runtest -f
custom_shell.ml
$ cat foo.t
$ echo "foo from foo.t"
***** UNREACHABLE *****

$ ls
_build
bash.ml
custom_shell.ml
dune
dune-project
foo.t
sh.ml