Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
27 changes: 26 additions & 1 deletion .ci/coverage_more.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,39 @@

set -e

function pdiv() {
printf "\n====== %s ======\n" "$*"
}

if [ "$#" = "1" -a "$(echo $1 | grep 'gmp')" != "" ]; then
pdiv "Test GMP"
./test t gmp
fi

pdiv "Sizes"
./sizes
pdiv "Constants"
./constants

for i in $(for j in $(echo $(./hashsum -h | awk '/Algorithms/,EOF' | tail -n +2)); do echo $j; done | sort); do echo -n "$i: " && ./hashsum -a $i tests/test.key ; done > hashsum_tv.txt
echo "" > x509_verify.log

for n in tests/x509/*.pem; do
pdiv "X.509 verify $n"
./x509_verify $n >>x509_verify.log 2>&1
done

pdiv "X.509 verify of all certs packaged"
find tests/x509 -name '*.pem' -exec './x509_verify' {} \+ >>x509_verify.log 2>&1

pdiv "X.509 verify of all certs packaged via STDIN"
for f in $(find tests/x509 -maxdepth 2 -name '*.pem'); do echo "- - - - - - -"; echo $f; cat $f | ./x509_verify; done >>x509_verify.log 2>&1

pdiv "Generate hashsum_tv.txt"
for i in $(for j in $(echo $(./hashsum -h | awk '/Algorithms/,EOF' | tail -n +2)); do echo $j; done | sort); do
echo -n "$i: " && ./hashsum -a $i tests/test.key
done > hashsum_tv.txt

pdiv "Compare hashsum_tv.txt"
difftroubles=$(diff -i -w -B hashsum_tv.txt notes/hashsum_tv.txt | grep '^<') || true
if [ -n "$difftroubles" ]; then
echo "FAILURE: hashsum_tv.tx"
Expand Down
6 changes: 5 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,8 @@ constants
constants.exe
crypt
crypt.exe
der_print_flexi
der_print_flexi.exe
hashsum
hashsum.exe
multi
Expand All @@ -52,6 +54,8 @@ tv_gen
tv_gen.exe
timing
timing.exe
x509_verify
x509_verify.exe

# Visual Studio special files
# ignore user specific settings
Expand Down Expand Up @@ -107,7 +111,7 @@ doxygen/
*.lof
*.bak

coverage/
coverage*/
coverage*.info

# coverity intermediate directory etc.
Expand Down
4 changes: 3 additions & 1 deletion demos/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ endif()
#
# Demos that are usable but only rarely make sense to be installed
#
# USEABLE_DEMOS = aesgcm constants crypt openssh-privkey openssl-enc pem-info sizes timing
# USEABLE_DEMOS = aesgcm constants crypt der_print_flexi openssh-privkey openssl-enc pem-info sizes timing x509_verify
# -----------------------------------------------------------------------------

if(BUILD_USABLE_DEMOS)
Expand All @@ -38,11 +38,13 @@ if(BUILD_USABLE_DEMOS)
aesgcm
constants
crypt
der_print_flexi
openssh-privkey
openssl-enc
pem-info
sizes
timing
x509_verify
)
endif()

Expand Down
Loading