Skip to content

Commit

Permalink
Add testing to CI job
Browse files Browse the repository at this point in the history
  • Loading branch information
septract committed Jan 16, 2025
1 parent c8c7d93 commit 2d49909
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
6 changes: 5 additions & 1 deletion components/mission_key_management/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -40,4 +40,8 @@ clean:

.PHONY: cn_proof
cn_proof:
$(CN) client.c
$(CN) client.c

.PHONY: cn_test
cn_test:
./run-cn-test.sh client.c
2 changes: 2 additions & 0 deletions components/mission_key_management/run-cn-test.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@

# Need to set this to max size of static array used in client.h
ARRAY_MAX=128
NUM_SAMPLES=1000

set -euo pipefail

Expand Down Expand Up @@ -36,6 +37,7 @@ CN_FLAGS=(
"-DCN_ENV" "-DCN_TEST"
"--max-array-length=${ARRAY_MAX}"
"--with-static-hack" # TODO remove when CN preprocessor limitations fixed
"--num-samples=${NUM_SAMPLES}"
)

# Sanity check - $OUTPUT_FILE should be verifiable if $INPUT_FILE is
Expand Down

0 comments on commit 2d49909

Please sign in to comment.