Commit 4581e61c authored by Ralf Treinen's avatar Ralf Treinen

fix as-installed test

parent 83844a6c
camlzip (1.07-2) unstable; urgency=medium
* fix as-installed test: put compilation commands in testscript,
instead of using upstreams Makefile (closes: #901169)
-- Ralf Treinen <treinen@debian.org> Sun, 10 Jun 2018 21:52:05 +0200
camlzip (1.07-1) unstable; urgency=medium
* New upstream release (closes: #900445)
......
Tests: upstream
Depends: libzip-ocaml-dev
Depends: ocaml-nox, libzip-ocaml-dev
......@@ -3,7 +3,14 @@
set -e
testdir=${AUTOPKGTEST_TMP}
cp test/* ${testdir}
testdir=${AUTOPKGTEST_TMP:-/tmp}
cp test/*.ml ${testdir}
cd ${testdir}
make
ocamlc -ccopt -g -g -I +zip -o minigzip zip.cma minigzip.ml
ocamlc -ccopt -g -g -I +zip -o minizip unix.cma zip.cma minizip.ml
ocamlc -g -I +zip -o testzlib zip.cma testzlib.ml
if [ -x /usr/bin/ocamlopt ]; then
ocamlopt -ccopt -g -g -I +zip -o minigzip zip.cmxa minigzip.ml
ocamlopt -ccopt -g -g -I +zip -o minizip unix.cmxa zip.cmxa minizip.ml
ocamlopt -g -I +zip -o testzlib zip.cmxa testzlib.ml
fi
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment