summaryrefslogtreecommitdiff
path: root/ocaml-binary-annot/ocamlbuild/test/test2/test.sh
blob: 8bbd7c7a7cfb4543c012f77ff305dff6678cbdbb (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
#!/bin/sh
cd `dirname $0`
set -e
set -x
CMDOPTS="-- -help"
BUILD="../../_build/ocamlbuild.native toto.byte toto.native -no-skip -classic-display $@"
BUILD1="$BUILD $CMDOPTS"
BUILD2="$BUILD -verbose 0 -nothing-should-be-rebuilt $CMDOPTS"
rm -rf _build
cp vivi1.ml vivi.ml
$BUILD1
$BUILD2
cp vivi2.ml vivi.ml
$BUILD1
$BUILD2
cp vivi3.ml vivi.ml
$BUILD1
$BUILD2