Add test() to cscript.
authorCarl Hetherington <cth@carlh.net>
Mon, 4 May 2015 23:26:50 +0000 (00:26 +0100)
committerCarl Hetherington <cth@carlh.net>
Mon, 4 May 2015 23:26:50 +0000 (00:26 +0100)
cscript

diff --git a/cscript b/cscript
index 3bca50ec608925d07b48ef619a9c9af40133f6f2..6cbf4bc0a8e8a2f8efe8bb563332ca5c4ca1d350 100644 (file)
--- a/cscript
+++ b/cscript
@@ -22,3 +22,8 @@ def make_doxygen(target):
     os.makedirs('build/doc')
     target.command('doxygen')
     return os.path.abspath('build/doc/html')
+
+def test(target):
+    if target.platform != 'windows':
+        target.set('LC_ALL', 'C')
+        target.command('run/tests')