]> git.codecow.com Git - Monocypher.git/commitdiff
Tweaked dist.sh
authorLoup Vaillant <loup@loup-vaillant.fr>
Tue, 10 Dec 2019 20:37:42 +0000 (21:37 +0100)
committerLoup Vaillant <loup@loup-vaillant.fr>
Tue, 10 Dec 2019 20:53:50 +0000 (21:53 +0100)
dist.sh
tests/test.sh

diff --git a/dist.sh b/dist.sh
index c30162529142030436072a6f015aa18e2fa794b4..5b3d6efbcffedae2fd3196bb7c50ac80ae94d6ff 100755 (executable)
--- a/dist.sh
+++ b/dist.sh
@@ -6,10 +6,8 @@ VERSION=`git describe --tags`
 FOLDER=monocypher-$VERSION
 TARBALL=$FOLDER.tar.gz
 
-# Run the tests before we do anything.  It's not enough (we ought to run
-# the tests from the tarball itself, including the TIS interpreter), but
-# it should prevent the most egregious errors.
-tests/test.sh
+# Generate the test vectors.
+(cd tests/gen/ make)
 
 # Generate documentation for users who don't have mandoc
 doc/man2html.sh
@@ -37,3 +35,17 @@ tar -cvzf $TARBALL $FOLDER
 
 # Remove the temporary folder
 rm -rf $FOLDER
+
+# Run tests in the tarball, to make sure we didn't screw up anything
+# important.  We're missing the TIS interpreter run, but that's a good
+# quick check.
+tar -xzf $TARBALL
+cd $FOLDER   # Extracting from the tarball, just to make sure
+tests/test.sh
+make clean
+make speed
+make speed-sodium
+make speed-tweetnacl
+make speed-hydrogen
+make speed-c25519
+make
index 86d8d35195adbf3e62a6dd4c6299837985ec015f..a41a345e733c05af0f7d72613a56b6a917027a1a 100755 (executable)
@@ -2,7 +2,7 @@
 
 set -e
 
-make clean;  make test
+make clean;  make test; make test-legacy
 make clean;  make test CFLAGS="-DBLAKE2_NO_UNROLLING -O3"
 make clean;  make test CC="clang -std=c99" CFLAGS="-g -fsanitize=address"
 make clean;  make test CC="clang -std=c99" CFLAGS="-g -fsanitize=memory"