Skip to content

Commit

Permalink
5366 - create a dedicated job for the AVM unit tests
Browse files Browse the repository at this point in the history
  • Loading branch information
jeanmon committed Mar 21, 2024
1 parent 7c24870 commit 8f1a1d2
Show file tree
Hide file tree
Showing 2 changed files with 34 additions and 1 deletion.
16 changes: 15 additions & 1 deletion .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -217,6 +217,18 @@ jobs:
command: cond_spot_run_test barretenberg-x86_64-linux-clang-assert 32 ./scripts/bb-tests.sh
aztec_manifest_key: barretenberg-x86_64-linux-clang-assert

barretenberg-avm-tests:
docker:
- image: aztecprotocol/alpine-build-image
resource_class: small
steps:
- *checkout
- *setup_env
- run:
name: "Test"
command: cond_spot_run_test barretenberg-x86_64-linux-clang-assert 32 ./scripts/avm-tests.sh
aztec_manifest_key: barretenberg-x86_64-linux-clang-assert

barretenberg-bench:
machine:
# NOTE: we usually use alpine build image when making spot images, but
Expand Down Expand Up @@ -294,7 +306,7 @@ jobs:
name: "Build and test"
command: cond_spot_run_test bb.js 32 ./scripts/run_tests
aztec_manifest_key: bb.js

# Noir
noir-x86_64:
docker:
Expand Down Expand Up @@ -1315,6 +1327,7 @@ workflows:
- barretenberg-proof-system-tests: *bb_test
- barretenberg-dsl-tests: *bb_test
- barretenberg-tests: *bb_test
- barretenberg-avm-tests: *bb_test
- barretenberg-stdlib-tests: *bb_test
- barretenberg-stdlib-plonk-recursion-ultra-tests: *bb_test
- barretenberg-stdlib-honk-recursion-ultra-tests: *bb_test
Expand Down Expand Up @@ -1455,6 +1468,7 @@ workflows:
- barretenberg-proof-system-tests
- barretenberg-dsl-tests
- barretenberg-tests
- barretenberg-avm-tests
- barretenberg-stdlib-tests
- barretenberg-stdlib-plonk-recursion-ultra-tests
- barretenberg-stdlib-honk-recursion-ultra-tests
Expand Down
19 changes: 19 additions & 0 deletions barretenberg/cpp/scripts/avm-tests.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
#!/usr/bin/env bash
# This script runs the AVM test suite.
# This is essentially a stripped down version of bb-tests.sh.
set -eu

$(aws ecr get-login --region us-east-2 --no-include-email) 2> /dev/null
export PATH="$PATH:$(git rev-parse --show-toplevel)/build-system/scripts"
REPOSITORY=barretenberg-x86_64-linux-clang-assert
# use the image rebuild patterns to compute a content hash, use this to get a URI
IMAGE_URI=$(calculate_image_uri $REPOSITORY)
retry docker pull $IMAGE_URI

docker run --rm -t $IMAGE_URI /bin/sh -c "\
set -xe; \
cd /usr/src/barretenberg/cpp; \
srs_db/download_ignition.sh 1; \
srs_db/download_grumpkin.sh; \
cd build; \
./bin/vm_tests; \

0 comments on commit 8f1a1d2

Please sign in to comment.