mte/unikernel/duniverse/dune_/test/blackbox-tests/test-cases/pkg/external-source.t

28 lines
432 B
Perl
Raw Normal View History

2025-11-11 02:07:51 +01:00
Test that can fetch the sources from an external dir
$ . ./helpers.sh
$ mkdir foo
$ echo "y" > foo/x
$ make_lockdir
$ cat >dune.lock/test.pkg <<EOF
> (version 0.0.1)
> (source (copy $PWD/foo))
> (build
> (progn
> (run mkdir -p %{prefix}/bin)
> (run cp x %{prefix}/bin/x)))
> EOF
$ build_pkg test
$ show_pkg test
/source
/source/x
/target
/target/bin
/target/bin/x
/target/cookie