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,27 @@
Testing the when action in lockfiles
$ . ./helpers.sh
$ make_lockdir
Case with a mix of uncoditional and conditional actions in a progn action
$ cat >dune.lock/test.pkg <<'EOF'
> (version 0.0.1)
> (install
> (progn
> (when (= foo foo)
> (run echo a))
> (when (<> foo foo)
> (run echo b))
> (when (<> foo bar)
> (run echo c))
> (when (< 1 2)
> (run echo d))
> (when (< 2 1)
> (run echo e))))
> EOF
$ build_pkg test
a
c
d