  $ 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
  $ 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 &
  Success, waiting for filesystem changes...
  $ PID=$!
  $ until test -s $OUTPUT; do sleep 0.1; done;
  $ kill $PID
  $ wait $PID
  [130]
  $ cat $OUTPUT
  $TESTCASE_ROOT/bin
  $ rm -rf $OUTPUT
  $ cd ..
