This commit is contained in:
swrup 2025-11-11 02:07:51 +01:00
parent aa2ff7b2f0
commit 2f3113f55d
11742 changed files with 1223940 additions and 0 deletions

View file

@ -0,0 +1,41 @@
Testing install actions
$ . ./helpers.sh
$ make_lockdir
$ cat >dune.lock/test.pkg <<'EOF'
> (version 0.0.1)
> (install (system "echo foobar; mkdir -p %{lib}; touch %{lib}/xxx"))
> EOF
$ build_pkg test
foobar
$ export BUILD_PATH_PREFIX_MAP="/PKG_ROOT=test/target:$BUILD_PATH_PREFIX_MAP"
$ show_pkg_targets test
/bin
/cookie
/doc
/doc/test
/etc
/etc/test
/lib
/lib/stublibs
/lib/test
/lib/toplevel
/lib/xxx
/man
/sbin
/share
/share/test
$ show_pkg_cookie test
{ files =
map
{ LIB_ROOT :
[ In_build_dir "_private/default/.pkg/test/target/lib/xxx" ]
}
; variables = []
}