From: Loup Vaillant Date: Tue, 10 Dec 2019 20:37:42 +0000 (+0100) Subject: Tweaked dist.sh X-Git-Url: https://git.codecow.com/?a=commitdiff_plain;h=8dc90c5573b70c48a3e97a1d77d4834f960983d5;p=Monocypher.git Tweaked dist.sh --- diff --git a/dist.sh b/dist.sh index c301625..5b3d6ef 100755 --- 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 diff --git a/tests/test.sh b/tests/test.sh index 86d8d35..a41a345 100755 --- a/tests/test.sh +++ b/tests/test.sh @@ -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"