Skip to content

Commit

Permalink
Setup gha for counter tests
Browse files Browse the repository at this point in the history
  • Loading branch information
ignasirv committed Jan 10, 2023
1 parent f4f93de commit ace64a6
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 1 deletion.
3 changes: 3 additions & 0 deletions .github/workflows/main.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,9 @@ jobs:
run: |
npm i
npm run build
- name: run counters tests
run: |
npm run test:counters
- name: Generate tests
run: |
npm run test:gen
Expand Down
2 changes: 1 addition & 1 deletion counters/tests/expAD.zkasm
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ operation:
%EXPAD_STEP + 300 - STEP:JMPN(failedCounters)
20 - CNT_BINARY :JMPNZ(failedCounters)
;%EXPAD_CNT_BINARY - CNT_BINARY :JMPNZ(failedCounters)
5 - CNT_ARITH :JMPNZ(failedCounters)
4 - CNT_ARITH :JMPNZ(failedCounters)
;%EXPAD_CNT_ARITH - CNT_ARITH :JMPNZ(failedCounters)
%EXPAD_CNT_KECCAK_F - CNT_KECCAK_F :JMPNZ(failedCounters)
%EXPAD_CNT_MEM_ALIGN - CNT_MEM_ALIGN :JMPNZ(failedCounters)
Expand Down
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
"test:utils": "mkdir -p build && npx zkasm test/utils-getLenBytes.zkasm -o build/rom-utils.test.json",
"test:rotate": "mkdir -p build && npx zkasm test/rotate.zkasm -o build/rotate.test.json",
"test:touched": "mkdir -p build && npx zkasm test/touched-assert.zkasm -o build/touched.test.json",
"test:counters": "node counters/counters-executor.js",
"eslint": "npx eslint tools/**.js",
"eslint:fix": "npx eslint tools/**.js --fix",
"test:gen": "node tools/gen-parallel-tests.js",
Expand Down

0 comments on commit ace64a6

Please sign in to comment.