aboutsummaryrefslogtreecommitdiff
path: root/test-suite/coq-makefile/camldep/run.sh
blob: 465677a4bf9cedf944ab3204ea2d60ebfb236b5e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
#!/usr/bin/env bash

set -e
export PATH=$COQBIN:$PATH
export LC_ALL=C

rm -rf _test
mkdir _test
cp _CoqProject _test/
cd _test
mkdir src

echo '{ let foo = () }' > src/file1.mlg
echo 'let bar = File1.foo' > src/file2.ml
coq_makefile -f _CoqProject -o Makefile
if which ocamlopt >/dev/null 2>&1; then
    make src/file2.cmx
    [ -f src/file2.cmx ]
fi
make src/file2.cmo
[ -f src/file2.cmo ]