#!/bin/sh
ARCH=`dpkg-architecture -q DEB_BUILD_ARCH`
if [ "$AUTOPKGTEST_TMP" != "" ]; then
	if test "$ARCH" = "i386"; then
		echo "Test skipped on i386"
		exit 77
	fi
fi
export NODE_ENV=development
mocha --timeout 30000 `ls test/*.js|grep -v -f debian/tests/test_excluded`
