mte/unikernel/duniverse/dune_/test/blackbox-tests/test-cases/cram/custom-build-dir.t

28 lines
681 B
Perl
Raw Normal View History

2025-11-11 02:07:51 +01:00
Create a cram test and try to run it with DUNE_BUILD_DIR set to an absolute
path
$ cat >dune-project <<EOF
> (lang dune 3.5)
> EOF
$ cat >foo.t <<EOF
> $ echo " $ echo bar" >bar.t
> $ dune runtest
> EOF
$ DUNE_BUILD_DIR=$PWD/tmp dune runtest --auto-promote
File "foo.t", line 1, characters 0-0:
Error: Files
$TESTCASE_ROOT/tmp/default/foo.t
and
$TESTCASE_ROOT/tmp/default/foo.t.corrected
differ.
Promoting
$TESTCASE_ROOT/tmp/default/foo.t.corrected
to foo.t.
[1]
$ sed -E '/\(pid: [0-9]+\)/{s//(pid: ###)/; s/instance.*/.../g; q;}' foo.t
$ echo " $ echo bar" >bar.t
$ dune runtest
Error: A running dune (pid: ###) ...