Skip to content

Commit 371a15c

Browse files
committed
Housekeeping
- add txt ext for inputs - add diffs with supercop - add sonar.sh - fix bugs in housekeeping/* - rm edsha3test.c
1 parent 380bd40 commit 371a15c

18 files changed

+1515
-1101
lines changed

.codecov.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,10 @@ coverage:
1212
default:
1313
target: auto
1414
threshold: 0.05
15+
paths:
16+
- "lib/"
17+
- "!**/.txt"
18+
- "!**/.md"
1519
tests:
1620
target: auto
1721
paths: "test/"

housekeeping/all.sh

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,15 @@
11
#!/usr/bin/env bash
2+
HERE=$(dirname $0)
3+
BUILD=$HERE/../build
24

3-
cd $(dirname $0)
5+
if [ ! -d "$BUILD" ]; then
6+
echo "build ed25519 first"
7+
exit 1
8+
fi
9+
10+
cd $HERE
411

512
./valgrind.sh
6-
./coverage.sh
713
./cppcheck.sh
14+
./coverage.sh
15+
./sonar.sh

housekeeping/coverage.sh

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,14 @@
11
#!/usr/bin/env bash
2-
cd $(dirname $PWD)/build
2+
3+
HERE=$(dirname $0)
4+
BUILD=$HERE/../build
5+
6+
cd $BUILD
37
make gcovr
8+
9+
if [ -z "$CODECOV_TOKEN" ]; then
10+
echo "Define CODECOV_TOKEN"
11+
exit 1
12+
fi
13+
14+
bash <(curl -s https://codecov.io/bash) -f $BUILD/reports/gcovr.xml -t $CODECOV_TOKEN

housekeeping/cppcheck.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
#!/usr/bin/env bash
2-
cd $(dirname $PWD)/build
2+
cd $(dirname $0)/../build
33
make cppcheck

housekeeping/sonar.sh

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
#!/bin/bash
2+
cd $(dirname $0)/..
3+
4+
if [ -z "$SONAR_TOKEN" ]; then
5+
echo "Define SONAR_TOKEN"
6+
exit 1
7+
fi
8+
9+
sonar-scanner -Dsonar.logn=$SONAR_TOKEN

housekeeping/valgrind.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
#!/usr/bin/env bash
2+
BUILD_DIR=$(dirname $0)/../build
23

3-
cd $(dirname $PWD)/build
4-
BUILD_DIR=$PWD
4+
cd $BUILD_DIR
55
REPORT_DIR=$BUILD_DIR/reports
66
GTEST_DIR=${BUILD_DIR}/bin
77
for test in $(ls $GTEST_DIR); do

0 commit comments

Comments
 (0)