Skip to content

Commit

Permalink
Create irmin-test
Browse files Browse the repository at this point in the history
  • Loading branch information
zshipko committed May 25, 2018
1 parent 99eb8da commit 5466945
Show file tree
Hide file tree
Showing 24 changed files with 28 additions and 18 deletions.
2 changes: 1 addition & 1 deletion irmin-chunk.opam
Expand Up @@ -17,6 +17,6 @@ depends: [
"irmin" {>= "1.3.0"}
"lwt"
"irmin-mem" {test & >= "1.3.0"}
"alcotest" {test & >="0.4.1"}
"irmin-test" {test}
]
available: [ocaml-version >= "4.01.0"]
3 changes: 1 addition & 2 deletions irmin-fs.opam
Expand Up @@ -16,7 +16,6 @@ build-test: ["jbuilder" "runtest" "-p" name]
depends: [
"jbuilder" {build & >= "1.0+beta10"}
"irmin" {>= "1.3.0"}
"alcotest" {test}
"mtime" {test & >= "1.0.0"}
"irmin-test" {test}
]
available: [ocaml-version >= "4.03.0"]
2 changes: 1 addition & 1 deletion irmin-git.opam
Expand Up @@ -17,7 +17,7 @@ depends: [
"jbuilder" {build & >= "1.0+beta10"}
"irmin" {>= "1.3.0"}
"git" {>= "1.11.0"}
"alcotest" {test}
"irmin-test" {test}
"git-unix" {test & >= "1.11.4"}
"mtime" {test & >= "1.0.0"}
]
Expand Down
3 changes: 1 addition & 2 deletions irmin-http.opam
Expand Up @@ -21,7 +21,6 @@ depends: [
"cohttp-lwt" {>= "1.0.0"}
"irmin-git" {test & >= "1.3.0"}
"irmin-mem" {test & >= "1.3.0"}
"alcotest" {test}
"mtime" {test & >= "1.0.0"}
"irmin-test" {test}
]
available: [ocaml-version >= "4.01.0"]
3 changes: 1 addition & 2 deletions irmin-mem.opam
Expand Up @@ -16,7 +16,6 @@ build-test: ["jbuilder" "runtest" "-p" name]
depends: [
"jbuilder" {build & >= "1.0+beta10"}
"irmin" {>= "1.3.0"}
"alcotest" {test}
"mtime" {test & >= "1.0.0"}
"irmin-test" {test}
]
available: [ocaml-version >= "4.03.0"]
3 changes: 3 additions & 0 deletions irmin-test.descr
@@ -0,0 +1,3 @@
Irmin test suite

`irmin-test` provides access to the Irmin test suite for testing storage backend implementations
3 changes: 1 addition & 2 deletions irmin-unix.opam
Expand Up @@ -23,7 +23,6 @@ depends: [
"git-unix" {>= "1.11.4"}
"irmin-watcher" {>= "0.2.0"}
"yaml" {>= "0.1.0"}
"alcotest" {test}
"mtime" {test & >= "1.0.0"}
"irmin-test" {test}
]
available: [ocaml-version >= "4.01.0"]
3 changes: 3 additions & 0 deletions src/irmin-test/irmin_test.ml
@@ -0,0 +1,3 @@
module Test_common = Test_common
module Test_link = Test_link
module Test_store = Test_store
4 changes: 2 additions & 2 deletions test/common/jbuild → src/irmin-test/jbuild
@@ -1,6 +1,6 @@
(jbuild_version 1)

(library
((name test)
(wrapped false)
((name irmin_test)
(public_name irmin-test)
(libraries (irmin mtime mtime.clock.os alcotest lwt.unix logs.fmt))))
File renamed without changes.
File renamed without changes.
File renamed without changes.
2 changes: 1 addition & 1 deletion test/irmin-chunk/jbuild
Expand Up @@ -3,7 +3,7 @@
(library
((name test_chunk)
(modules (test_chunk))
(libraries (test irmin-chunk irmin-mem))))
(libraries (irmin-test irmin-chunk irmin-mem))))

(executable
((name test)
Expand Down
1 change: 1 addition & 0 deletions test/irmin-chunk/test.ml
Expand Up @@ -15,6 +15,7 @@
* OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
*)

open Irmin_test
open Lwt.Infix

let () =
Expand Down
1 change: 1 addition & 0 deletions test/irmin-chunk/test_chunk.ml
Expand Up @@ -16,6 +16,7 @@
*)

open Lwt.Infix
open Irmin_test
open Test_common

module Hash = Irmin.Hash.SHA1
Expand Down
2 changes: 1 addition & 1 deletion test/irmin-fs/jbuild
Expand Up @@ -3,7 +3,7 @@
(library
((name test_fs)
(modules (test_fs))
(libraries (test irmin-fs))))
(libraries (irmin-fs irmin-test))))

(executable
((name test)
Expand Down
2 changes: 2 additions & 0 deletions test/irmin-fs/test.ml
Expand Up @@ -14,6 +14,8 @@
* OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
*)

open Irmin_test

let misc = [
"link", [
Test_link.test "mem" Test_fs.link;
Expand Down
1 change: 1 addition & 0 deletions test/irmin-fs/test_fs.ml
Expand Up @@ -14,6 +14,7 @@
* OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
*)

open Irmin_test
open Test_common
open Lwt.Infix

Expand Down
2 changes: 1 addition & 1 deletion test/irmin-git/jbuild
Expand Up @@ -3,7 +3,7 @@
(library
((name test_git)
(modules (test_git))
(libraries (test irmin-git git-unix))))
(libraries (irmin-test irmin-git git-unix))))

(executable
((name test)
Expand Down
2 changes: 1 addition & 1 deletion test/irmin-http/jbuild
Expand Up @@ -3,7 +3,7 @@
(library
((name test_http)
(modules (test_http))
(libraries (test test_mem test_git irmin-http))))
(libraries (irmin-test test_mem test_git irmin-http))))

(executable
((name test)
Expand Down
2 changes: 1 addition & 1 deletion test/irmin-mem/jbuild
Expand Up @@ -3,7 +3,7 @@
(library
((name test_mem)
(modules (test_mem))
(libraries (test irmin-mem))))
(libraries (irmin-test irmin-mem))))

(executable
((name test)
Expand Down
2 changes: 2 additions & 0 deletions test/irmin-mem/test.ml
Expand Up @@ -14,6 +14,8 @@
* OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
*)

open Irmin_test

let misc = [
"link", [
Test_link.test "mem" Test_mem.link;
Expand Down
1 change: 1 addition & 0 deletions test/irmin-mem/test_mem.ml
Expand Up @@ -15,6 +15,7 @@
*)

open Lwt.Infix
open Irmin_test
open Test_common

let store = store (module Irmin_mem.Make) (module Irmin.Metadata.None)
Expand Down
2 changes: 1 addition & 1 deletion test/irmin-unix/jbuild
Expand Up @@ -3,7 +3,7 @@
(library
((name test_unix)
(modules (test_unix))
(libraries (test test_fs test_git test_http irmin-unix))))
(libraries (irmin-test test_fs test_git test_http irmin-unix))))

(executable
((name test)
Expand Down

0 comments on commit 5466945

Please sign in to comment.