-
Notifications
You must be signed in to change notification settings - Fork 17
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #24 from actionshrimp/fix-for-dune-3
Resolve path as relative path in sandbox rather than using absolute path
- Loading branch information
Showing
10 changed files
with
42 additions
and
24 deletions.
There are no files selected for viewing
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 |
---|---|---|
@@ -1,2 +1,3 @@ | ||
(lang dune 1.6) | ||
(lang dune 1.11) | ||
(name ppx_blob) | ||
(explicit_js_mode) |
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
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
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
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 |
---|---|---|
@@ -1,11 +1,5 @@ | ||
(executable | ||
(name test) | ||
(tests | ||
(libraries alcotest) | ||
(preprocessor_deps (file test_file) (file subdir/test_file)) | ||
(preprocess (pps ppx_blob)) | ||
(preprocessor_deps (file test_file)) | ||
(libraries alcotest)) | ||
|
||
(alias | ||
(name runtest) | ||
(deps (:test test.exe)) | ||
(action (run %{test}))) | ||
|
||
(names test)) |
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,5 @@ | ||
(tests | ||
(libraries alcotest) | ||
(preprocessor_deps (file test_file) (file ../test_file)) | ||
(preprocess (pps ppx_blob)) | ||
(names test)) |
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,14 @@ | ||
let suite = [ | ||
("path relative to source file", `Quick, fun () -> | ||
Alcotest.(check string) "file contents" "test/subdir/test_file\n" [%blob "test_file"] | ||
); | ||
|
||
("path relative to source file (parent dir)", `Quick, fun () -> | ||
Alcotest.(check string) "file contents" "test/test_file\n" [%blob "../test_file"] | ||
); | ||
] | ||
|
||
let () = | ||
Alcotest.run "ppx_blob" [ | ||
"basic", suite | ||
] |
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 @@ | ||
test/subdir/test_file |
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
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 |
---|---|---|
@@ -1 +1 @@ | ||
foo | ||
test/test_file |