Skip to content

Commit

Permalink
Add ellsq testing to CI
Browse files Browse the repository at this point in the history
  • Loading branch information
sipa committed Oct 2, 2021
1 parent 1ab129a commit af4047c
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 4 deletions.
15 changes: 12 additions & 3 deletions .cirrus.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ env:
ECDH: no
RECOVERY: no
SCHNORRSIG: no
ELLSQ: no
### test options
TEST_ITERS:
BENCH: yes
Expand Down Expand Up @@ -60,12 +61,12 @@ task:
memory: 1G
matrix: &ENV_MATRIX
- env: {WIDEMUL: int64, RECOVERY: yes}
- env: {WIDEMUL: int64, ECDH: yes, EXPERIMENTAL: yes, SCHNORRSIG: yes}
- env: {WIDEMUL: int64, ECDH: yes, EXPERIMENTAL: yes, SCHNORRSIG: yes, ELLSQ: yes}
- env: {WIDEMUL: int128}
- env: {WIDEMUL: int128, RECOVERY: yes, EXPERIMENTAL: yes, SCHNORRSIG: yes}
- env: {WIDEMUL: int128, RECOVERY: yes, EXPERIMENTAL: yes, SCHNORRSIG: yes, ELLSQ: yes}
- env: {WIDEMUL: int128, ECDH: yes, EXPERIMENTAL: yes, SCHNORRSIG: yes}
- env: {WIDEMUL: int128, ASM: x86_64}
- env: { RECOVERY: yes, EXPERIMENTAL: yes, SCHNORRSIG: yes}
- env: { RECOVERY: yes, EXPERIMENTAL: yes, SCHNORRSIG: yes, ELLSQ: yes}
- env: { STATICPRECOMPUTATION: no}
- env: {BUILD: distcheck, WITH_VALGRIND: no, CTIMETEST: no, BENCH: no}
- env: {CPPFLAGS: -DDETERMINISTIC}
Expand All @@ -91,6 +92,7 @@ task:
env:
HOST: i686-linux-gnu
ECDH: yes
ELLSQ: yes
RECOVERY: yes
EXPERIMENTAL: yes
SCHNORRSIG: yes
Expand Down Expand Up @@ -175,6 +177,7 @@ task:
HOST: s390x-linux-gnu
WITH_VALGRIND: no
ECDH: yes
ELLSQ: yes
RECOVERY: yes
EXPERIMENTAL: yes
SCHNORRSIG: yes
Expand All @@ -198,6 +201,7 @@ task:
HOST: arm-linux-gnueabihf
WITH_VALGRIND: no
ECDH: yes
ELLSQ: tes
RECOVERY: yes
EXPERIMENTAL: yes
SCHNORRSIG: yes
Expand All @@ -222,6 +226,7 @@ task:
HOST: aarch64-linux-gnu
WITH_VALGRIND: no
ECDH: yes
ELLSQ: yes
RECOVERY: yes
EXPERIMENTAL: yes
SCHNORRSIG: yes
Expand All @@ -243,6 +248,7 @@ task:
HOST: powerpc64le-linux-gnu
WITH_VALGRIND: no
ECDH: yes
ELLSQ: yes
RECOVERY: yes
EXPERIMENTAL: yes
SCHNORRSIG: yes
Expand All @@ -264,6 +270,7 @@ task:
HOST: x86_64-w64-mingw32
WITH_VALGRIND: no
ECDH: yes
ELLSQ: yes
RECOVERY: yes
EXPERIMENTAL: yes
SCHNORRSIG: yes
Expand All @@ -281,6 +288,7 @@ task:
memory: 2G
env:
ECDH: yes
ELLSQ: yes
RECOVERY: yes
EXPERIMENTAL: yes
SCHNORRSIG: yes
Expand Down Expand Up @@ -334,6 +342,7 @@ task:
WERROR_CFLAGS:
EXPERIMENTAL: yes
ECDH: yes
ELLSQ: yes
RECOVERY: yes
SCHNORRSIG: yes
<< : *MERGE_BASE
Expand Down
6 changes: 5 additions & 1 deletion ci/cirrus.sh
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ valgrind --version || true
--enable-experimental="$EXPERIMENTAL" \
--with-test-override-wide-multiply="$WIDEMUL" --with-asm="$ASM" \
--enable-ecmult-static-precomputation="$STATICPRECOMPUTATION" --with-ecmult-gen-precision="$ECMULTGENPRECISION" \
--enable-module-ecdh="$ECDH" --enable-module-recovery="$RECOVERY" \
--enable-module-ecdh="$ECDH" --enable-module-recovery="$RECOVERY" --enable-module-ellsq="$ELLSQ" \
--enable-module-schnorrsig="$SCHNORRSIG" \
--with-valgrind="$WITH_VALGRIND" \
--host="$HOST" $EXTRAFLAGS
Expand Down Expand Up @@ -60,6 +60,10 @@ then
then
$EXEC ./bench_ecdh >> bench.log 2>&1
fi
if [ "$ELLSQ" = "yes" ]
then
$EXEC ./bench_ellsq >> bench.log 2>&1
fi
if [ "$SCHNORRSIG" = "yes" ]
then
$EXEC ./bench_schnorrsig >> bench.log 2>&1
Expand Down

0 comments on commit af4047c

Please sign in to comment.