File: test-native

package info (click to toggle)
ocaml-ptmap 2.0.5-5
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 168 kB
  • sloc: ml: 433; sh: 17; makefile: 11
file content (18 lines) | stat: -rwxr-xr-x 250 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
#!/bin/bash

set -e

cd "$(dirname "$0")/../.."

if [ -x '/usr/bin/ocamlopt' ]
then
    ocamlfind ocamlopt -o test -linkpkg -package ptmap test.ml

    echo build ok

    ./test

    echo run ok
else
    echo skip test since no ocamlopt was found
fi