#!/bin/sh

set -e

DEB_HOST_ARCH_BITS=$(dpkg-architecture -qDEB_HOST_ARCH_BITS)

# 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
# wrong size reported, although the test correctly identifies the issue
# https://bugs.kde.org/show_bug.cgi?id=423728
if [ $DEB_HOST_ARCH_BITS = 32 ]; then
  ./run_tests.py --verbose --exclude inefficient-qlist
else
  ./run_tests.py --verbose
fi
