#!/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
