-
Notifications
You must be signed in to change notification settings - Fork 413
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Signed-off-by: Etienne Millon <[email protected]>
- Loading branch information
Showing
7 changed files
with
43 additions
and
29 deletions.
There are no files selected for viewing
43 changes: 43 additions & 0 deletions
43
test/blackbox-tests/test-cases/mdx-stanza/shared-libraries.t
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,43 @@ | ||
mdx supports dependencies referencing shared libraries. | ||
|
||
See #10582. | ||
|
||
$ cat > dune-project << EOF | ||
> (lang dune 3.15) | ||
> (name dune_mdx_test) | ||
> (using mdx 0.4) | ||
> EOF | ||
|
||
$ cat > dune << EOF | ||
> (library | ||
> (name public_lib) | ||
> (foreign_archives test)) | ||
> | ||
> (rule | ||
> (deps test.c) | ||
> (targets libtest.a dlltest.so) | ||
> (action | ||
> (progn | ||
> (run gcc -c -fPIC test.c -o test.o) | ||
> (run gcc test.o -shared -o dlltest.so) | ||
> (run ar rcs libtest.a test.o)))) | ||
> | ||
> (mdx | ||
> (libraries public_lib)) | ||
> EOF | ||
|
||
$ cat > public_lib.mli << EOF | ||
> val foo : int -> int | ||
> EOF | ||
|
||
$ cat > public_lib.ml << EOF | ||
> let foo bar = bar + 1 | ||
> EOF | ||
|
||
$ cat > test.c << EOF | ||
> int add(int a, int b) { | ||
> return a + b; | ||
> } | ||
> EOF | ||
|
||
$ dune runtest |
16 changes: 0 additions & 16 deletions
16
test/blackbox-tests/test-cases/mdx-stanza/shared-libraries.t/dune
This file was deleted.
Oops, something went wrong.
5 changes: 0 additions & 5 deletions
5
test/blackbox-tests/test-cases/mdx-stanza/shared-libraries.t/dune-project
This file was deleted.
Oops, something went wrong.
1 change: 0 additions & 1 deletion
1
test/blackbox-tests/test-cases/mdx-stanza/shared-libraries.t/public_lib.ml
This file was deleted.
Oops, something went wrong.
1 change: 0 additions & 1 deletion
1
test/blackbox-tests/test-cases/mdx-stanza/shared-libraries.t/public_lib.mli
This file was deleted.
Oops, something went wrong.
3 changes: 0 additions & 3 deletions
3
test/blackbox-tests/test-cases/mdx-stanza/shared-libraries.t/run.t
This file was deleted.
Oops, something went wrong.
3 changes: 0 additions & 3 deletions
3
test/blackbox-tests/test-cases/mdx-stanza/shared-libraries.t/test.c
This file was deleted.
Oops, something went wrong.