Skip to content

Commit d5c784f

Browse files
committed
test: show full deps instead of grepping for predicate
Print the full deps output (minus the External compiler path) rather than grepping for 'predicate'. This makes the test more transparent about what deps are declared. Signed-off-by: Robin Bate Boerop <me@robinbb.com>
1 parent 526fba8 commit d5c784f

1 file changed

Lines changed: 20 additions & 5 deletions

File tree

test/blackbox-tests/test-cases/per-module-lib-deps/lib-deps-preserved.t

Lines changed: 20 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -33,10 +33,25 @@ dependencies' .cmi files.
3333

3434
$ dune build ./main.exe
3535

36-
Both modules declare glob deps on mylib's .cmi files:
37-
38-
$ dune rules --deps _build/default/.main.eobjs/native/dune__exe__Uses_lib.cmx 2>&1 | grep 'predicate'
36+
Both modules declare deps on mylib's .cmi files:
37+
38+
$ dune rules --deps _build/default/.main.eobjs/native/dune__exe__Uses_lib.cmx 2>&1 | grep -v External
39+
((File
40+
(File (In_build_dir _build/default/.main.eobjs/byte/dune__exe.cmi))
41+
(File (In_build_dir _build/default/.main.eobjs/byte/dune__exe__Uses_lib.cmi))
42+
(File (In_build_dir _build/default/uses_lib.ml))
43+
(glob
44+
((dir (In_build_dir _build/default/lib/.mylib.objs/byte))
3945
(predicate *.cmi)
40-
41-
$ dune rules --deps _build/default/.main.eobjs/native/dune__exe__Main.cmx 2>&1 | grep 'predicate'
46+
(only_generated_files false))))
47+
48+
$ dune rules --deps _build/default/.main.eobjs/native/dune__exe__Main.cmx 2>&1 | grep -v External
49+
((File
50+
(File (In_build_dir _build/default/.main.eobjs/byte/dune__exe.cmi))
51+
(File (In_build_dir _build/default/.main.eobjs/byte/dune__exe__Main.cmi))
52+
(File (In_build_dir _build/default/.main.eobjs/byte/dune__exe__Uses_lib.cmi))
53+
(File (In_build_dir _build/default/main.ml))
54+
(glob
55+
((dir (In_build_dir _build/default/lib/.mylib.objs/byte))
4256
(predicate *.cmi)
57+
(only_generated_files false))))

0 commit comments

Comments
 (0)