Skip to content

Commit

Permalink
Merge pull request #144 from samoht/opam2
Browse files Browse the repository at this point in the history
Use opam2
  • Loading branch information
samoht authored Nov 20, 2018
2 parents ae556f8 + cf4e8fa commit a69ad37
Show file tree
Hide file tree
Showing 7 changed files with 34 additions and 28 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -7,3 +7,4 @@ _build
*.install
.merlin
_tests/
_opam
1 change: 0 additions & 1 deletion alcotest-async.descr

This file was deleted.

12 changes: 7 additions & 5 deletions alcotest-async.opam
Original file line number Diff line number Diff line change
@@ -1,22 +1,24 @@
opam-version: "1.2"
maintainer: "[email protected]"
opam-version: "2.0"
maintainer: "[email protected]"
authors: "Thomas Gazagnaire"
homepage: "https://github.com/mirage/alcotest/"
dev-repo: "https://github.com/mirage/alcotest.git"
dev-repo: "git+https://github.com/mirage/alcotest.git"
bug-reports: "https://github.com/mirage/alcotest/issues/"
license: "ISC"
doc: "https://mirage.github.io/alcotest/"

build: [
["dune" "subst"] {pinned}
["dune" "build" "-p" name "-j" jobs]
["dune" "runtest" "-p" name "-j" jobs] {with-test}
]
build-test: ["dune" "runtest" "-p" name "-j" jobs]

depends: [
"dune" {build}
"ocaml" {>= "4.03.0"}
"alcotest"
"async_unix" {>= "v0.9.0"}
"core_kernel" {>= "v0.9.0"}
]
available: [ocaml-version >= "4.03.0"]

synopsis: "Async-based helpers for Alcotest"
1 change: 0 additions & 1 deletion alcotest-lwt.descr

This file was deleted.

12 changes: 7 additions & 5 deletions alcotest-lwt.opam
Original file line number Diff line number Diff line change
@@ -1,21 +1,23 @@
opam-version: "1.2"
maintainer: "[email protected]"
opam-version: "2.0"
maintainer: "[email protected]"
authors: "Thomas Gazagnaire"
homepage: "https://github.com/mirage/alcotest/"
dev-repo: "https://github.com/mirage/alcotest.git"
dev-repo: "git+https://github.com/mirage/alcotest.git"
bug-reports: "https://github.com/mirage/alcotest/issues/"
license: "ISC"
doc: "https://mirage.github.io/alcotest/"

build: [
["dune" "subst"] {pinned}
["dune" "build" "-p" name "-j" jobs]
["dune" "runtest" "-p" name "-j" jobs] {with-test}
]
build-test: ["dune" "runtest" "-p" name "-j" jobs]

depends: [
"dune" {build}
"ocaml" {>= "4.02.3"}
"alcotest"
"lwt" "logs"
]
available: [ocaml-version >= "4.02.3"]

synopsis: "Lwt-based helpers for Alcotest"
11 changes: 0 additions & 11 deletions alcotest.descr

This file was deleted.

24 changes: 19 additions & 5 deletions alcotest.opam
Original file line number Diff line number Diff line change
@@ -1,24 +1,38 @@
opam-version: "1.2"
maintainer: "[email protected]"
opam-version: "2.0"
maintainer: "[email protected]"
authors: "Thomas Gazagnaire"
homepage: "https://github.com/mirage/alcotest/"
dev-repo: "https://github.com/mirage/alcotest.git"
dev-repo: "git+https://github.com/mirage/alcotest.git"
bug-reports: "https://github.com/mirage/alcotest/issues/"
license: "ISC"
doc: "https://mirage.github.io/alcotest/"

build: [
["dune" "subst"] {pinned}
["dune" "build" "-p" name "-j" jobs]
["dune" "runtest" "-p" name "-j" jobs] {with-test}
]
build-test: ["dune" "runtest" "-p" name "-j" jobs]

depends: [
"dune" {build & >= "1.1.0"}
"ocaml" {>= "4.02.3"}
"fmt" {>= "0.8.0"}
"astring"
"result"
"cmdliner"
"uuidm"
]
available: [ocaml-version >= "4.02.3"]

synopsis: "Alcotest is a lightweight and colourful test framework"

description: """
Alcotest exposes simple interface to perform unit tests. It exposes
a simple TESTABLE module type, a check function to assert test
predicates and a run function to perform a list of unit -> unit
test callbacks.

Alcotest provides a quiet and colorful output where only faulty runs
are fully displayed at the end of the run (with the full logs ready to
inspect), with a simple (yet expressive) query language to select the
tests to run.
"""

0 comments on commit a69ad37

Please sign in to comment.