#!/bin/sh

set -eu

TESTS_DIR=$(mktemp -d)
cp debian/tests/*.bats "$TESTS_DIR"

cd "$TESTS_DIR"
bats "tests.bats"
if bats "tests-negative.bats" ; then
	exit 1 # Negative tests should fail
fi
