From 786797d4079d187f3b0da520aad6352ae4bff0ea Mon Sep 17 00:00:00 2001 From: Rudi Grinberg Date: Sun, 5 May 2019 16:26:13 +0800 Subject: [PATCH] Add test case to reproduce #2123 Signed-off-by: Rudi Grinberg --- test/blackbox-tests/dune.inc | 10 ++++++++++ test/blackbox-tests/test-cases/github2123/dune | 3 +++ test/blackbox-tests/test-cases/github2123/dune-project | 1 + test/blackbox-tests/test-cases/github2123/foo.opam | 0 .../blackbox-tests/test-cases/github2123/mirage-xen.pc | 0 test/blackbox-tests/test-cases/github2123/run.t | 3 +++ 6 files changed, 17 insertions(+) create mode 100644 test/blackbox-tests/test-cases/github2123/dune create mode 100644 test/blackbox-tests/test-cases/github2123/dune-project create mode 100644 test/blackbox-tests/test-cases/github2123/foo.opam create mode 100644 test/blackbox-tests/test-cases/github2123/mirage-xen.pc create mode 100644 test/blackbox-tests/test-cases/github2123/run.t diff --git a/test/blackbox-tests/dune.inc b/test/blackbox-tests/dune.inc index b9d81d204b2..09c43498d79 100644 --- a/test/blackbox-tests/dune.inc +++ b/test/blackbox-tests/dune.inc @@ -603,6 +603,14 @@ test-cases/github2033 (progn (run %{exe:cram.exe} -test run.t) (diff? run.t run.t.corrected))))) +(alias + (name github2123) + (deps (package dune) (source_tree test-cases/github2123)) + (action + (chdir + test-cases/github2123 + (progn (run %{exe:cram.exe} -test run.t) (diff? run.t run.t.corrected))))) + (alias (name github24) (deps (package dune) (source_tree test-cases/github24)) @@ -1470,6 +1478,7 @@ (alias github1946) (alias github20) (alias github2033) + (alias github2123) (alias github24) (alias github25) (alias github534) @@ -1636,6 +1645,7 @@ (alias github1946) (alias github20) (alias github2033) + (alias github2123) (alias github24) (alias github25) (alias github534) diff --git a/test/blackbox-tests/test-cases/github2123/dune b/test/blackbox-tests/test-cases/github2123/dune new file mode 100644 index 00000000000..1694d0535f1 --- /dev/null +++ b/test/blackbox-tests/test-cases/github2123/dune @@ -0,0 +1,3 @@ +(install + (section lib) + (files (mirage-xen.pc as ../pkgconfig/mirage-xen.pc))) diff --git a/test/blackbox-tests/test-cases/github2123/dune-project b/test/blackbox-tests/test-cases/github2123/dune-project new file mode 100644 index 00000000000..ec8c49b51b8 --- /dev/null +++ b/test/blackbox-tests/test-cases/github2123/dune-project @@ -0,0 +1 @@ +(lang dune 1.9) \ No newline at end of file diff --git a/test/blackbox-tests/test-cases/github2123/foo.opam b/test/blackbox-tests/test-cases/github2123/foo.opam new file mode 100644 index 00000000000..e69de29bb2d diff --git a/test/blackbox-tests/test-cases/github2123/mirage-xen.pc b/test/blackbox-tests/test-cases/github2123/mirage-xen.pc new file mode 100644 index 00000000000..e69de29bb2d diff --git a/test/blackbox-tests/test-cases/github2123/run.t b/test/blackbox-tests/test-cases/github2123/run.t new file mode 100644 index 00000000000..7fc8b4324b9 --- /dev/null +++ b/test/blackbox-tests/test-cases/github2123/run.t @@ -0,0 +1,3 @@ + $ dune build @install + Path outside the workspace: ../pkgconfig/mirage-xen.pc from . + [1]