Skip to content

Commit

Permalink
Transition from oUnit to ounit using a META file.
Browse files Browse the repository at this point in the history
  • Loading branch information
gildor478 committed Sep 23, 2019
1 parent 88fc6d0 commit 0cbebe7
Show file tree
Hide file tree
Showing 3 changed files with 29 additions and 3 deletions.
16 changes: 13 additions & 3 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,8 @@
# See LICENSE.txt for details. #
############################################################################

version = dev

default: test

build:
Expand All @@ -45,16 +47,24 @@ all:
dune build @all
dune runtest

install:
dune install
install: install-ounit install-ounit-lwt

install-ounit:
ocamlfind install oUnit src/lib/oUnit/META -patch-version $(version)
dune install ounit

install-ounit-lwt:
dune install ounit-lwt

uninstall:
ocamlfind remove oUnit
dune uninstall

clean:
dune clean

.PHONY: build doc test all install uninstall clean
.PHONY: build doc test all uninstall clean
.PHONY: install install-ounit install-ounit-lwt

PRECOMMIT_ARGS= \
--exclude log-html \
Expand Down
3 changes: 3 additions & 0 deletions ounit.opam
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,9 @@ build: [
["dune" "runtest" "-p" name "-j" jobs] {with-test}
["dune" "build" "@doc" "-p" name "-j" jobs] {with-doc}
]
install: [
[ make "install-ounit" "version=%{version}%" ]
]
synopsis: "OUnit testing framework"
description: """
OUnit is a unit test framework for OCaml. It allows one to easily create
Expand Down
13 changes: 13 additions & 0 deletions src/lib/oUnit/META
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
description = "Transition package to ounit"
requires = "ounit"

package "threads" (
description = "Transition package to ounit.threads"
requires = "ounit.threads"
)

package "advanced" (
description = "Transition package to ounit.advanced"
requires = "ounit.advanced"
)

0 comments on commit 0cbebe7

Please sign in to comment.