summaryrefslogtreecommitdiff
path: root/check
diff options
context:
space:
mode:
authorLars Wirzenius <liw@liw.fi>2011-08-29 16:23:47 +0100
committerLars Wirzenius <liw@liw.fi>2011-08-29 16:23:47 +0100
commit617b56c0ec3d7f20a6e28be5ead4f5796e18faaf (patch)
treefc6338a1bf70df7b4502762a5e757bf08f985ed6 /check
parenta4bb735c6e56ff0e1f2e6006d8e5377bb495f09d (diff)
downloadobnam-617b56c0ec3d7f20a6e28be5ead4f5796e18faaf.tar.gz
Add helper script for running automated tests.
Diffstat (limited to 'check')
-rwxr-xr-xcheck24
1 files changed, 24 insertions, 0 deletions
diff --git a/check b/check
new file mode 100755
index 00000000..ffe64dda
--- /dev/null
+++ b/check
@@ -0,0 +1,24 @@
+#!/bin/sh
+# Copyright 2011 Lars Wirzenius
+#
+# This program is free software: you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation, either version 3 of the License, or
+# (at your option) any later version.
+#
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+#
+# You should have received a copy of the GNU General Public License
+# along with this program. If not, see <http://www.gnu.org/licenses/>.
+
+
+set -e
+
+
+python setup.py clean
+python setup.py build_ext -i
+rm -rf build
+python setup.py check "$@"