Skip to content

Commit e6a6830

Browse files
authored
Merge pull request #314 from djs55/support-system-compiler
Update to OCaml 4.06.0
2 parents 668d07d + fe96a6e commit e6a6830

File tree

444 files changed

+1283
-1460
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

444 files changed

+1283
-1460
lines changed

appveyor.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ environment:
99
CYG_ARCH: "x86_64"
1010
CYGWIN: "winsymlinks:native"
1111
CUSTOM_OPAM: "1"
12-
OPAM_COMP: "4.03.0+mingw64c"
12+
OPAM_COMP: "4.06.0+mingw64c"
1313

1414
install:
1515
- cmd: git config core.symlinks true

circle.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ machine:
77
MACOSX_DEPLOYMENT_TARGET: "10.10"
88
CUSTOM_OPAM: "1"
99
OPAM_REPO: repo/darwin
10-
OPAM_COMP: "4.03.0"
10+
OPAM_COMP: "4.06.0"
1111
general:
1212
artifacts:
1313
- vpnkit.tgz

repo/Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ update-osx:
1010
./update-upstream.sh $(PKGS)
1111

1212
update-win:
13-
OPAM_OS="win32" OPAM_SWITCH="4.03.0+mingw64c" \
13+
OPAM_OS="win32" OPAM_SWITCH="4.06.0+mingw64c" \
1414
OPAM_REPO="https://github.com/fdopen/opam-repository-mingw.git" \
1515
./update-upstream.sh $(PKGS) depext-cygwinports
1616

repo/darwin/compilers/4.06.0.comp

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
opam-version: "1"
2+
version: "4.06.0"
3+
src: "https://github.com/ocaml/ocaml/archive/4.06.0.tar.gz"
4+
build: [
5+
["./configure"
6+
"-prefix" prefix "-with-debug-runtime"
7+
] { os != "openbsd" & os != "freebsd" & os != "darwin" }
8+
["./configure"
9+
"-prefix" prefix "-with-debug-runtime"
10+
"-cc" "cc"
11+
"-aspp" "cc -c"
12+
] { os = "openbsd" | os = "freebsd" | os = "darwin" }
13+
[make "world"]
14+
[make "world.opt"]
15+
[make "install"]
16+
]
17+
packages: [
18+
"base-unix"
19+
"base-bigarray"
20+
"base-threads"
21+
]
22+
env: [[CAML_LD_LIBRARY_PATH = "%{lib}%/stublibs"]]

repo/darwin/compilers/4.06.0.descr

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Official 4.06.0 release

repo/darwin/packages/upstream/alcotest.0.7.2/descr

Lines changed: 0 additions & 11 deletions
This file was deleted.

repo/darwin/packages/upstream/alcotest.0.7.2/url

Lines changed: 0 additions & 2 deletions
This file was deleted.
Lines changed: 61 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,61 @@
1+
Logo](https://raw.githubusercontent.com/mirage/alcotest/master/alcotest-logo.png)
2+
3+
Alcotest is a lightweight and colourful test framework.
4+
5+
Alcotest exposes simple interface to perform unit tests. It exposes
6+
a simple `TESTABLE` module type, a `check` function to assert test
7+
predicates and a `run` function to perform a list of `unit -> unit`
8+
test callbacks.
9+
10+
Alcotest provides a quiet and colorful output where only faulty runs
11+
are fully displayed at the end of the run (with the full logs ready to
12+
inspect), with a simple (yet expressive) query language to select the
13+
tests to run.
14+
15+
[![Build Status](https://travis-ci.org/mirage/alcotest.svg)](https://travis-ci.org/mirage/alcotest)
16+
[![docs](https://img.shields.io/badge/doc-online-blue.svg)](https://mirage.github.io/alcotest/alcotest/index.html)
17+
18+
### Examples
19+
20+
A simple example:
21+
22+
```ocaml
23+
(* Build with `ocamlbuild -pkg alcotest simple.byte` *)
24+
25+
(* A module with functions to test *)
26+
module To_test = struct
27+
let capit letter = Char.uppercase letter
28+
let plus int_list = List.fold_left (fun a b -> a + b) 0 int_list
29+
end
30+
31+
(* The tests *)
32+
let capit () =
33+
Alcotest.(check char) "same chars" 'A' (To_test.capit 'a')
34+
35+
let plus () =
36+
Alcotest.(check int) "same ints" 7 (To_test.plus [1;1;2;3])
37+
38+
let test_set = [
39+
"Capitalize" , `Quick, capit;
40+
"Add entries", `Slow , plus ;
41+
]
42+
43+
(* Run it *)
44+
let () =
45+
Alcotest.run "My first test" [
46+
"test_set", test_set;
47+
]
48+
```
49+
50+
The result is a self-contained binary which displays the test results. Use
51+
`./simple.byte --help` to see the runtime options.
52+
53+
```shell
54+
$ ./simple.native
55+
[OK] test_set 0 Capitalize.
56+
[OK] test_set 1 Add entries.
57+
Test Successful in 0.001s. 2 tests run.
58+
```
59+
60+
See the [examples](https://github.com/mirage/alcotest/tree/master/examples)
61+
folder for more examples.

repo/win32/packages/upstream/alcotest.0.7.2/opam renamed to repo/darwin/packages/upstream/alcotest.0.8.1/opam

Lines changed: 8 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -7,18 +7,17 @@ bug-reports: "https://github.com/mirage/alcotest/issues/"
77
license: "ISC"
88
doc: "https://mirage.github.io/alcotest/"
99

10-
build: ["ocaml" "pkg/pkg.ml" "build" "--pinned" "%{pinned}%"]
11-
build-test: [
12-
["ocaml" "pkg/pkg.ml" "build" "--pinned" "%{pinned}%" "--tests" "true"]
13-
["ocaml" "pkg/pkg.ml" "test" ]
10+
build: [
11+
["jbuilder" "subst" "-n" name] {pinned}
12+
["jbuilder" "build" "-p" name "-j" jobs]
1413
]
14+
build-test: [["jbuilder" "runtest" "-p" name "-j" jobs]]
15+
1516
depends: [
16-
"ocamlfind" {build}
17-
"ocamlbuild" {build}
18-
"topkg" {build}
19-
"fmt"
17+
"jbuilder" {build & >= "1.0+beta10"}
18+
"fmt" {>= "0.8.0"}
2019
"astring"
2120
"result"
2221
"cmdliner"
2322
]
24-
available: [ocaml-version >= "4.01.0"]
23+
available: [ocaml-version >= "4.02.3"]
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
archive: "https://github.com/mirage/alcotest/releases/download/0.8.1/alcotest-0.8.1.tbz"
2+
checksum: "8b8d9f8c9e8c0b34c12e20e24db8dec3"

0 commit comments

Comments
 (0)