Debian Codegraph @

otherlibs/dune-action-plugin/test/depends-on-directory-with-glob/run.t

raw
1 $ cat > dune-project << EOF
2 > (lang dune 2.0)
3 > (using action-plugin 0.1)
4 > EOF
5
6 $ cat > dune << EOF
7 > (rule
8 > (alias runtest)
9 > (action (dynamic-run ./foo.exe)))
10 > EOF
11
12 $ mkdir some_dir
13
14 $ cat > some_dir/dune << EOF
15 > (rule
16 > (target some_file)
17 > (action
18 > (progn
19 > (echo "Building some_file!\n")
20 > (with-stdout-to %{target} (echo "")))))
21 > \
22 > (rule
23 > (target another_file)
24 > (action
25 > (progn
26 > (echo "SHOULD NOT BE PRINTED!")
27 > (with-stdout-to %{target} (echo "")))))
28 > \
29 > (rule
30 > (target some_file_but_different)
31 > (action
32 > (progn
33 > (echo "Building some_file_but_different!\n")
34 > (with-stdout-to %{target} (echo "")))))
35 > EOF
36
37 $ cp ./bin/foo.exe ./
38
39 $ dune runtest
40 Building some_file!
41 Building some_file_but_different!
42 some_file
43 some_file_but_different