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,34 @@
Tests for expansions of the `String_with_vars.t` type
$ cat > dune-project <<EOF
> (lang dune 3.13)
> (package
> (name foo)
> (allow_empty))
> EOF
Expanding a pform with multiple values:
$ cat > dune <<EOF
> (rule
> (targets foo.txt bar.txt)
> (action
> (progn
> (run touch bar.txt)
> (with-stdout-to foo.txt
> (progn
> (run echo %{targets})
> (run echo "%{targets}")
> (run echo before%{targets}after)
> (run echo "before%{targets}after")
> (run echo %{targets}%{targets})
> (run echo "%{targets}%{targets}"))))))
> EOF
$ dune build foo.txt
$ cat _build/default/foo.txt
foo.txt bar.txt
foo.txt bar.txt
beforefoo.txtbar.txtafter
beforefoo.txt bar.txtafter
foo.txtbar.txtfoo.txtbar.txt
foo.txt bar.txtfoo.txt bar.txt