Test for the `dune describe package-entries` command $ cat >dune-project < (lang dune 3.10) > (package > (name foo) > (synopsis "describe package-entries")) > (generate_opam_files) > EOF $ cat >dune < (library > (public_name foo) > (modules foo)) > > (executable > (name main) > (libraries foo) > (modules main)) > > (install > (section bin) > (package foo) > (files main.exe)) > EOF $ touch main.ml $ touch foo.ml $ touch foo.opam $ dune describe package-entries ((foo (((source Dune) (entry ((src (In_build_dir default/META.foo)) (kind file) (dst META) (section LIB) (optional false)))) ((source Dune) (entry ((src (In_build_dir default/foo.dune-package)) (kind file) (dst dune-package) (section LIB) (optional false)))) ((source (User ((pos_fname dune) (start ((pos_lnum 1) (pos_bol 0) (pos_cnum 0))) (stop ((pos_lnum 3) (pos_bol 28) (pos_cnum 43)))))) (entry ((src (In_build_dir default/foo.a)) (kind file) (dst foo.a) (section LIB) (optional false)))) ((source (User ((pos_fname dune) (start ((pos_lnum 1) (pos_bol 0) (pos_cnum 0))) (stop ((pos_lnum 3) (pos_bol 28) (pos_cnum 43)))))) (entry ((src (In_build_dir default/foo.cma)) (kind file) (dst foo.cma) (section LIB) (optional false)))) ((source (User ((pos_fname dune) (start ((pos_lnum 1) (pos_bol 0) (pos_cnum 0))) (stop ((pos_lnum 3) (pos_bol 28) (pos_cnum 43)))))) (entry ((src (In_build_dir default/.foo.objs/byte/foo.cmi)) (kind file) (dst foo.cmi) (section LIB) (optional false)))) ((source (User ((pos_fname dune) (start ((pos_lnum 1) (pos_bol 0) (pos_cnum 0))) (stop ((pos_lnum 3) (pos_bol 28) (pos_cnum 43)))))) (entry ((src (In_build_dir default/.foo.objs/byte/foo.cmt)) (kind file) (dst foo.cmt) (section LIB) (optional false)))) ((source (User ((pos_fname dune) (start ((pos_lnum 1) (pos_bol 0) (pos_cnum 0))) (stop ((pos_lnum 3) (pos_bol 28) (pos_cnum 43)))))) (entry ((src (In_build_dir default/.foo.objs/native/foo.cmx)) (kind file) (dst foo.cmx) (section LIB) (optional false)))) ((source (User ((pos_fname dune) (start ((pos_lnum 1) (pos_bol 0) (pos_cnum 0))) (stop ((pos_lnum 3) (pos_bol 28) (pos_cnum 43)))))) (entry ((src (In_build_dir default/foo.cmxa)) (kind file) (dst foo.cmxa) (section LIB) (optional false)))) ((source (User ((pos_fname dune) (start ((pos_lnum 1) (pos_bol 0) (pos_cnum 0))) (stop ((pos_lnum 3) (pos_bol 28) (pos_cnum 43)))))) (entry ((src (In_build_dir default/foo.ml)) (kind file) (dst foo.ml) (section LIB) (optional false)))) ((source Dune) (entry ((src (In_build_dir default/foo.opam)) (kind file) (dst opam) (section LIB) (optional false)))) ((source (User ((pos_fname dune) (start ((pos_lnum 1) (pos_bol 0) (pos_cnum 0))) (stop ((pos_lnum 3) (pos_bol 28) (pos_cnum 43)))))) (entry ((src (In_build_dir default/foo.cmxs)) (kind file) (dst foo.cmxs) (section LIBEXEC) (optional false)))) ((source (User ((pos_fname dune) (start ((pos_lnum 13) (pos_bol 144) (pos_cnum 152))) (stop ((pos_lnum 13) (pos_bol 144) (pos_cnum 160)))))) (entry ((src (In_build_dir default/main.exe)) (kind file) (dst main.exe) (section BIN) (optional false)))))))