#!/bin/sh
set -C -e -f -u

cp -a test "$ADTTMP"
cd "$ADTTMP/test"

# Test installed version of executable and check rules.
sed -i run.sh ref/tfw_check.txt \
    -e 's|\.\./rules/|/usr/share/adacontrol/rules/|' \
    -e 's|\.\./src/adactl|/usr/bin/adactl|'

# Currently, t_representation_clauses.txt fails on 64 bits architectures.
# Fixed in 1.16r12.
FAIL=t_representation_clauses
rm -f $FAIL.adb $FAIL-*.adb ref/$FAIL.txt conf/$FAIL.aru

/bin/bash run.sh -q
