#!/bin/sh

set -xe

cd `dirname $0`/../../tests
DEB_TARGET_MULTIARCH=`dpkg-architecture -q DEB_TARGET_MULTIARCH`
# Command basically copied from tests/compile_console.sh while
# making sure that no unit or object files polute the source tree
castle-engine compile \
	--mode=debug \
	--output=${TMP_DIR} \
	--compiler-option=@castle-game-engine

# Ignore results for armel until FPC gets fixed.
./castle-tester --console --no-window-create
