Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use absolute paths in run-tests-zkasm.js #212

Merged
merged 1 commit into from
Feb 8, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion ci/test-all-zkasm.sh
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ set -eux
ALL_ARGS=$@

function run_tests() {
./ci/test-zkasm.sh $1 $ALL_ARGS
./ci/test-zkasm.sh $(pwd)/$1 $ALL_ARGS
}

run_tests "cranelift/zkasm_data"
Expand Down
2 changes: 1 addition & 1 deletion ci/test-zkasm.sh
Original file line number Diff line number Diff line change
Expand Up @@ -14,5 +14,5 @@ ALL_ARGS=$@
# The first argument is expected to be a path to a folder with tests.
TEST_PATH=$1
TEST_RESULTS_PATH=$(mktemp)
npm test --prefix tests/zkasm "../../${TEST_PATH}/generated" $TEST_RESULTS_PATH
npm test --prefix tests/zkasm "${TEST_PATH}/generated" $TEST_RESULTS_PATH
python3 ci/zkasm-result.py $ALL_ARGS < $TEST_RESULTS_PATH
3 changes: 1 addition & 2 deletions tests/zkasm/run-tests-zkasm.js
Original file line number Diff line number Diff line change
Expand Up @@ -35,8 +35,7 @@ async function main() {
const cmPols = await compilePil();

// Get all zkasm files
const pathZkasm = path.join(process.cwd(), process.argv[2]);
const files = await getTestFiles(pathZkasm);
const files = await getTestFiles(process.argv[2]);

// Run all zkasm files
let testResults = [];
Expand Down
Loading