This commit is contained in:
parent
aa2ff7b2f0
commit
2f3113f55d
11742 changed files with 1223940 additions and 0 deletions
|
|
@ -0,0 +1,2 @@
|
|||
(executable
|
||||
(name main))
|
||||
|
|
@ -0,0 +1 @@
|
|||
(lang dune 3.6)
|
||||
|
|
@ -0,0 +1,27 @@
|
|||
$ export OUTPUT=output.txt
|
||||
|
||||
In normal (non-watching) mode, pwd is the folder from which dune is launched
|
||||
$ cd bin
|
||||
$ dune exec --root .. -- pwd > $OUTPUT
|
||||
Entering directory '..'
|
||||
Leaving directory '..'
|
||||
$ cat $OUTPUT
|
||||
$TESTCASE_ROOT/bin
|
||||
$ rm -rf $OUTPUT
|
||||
$ cd ..
|
||||
|
||||
In watch mode, pwd is also the folder from which dune is launched.
|
||||
$ cd bin
|
||||
$ dune exec --root .. -w -- pwd > $OUTPUT &
|
||||
Entering directory '..'
|
||||
Success, waiting for filesystem changes...
|
||||
Leaving directory '..'
|
||||
$ PID=$!
|
||||
$ until test -s $OUTPUT; do sleep 0.1; done;
|
||||
$ kill $PID
|
||||
$ wait $PID
|
||||
[130]
|
||||
$ cat $OUTPUT
|
||||
$TESTCASE_ROOT/bin
|
||||
$ rm -rf $OUTPUT
|
||||
$ cd ..
|
||||
Loading…
Add table
Add a link
Reference in a new issue