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
# 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
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"