From 416191ffa85c92c474428f0ede16808584fabe21 Mon Sep 17 00:00:00 2001 From: David Stainton <dstainton@elixxir.io> Date: Mon, 26 Sep 2022 12:54:27 -0400 Subject: [PATCH] .gitlab-ci.yml run tests and benchmarks for each bit size --- .gitlab-ci.yml | 21 ++++++++++++++++++++- 1 file changed, 20 insertions(+), 1 deletion(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 97e28e4..b1595e5 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -29,8 +29,27 @@ test: - unzip high-ctidh.zip - export P=`pwd` - cd .. +# 511 + - cp binding511.h binding.h + - export CTIDH_BITS=511 + - export CGO_CFLAGS="-g -I${P} -DBITS=${CTIDH_BITS}" + - export CGO_LDFLAGS="-L${P} -Wl,-rpath,${P} -lhighctidh_${CTIDH_BITS}" + - go test -v -bench . +# 512 + - cp binding512.h binding.h + - export CTIDH_BITS=512 + - export CGO_CFLAGS="-g -I${P} -DBITS=${CTIDH_BITS}" + - export CGO_LDFLAGS="-L${P} -Wl,-rpath,${P} -lhighctidh_${CTIDH_BITS}" + - go test -v -bench . +# 1024 - cp binding1024.h binding.h - export CTIDH_BITS=1024 - export CGO_CFLAGS="-g -I${P} -DBITS=${CTIDH_BITS}" - export CGO_LDFLAGS="-L${P} -Wl,-rpath,${P} -lhighctidh_${CTIDH_BITS}" - - go test -v \ No newline at end of file + - go test -v -bench . +# 2048 + - cp binding2048.h binding.h + - export CTIDH_BITS=2048 + - export CGO_CFLAGS="-g -I${P} -DBITS=${CTIDH_BITS}" + - export CGO_LDFLAGS="-L${P} -Wl,-rpath,${P} -lhighctidh_${CTIDH_BITS}" + - go test -v -bench . -- GitLab