File: pathtest

package info (click to toggle)
ocaml-fpath 0.7.3-4
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 284 kB
  • sloc: ml: 2,005; sh: 19; makefile: 16
file content (23 lines) | stat: -rwxr-xr-x 493 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
#!/bin/sh -e

this=pathtest
indir=debian/tests
outdir=${ADT_ARTIFACTS:-/tmp}/${this}
mkdir -p ${outdir}

cp ${indir}/${this}.ml ${outdir}
cd ${outdir}
echo "* Compile to bytecode:"
ocamlbuild -use-ocamlfind -pkgs fpath ${this}.byte
echo -n "* Run bytecode ... "
./${this}.byte
echo "OK."

if [ -x /usr/bin/ocamlopt ]
then
    echo "* Compile to native code:"
    ocamlbuild -use-ocamlfind -pkgs fpath ${this}.native;
    echo -n "* Run native code ... "
    ./${this}.native
    echo "OK."
fi