#! /usr/bin/env bash

set -e

./library-test "$@" -debug true
./library-test "$@" -debug true -codegen bytecode
./library-test "$@" -debug true -codegen c

./library-test "$@"
./library-test "$@" -codegen bytecode
./library-test "$@" -codegen c

# Time profiling messes around with labels. Make sure this works.
./library-test "$@" -profile time
./library-test "$@" -profile time -codegen bytecode
./library-test "$@" -profile time -codegen c

echo '********** ALL PASS **********'
