mte/unikernel/duniverse/dune_/test/blackbox-tests/test-cases/pkg/package-files.t

31 lines
602 B
Perl
Raw Normal View History

2025-11-11 02:07:51 +01:00
Additional files overlaid on top of the source can be found in the
%pkg.files/ directory:
$ . ./helpers.sh
$ mkdir test-source
$ touch test-source/foo
$ make_lockdir
$ cat >dune.lock/test.pkg <<EOF
> (version 0.0.1)
> (source
> (copy $PWD/test-source))
> (build
> (system "echo foo:; cat foo; echo bar:; cat bar"))
> EOF
$ mkdir dune.lock/test.files
$ cat >dune.lock/test.files/foo <<EOF
> foo from test.files
> EOF
$ cat >dune.lock/test.files/bar <<EOF
> bar from test.files
> EOF
$ build_pkg test
foo:
foo from test.files
bar:
bar from test.files