#!/bin/sh

set -e

# Copied into debian/tests from upstream git - debian bug #785607 (sync when this is fixed)
cp debian/tests/*.yaml ./lava_scheduler_app/tests/

# scenario files are not packaged & need django support, test the local tree only.
./lava_server/manage.py test dashboard_app
./lava_server/manage.py test lava_scheduler_app
./lava_server/manage.py test lava_scheduler_daemon
./lava_server/manage.py test linaro_django_xmlrpc.tests

rm ./lava_scheduler_app/tests/*.yaml
