Add a regression test for #20
This commit is contained in:
parent
d8fd2f084c
commit
bf4a4ba5f9
|
@ -312,8 +312,8 @@ let extract_build_context t =
|
||||||
match String.index_from t i '/' with
|
match String.index_from t i '/' with
|
||||||
| exception _ ->
|
| exception _ ->
|
||||||
Some
|
Some
|
||||||
(String.sub t ~pos:i ~len:(String.length t - i),
|
(String.sub t ~pos:i ~len:(String.length t - i),
|
||||||
"")
|
"")
|
||||||
| j ->
|
| j ->
|
||||||
Some
|
Some
|
||||||
(String.sub t ~pos:i ~len:(j - i),
|
(String.sub t ~pos:i ~len:(j - i),
|
||||||
|
|
|
@ -1,3 +1,5 @@
|
||||||
|
(jbuild_version 1)
|
||||||
|
|
||||||
(executables
|
(executables
|
||||||
((names (run))
|
((names (run))
|
||||||
(libraries (unix))))
|
(libraries (unix))))
|
||||||
|
@ -8,3 +10,10 @@
|
||||||
(action
|
(action
|
||||||
(chdir workspaces/redirections
|
(chdir workspaces/redirections
|
||||||
(run ${exe:run.exe} ${bin:jbuilder} runtest --root .)))))
|
(run ${exe:run.exe} ${bin:jbuilder} runtest --root .)))))
|
||||||
|
|
||||||
|
(alias
|
||||||
|
((name runtest)
|
||||||
|
(deps ((files_recursively_in workspaces/github20)))
|
||||||
|
(action
|
||||||
|
(chdir workspaces/github20
|
||||||
|
(run ${exe:run.exe} ${bin:jbuilder} build .merlin --root .)))))
|
||||||
|
|
|
@ -0,0 +1,4 @@
|
||||||
|
(jbuild_version 1)
|
||||||
|
|
||||||
|
(library
|
||||||
|
((name foo)))
|
Loading…
Reference in New Issue