Skip to content

Commit

Permalink
Reproduce #3766 in 4.12
Browse files Browse the repository at this point in the history
The tests are failing as expected

Signed-off-by: Rudi Grinberg <[email protected]>
  • Loading branch information
rgrinberg committed Dec 14, 2020
1 parent 8b3b950 commit acc7c97
Showing 1 changed file with 114 additions and 42 deletions.
156 changes: 114 additions & 42 deletions test/blackbox-tests/test-cases/github3766.t/run.t
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,6 @@ Our test checks each of the above with an internal and external library.
-> creating foo.mli
% dune build --root . @install
% ls _build/install/default/lib/foo/*.a
_build/install/default/lib/foo/foo.a
_build/install/default/lib/foo/libfoo_stubs.a
# create a dummy executable to test
Expand All @@ -29,12 +28,21 @@ Our test checks each of the above with an internal and external library.
# make sure that this library is usable locally
% dune exec ./exe/b.exe
exe working
File "exe/dune", line 3, characters 7-8:
3 | (name b)
^
Error: No rule found for lib/foo.a
[1]
# make sure that this library is usable externally
% rm -rf lib
% OCAMLPATH=_build/install/default/lib dune exec --build-dir=_b2 ./exe/b.exe
exe working
File "exe/dune", line 3, characters 7-8:
3 | (name b)
^
Error: File unavailable:
$TESTCASE_ROOT/mli_only_wrapped_stubs/_build/install/default/lib/foo/foo.a
[1]
# mli_only_wrapped_no_stubs
Expand All @@ -44,20 +52,30 @@ Our test checks each of the above with an internal and external library.
-> creating foo.mli
% dune build --root . @install
% ls _build/install/default/lib/foo/*.a
_build/install/default/lib/foo/foo.a
ls: _build/install/default/lib/foo/*.a: No such file or directory
[1]
# create a dummy executable to test
-> creating dune
-> creating b.ml
# make sure that this library is usable locally
% dune exec ./exe/b.exe
exe working
File "exe/dune", line 3, characters 7-8:
3 | (name b)
^
Error: No rule found for lib/foo.a
[1]
# make sure that this library is usable externally
% rm -rf lib
% OCAMLPATH=_build/install/default/lib dune exec --build-dir=_b2 ./exe/b.exe
exe working
File "exe/dune", line 3, characters 7-8:
3 | (name b)
^
Error: File unavailable:
$TESTCASE_ROOT/mli_only_wrapped_no_stubs/_build/install/default/lib/foo/foo.a
[1]
# mli_only_unwrapped_stubs
Expand All @@ -68,7 +86,6 @@ Our test checks each of the above with an internal and external library.
-> creating foo.mli
% dune build --root . @install
% ls _build/install/default/lib/foo/*.a
_build/install/default/lib/foo/foo.a
_build/install/default/lib/foo/libfoo_stubs.a
# create a dummy executable to test
Expand All @@ -77,12 +94,21 @@ Our test checks each of the above with an internal and external library.
# make sure that this library is usable locally
% dune exec ./exe/b.exe
exe working
File "exe/dune", line 3, characters 7-8:
3 | (name b)
^
Error: No rule found for lib/foo.a
[1]
# make sure that this library is usable externally
% rm -rf lib
% OCAMLPATH=_build/install/default/lib dune exec --build-dir=_b2 ./exe/b.exe
exe working
File "exe/dune", line 3, characters 7-8:
3 | (name b)
^
Error: File unavailable:
$TESTCASE_ROOT/mli_only_unwrapped_stubs/_build/install/default/lib/foo/foo.a
[1]
# mli_only_unwrapped_no_stubs
Expand All @@ -92,20 +118,30 @@ Our test checks each of the above with an internal and external library.
-> creating foo.mli
% dune build --root . @install
% ls _build/install/default/lib/foo/*.a
_build/install/default/lib/foo/foo.a
ls: _build/install/default/lib/foo/*.a: No such file or directory
[1]
# create a dummy executable to test
-> creating dune
-> creating b.ml
# make sure that this library is usable locally
% dune exec ./exe/b.exe
exe working
File "exe/dune", line 3, characters 7-8:
3 | (name b)
^
Error: No rule found for lib/foo.a
[1]
# make sure that this library is usable externally
% rm -rf lib
% OCAMLPATH=_build/install/default/lib dune exec --build-dir=_b2 ./exe/b.exe
exe working
File "exe/dune", line 3, characters 7-8:
3 | (name b)
^
Error: File unavailable:
$TESTCASE_ROOT/mli_only_unwrapped_no_stubs/_build/install/default/lib/foo/foo.a
[1]
# no_mli_wrapped_stubs
Expand All @@ -115,7 +151,6 @@ Our test checks each of the above with an internal and external library.
-> creating stub.c
% dune build --root . @install
% ls _build/install/default/lib/foo/*.a
_build/install/default/lib/foo/foo.a
_build/install/default/lib/foo/libfoo_stubs.a
# create a dummy executable to test
Expand All @@ -124,12 +159,21 @@ Our test checks each of the above with an internal and external library.
# make sure that this library is usable locally
% dune exec ./exe/b.exe
exe working
File "exe/dune", line 3, characters 7-8:
3 | (name b)
^
Error: No rule found for lib/foo.a
[1]
# make sure that this library is usable externally
% rm -rf lib
% OCAMLPATH=_build/install/default/lib dune exec --build-dir=_b2 ./exe/b.exe
exe working
File "exe/dune", line 3, characters 7-8:
3 | (name b)
^
Error: File unavailable:
$TESTCASE_ROOT/no_mli_wrapped_stubs/_build/install/default/lib/foo/foo.a
[1]
# no_mli_wrapped_no_stubs
Expand All @@ -138,20 +182,30 @@ Our test checks each of the above with an internal and external library.
-> creating dune
% dune build --root . @install
% ls _build/install/default/lib/foo/*.a
_build/install/default/lib/foo/foo.a
ls: _build/install/default/lib/foo/*.a: No such file or directory
[1]
# create a dummy executable to test
-> creating dune
-> creating b.ml
# make sure that this library is usable locally
% dune exec ./exe/b.exe
exe working
File "exe/dune", line 3, characters 7-8:
3 | (name b)
^
Error: No rule found for lib/foo.a
[1]
# make sure that this library is usable externally
% rm -rf lib
% OCAMLPATH=_build/install/default/lib dune exec --build-dir=_b2 ./exe/b.exe
exe working
File "exe/dune", line 3, characters 7-8:
3 | (name b)
^
Error: File unavailable:
$TESTCASE_ROOT/no_mli_wrapped_no_stubs/_build/install/default/lib/foo/foo.a
[1]
# no_mli_unwrapped_stubs
Expand All @@ -161,7 +215,6 @@ Our test checks each of the above with an internal and external library.
-> creating stub.c
% dune build --root . @install
% ls _build/install/default/lib/foo/*.a
_build/install/default/lib/foo/foo.a
_build/install/default/lib/foo/libfoo_stubs.a
# create a dummy executable to test
Expand All @@ -170,12 +223,21 @@ Our test checks each of the above with an internal and external library.
# make sure that this library is usable locally
% dune exec ./exe/b.exe
exe working
File "exe/dune", line 3, characters 7-8:
3 | (name b)
^
Error: No rule found for lib/foo.a
[1]
# make sure that this library is usable externally
% rm -rf lib
% OCAMLPATH=_build/install/default/lib dune exec --build-dir=_b2 ./exe/b.exe
exe working
File "exe/dune", line 3, characters 7-8:
3 | (name b)
^
Error: File unavailable:
$TESTCASE_ROOT/no_mli_unwrapped_stubs/_build/install/default/lib/foo/foo.a
[1]
# no_mli_unwrapped_no_stubs
Expand All @@ -184,35 +246,45 @@ Our test checks each of the above with an internal and external library.
-> creating dune
% dune build --root . @install
% ls _build/install/default/lib/foo/*.a
_build/install/default/lib/foo/foo.a
ls: _build/install/default/lib/foo/*.a: No such file or directory
[1]
# create a dummy executable to test
-> creating dune
-> creating b.ml
# make sure that this library is usable locally
% dune exec ./exe/b.exe
exe working
File "exe/dune", line 3, characters 7-8:
3 | (name b)
^
Error: No rule found for lib/foo.a
[1]
# make sure that this library is usable externally
% rm -rf lib
% OCAMLPATH=_build/install/default/lib dune exec --build-dir=_b2 ./exe/b.exe
exe working
mli_only_wrapped_stubs - external - pass
mli_only_wrapped_stubs - internal - pass
mli_only_wrapped_no_stubs - external - pass
mli_only_wrapped_no_stubs - internal - pass
mli_only_unwrapped_stubs - external - pass
mli_only_unwrapped_stubs - internal - pass
mli_only_unwrapped_no_stubs - external - pass
mli_only_unwrapped_no_stubs - internal - pass
no_mli_wrapped_stubs - external - pass
no_mli_wrapped_stubs - internal - pass
no_mli_wrapped_no_stubs - external - pass
no_mli_wrapped_no_stubs - internal - pass
no_mli_unwrapped_stubs - external - pass
no_mli_unwrapped_stubs - internal - pass
no_mli_unwrapped_no_stubs - external - pass
no_mli_unwrapped_no_stubs - internal - pass
File "exe/dune", line 3, characters 7-8:
3 | (name b)
^
Error: File unavailable:
$TESTCASE_ROOT/no_mli_unwrapped_no_stubs/_build/install/default/lib/foo/foo.a
[1]
mli_only_wrapped_stubs - external - fail
mli_only_wrapped_stubs - internal - fail
mli_only_wrapped_no_stubs - external - fail
mli_only_wrapped_no_stubs - internal - fail
mli_only_unwrapped_stubs - external - fail
mli_only_unwrapped_stubs - internal - fail
mli_only_unwrapped_no_stubs - external - fail
mli_only_unwrapped_no_stubs - internal - fail
no_mli_wrapped_stubs - external - fail
no_mli_wrapped_stubs - internal - fail
no_mli_wrapped_no_stubs - external - fail
no_mli_wrapped_no_stubs - internal - fail
no_mli_unwrapped_stubs - external - fail
no_mli_unwrapped_stubs - internal - fail
no_mli_unwrapped_no_stubs - external - fail
no_mli_unwrapped_no_stubs - internal - fail

0 comments on commit acc7c97

Please sign in to comment.