Name core tests consistently

Now, given a concept xyz,
* the main test file is called test_xyz.cc
* the executable is called test_xyz, and
* the ctest test is called text_xyz.
This commit is contained in:
Johan Wikman
2017-11-10 14:25:02 +02:00
committed by MassimilianoPinto
parent 18fa04aa79
commit e377b30803
30 changed files with 70 additions and 68 deletions

View File

@ -0,0 +1,25 @@
#!/bin/bash
# Create a temporary directory: /tmp/tmp.<random>
SECRETS_DIR=`mktemp -d`
# Generate a .secrets file.
../maxkeys ${SECRETS_DIR} || exit 1
# Generate a key.
KEY=`../maxpasswd ${SECRETS_DIR} dummy`
# Remove the temporary directory.
rm -rf ${SECRETS_DIR}
# Get the length of the generated KEY.
LENGTH=${#KEY}
if [ ${LENGTH} -eq 32 ]
then
# Exactly 32 characters => Ok!
exit 0
else
# Something else; chances are maxpasswd outputs garbage.
exit 1
fi