Browse Source

Ensure test pass before release.sh

 + Add check for tests before releasing.
Leo 9 years ago
parent
commit
c5bebc87cb
1 changed files with 12 additions and 0 deletions
  1. 12 0
      release.sh

+ 12 - 0
release.sh

@@ -2,6 +2,18 @@
 
 # Script to realise easily new version
 
+# Run test, long form
+./configure --enable-tests
+make test
+./test.native
+
+if [ $? -ne 0 ]; then
+  echo "Test failed!"
+  exit 2
+else
+  echo "All test passed!"
+fi
+
 # Set version
 ./version_set.sh $1