Resto/Jbuilder: fix test packaging

This commit is contained in:
Grégoire Henry 2017-12-06 21:20:25 +01:00 committed by Grégoire
parent f480d730e1
commit ab77eb250e
15 changed files with 31 additions and 26 deletions

View File

@ -0,0 +1,14 @@
(jbuild_version 1)
(executable
((name ezResto_test)
(modules (EzServices EzDirectory EzResto_test))
(libraries (ocplib-ezresto-directory lwt.unix))))
(alias
((name runtest_ezresto)
(action (run ${path:ezResto_test.exe}))))
(alias
((name runtest)
(deps ((alias runtest_ezresto)))))

View File

@ -19,6 +19,7 @@ build-test: [
depends: [ depends: [
"ocamlfind" {build} "ocamlfind" {build}
"jbuilder" {build} "jbuilder" {build}
"ocplib-resto" "ocplib-resto" {= "dev" }
"lwt" "ocplib-resto-json" {= "dev" & test }
"lwt" { >= "3.0.0" }
] ]

View File

@ -0,0 +1,14 @@
(jbuild_version 1)
(executable
((name resto_test)
(modules (Services Directory Resto_test))
(libraries (ocplib-resto-directory ocplib-resto-json lwt.unix))))
(alias
((name runtest_resto)
(action (run ${path:resto_test.exe}))))
(alias
((name runtest)
(deps ((alias runtest_resto)))))

View File

@ -1,24 +0,0 @@
(jbuild_version 1)
(executable
((name resto_test)
(modules (Services Directory Resto_test))
(libraries (ocplib-resto-directory ocplib-resto-json lwt.unix))))
(alias
((name runtest_resto)
(action (run ${path:resto_test.exe}))))
(executable
((name ezResto_test)
(modules (EzServices EzDirectory EzResto_test))
(libraries (ocplib-ezresto-directory lwt.unix))))
(alias
((name runtest_ezresto)
(action (run ${path:ezResto_test.exe}))))
(alias
((name runtest)
(deps ((alias runtest_resto)
(alias runtest_ezresto)))))