File: test-num

package info (click to toggle)
ocaml-num 1.4-1
  • links: PTS, VCS
  • area: main
  • in suites: bullseye
  • size: 544 kB
  • sloc: ml: 4,481; ansic: 1,415; makefile: 173; sh: 13
file content (18 lines) | stat: -rwxr-xr-x 377 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
#!/bin/sh

set -e

outdir=${ADT_ARTIFACTS-/tmp/ocaml-num}
indir="debian/tests"
input="test_num.ml"
mkdir -p ${outdir}
cp ${indir}/${input} ${outdir}
cd ${outdir}

ocamlfind ocamlc -package num -linkpkg -o test_num.byte test_num.ml
./test_num.byte

if [ -x /usr/bin/ocamlopt ]; then
    ocamlfind ocamlopt -package num -linkpkg -o test_num.opt test_num.ml
    ./test_num.opt
fi