#!/bin/sh

set -e

DEB_TARGET_ARCH=$(dpkg-architecture -qDEB_TARGET_ARCH)

# show some facts about clang/clang++, so it is easier to debug issues
clang -E -x c - -v < /dev/null
clang++ -E -x c++ - -v < /dev/null

cd tests
if [ $DEB_TARGET_ARCH = 'i386' ]; then
  ./run_tests.py --verbose --exclude inefficient-qlist
else
  ./run_tests.py --verbose
fi
