27 lines
432 B
Raku
27 lines
432 B
Raku
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
|