mutated_ocaml / ocamlbuild / test / test6 / test.sh

#!/bin/sh
cd `dirname $0`
set -x
rm -rf _build
CMDOPTS="" # -- command args
BUILD="../../_build/ocamlbuild.native -no-skip main.byte -classic-display $@"
BUILD1="$BUILD $CMDOPTS"
BUILD2="$BUILD -verbose 0 -nothing-should-be-rebuilt $CMDOPTS"
cp b.mli.v1 b.mli
cp d.mli.v1 d.mli
$BUILD1
$BUILD2
cp b.mli.v2 b.mli
cp d.mli.v2 d.mli
$BUILD1
cp b.mli.v1 b.mli
if $BUILD1; then
  if $BUILD2; then
    echo PASS
  else
    echo "FAIL (-nothing-should-be-rebuilt)"
  fi
else
  echo FAIL
fi
Tip: Filter by directory path e.g. /media app.js to search for public/media/app.js.
Tip: Use camelCasing e.g. ProjME to search for ProjectModifiedEvent.java.
Tip: Filter by extension type e.g. /repo .js to search for all .js files in the /repo directory.
Tip: Separate your search with spaces e.g. /ssh pom.xml to search for src/ssh/pom.xml.
Tip: Use ↑ and ↓ arrow keys to navigate and return to view the file.
Tip: You can also navigate files with Ctrl+j (next) and Ctrl+k (previous) and view the file with Ctrl+o.
Tip: You can also navigate files with Alt+j (next) and Alt+k (previous) and view the file with Alt+o.