This commit is contained in:
swrup 2025-11-11 02:07:51 +01:00
parent aa2ff7b2f0
commit 2f3113f55d
11742 changed files with 1223940 additions and 0 deletions

View file

@ -0,0 +1,2 @@
(executable
(name main))

View file

@ -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 ..