Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

More tests

Untested as INRIA gforge is down ...
  • Loading branch information...
commit a779ca38f82257fe40659ca3d6d0bd7530222e0f 1 parent 757fe55
Thomas Gazagnaire samoht authored
15 tests/Makefile
View
@@ -8,7 +8,7 @@ OCPGET_SERVER = ../ocp-get-server --debug --root $(OPAM_SERVER_ROOT)
BACKTRACES = export OCAMLRUNPARAM=b &&
-PACKAGES = P1-1 P2-1 P3-1-weird.version P4-1
+PACKAGES = P1-1 P2-1 P2-1 P3-1-weird.version P4-1
ARCHIVES = $(PACKAGES:%=packages/%.tar.gz)
.PHONY: all upload
@@ -31,9 +31,20 @@ upload: $(ARCHIVES) init
info: upload
$(OCPGET) info
-install:
+install: upload
$(OCPGET) install P1
$(OCPGET) install P2
+ $(OCPGET) install P3
+ $(OCPGET) install P4
+
+upload-new: install
+ cd packages && \
+ cp P1.opam P1.opam.1 && cp P1.opam.2 P1.opam && \
+ $(BACKTRACES) ../$(OCPGET) upload P1 && \
+ cp P1.opam.1 P1.opam
+
+updgrade: upload-new
+ $(OCPGET) upgrade
packages/%.tar.gz: packages/%
cd packages && tar cz $* > $*.tar.gz
10 tests/packages/P1-1/p1.ml
View
@@ -1,13 +1,3 @@
let x () =
try Random.int 10
with _ -> 0
-
-
-
-
-
-
-
-
-
-
0  tests/packages/P4-1/P1.install → tests/packages/P1-2/P1.install
View
File renamed without changes
0  tests/packages/P3-1-weird.version/P1.install → tests/packages/P1-2/build.sh
View
File renamed without changes
5 tests/packages/P1.opam.2
View
@@ -0,0 +1,5 @@
+opam-version: 1.0
+
+package: P1
+version: 2
+description: A very useful package
0  tests/packages/P2-1/P1.install
View
No changes.
1  tests/packages/P2-1/P2.install
View
@@ -0,0 +1 @@
+lib: p2.cmo p2.cmx p2.cmi
1  tests/packages/P3-1-weird.version/P3.install
View
@@ -0,0 +1 @@
+lib: p3.cma p3.cmxa p3.cmi
1  tests/packages/P3-1-weird.version/build.sh
View
@@ -0,0 +1 @@
+ocamlbuild -I `$(OCPGET) info -dir P1` p3.cma p3.cmxa
3  tests/packages/P3-1-weird.version/p3.ml
View
@@ -0,0 +1,3 @@
+let z () =
+ try P1.x ()
+ with _ -> 0
1  tests/packages/P4-1/P4.install
View
@@ -0,0 +1 @@
+lib: p4.cma p4.cmxa p4.cmi
1  tests/packages/P4-1/build.sh
View
@@ -0,0 +1 @@
+ocamlbuild `$(OCPGET config -r -dir P2)` `$(OCPGET config -r -dir P3)` p4.cma p4.cmxa
23 tests/packages/P4-1/p4.ml
View
@@ -0,0 +1,23 @@
+let f =
+ try P2.x ()
+ with P3.x ()
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
Please sign in to comment.
Something went wrong with that request. Please try again.