diff --git a/.github/workflows/halo2-browser-tests.yml b/.github/workflows/halo2-browser-tests.yml index 7f9a244..f531907 100644 --- a/.github/workflows/halo2-browser-tests.yml +++ b/.github/workflows/halo2-browser-tests.yml @@ -3,19 +3,19 @@ name: halo2-browser Tests on: push jobs: - halo2-wasm-tests: - runs-on: ubuntu-latest-64core-256ram - steps: - - uses: actions/checkout@v3 - - name: Build halo2-wasm - working-directory: halo2-wasm - run: | - rustup toolchain install nightly-2023-08-12-x86_64-unknown-linux-gnu - rustup component add rust-src --toolchain nightly-2023-08-12-x86_64-unknown-linux-gnu - cargo build --target=x86_64-unknown-linux-gnu --verbose - - name: Test halo2-wasm - working-directory: halo2-wasm - run: cargo test --target=x86_64-unknown-linux-gnu + # halo2-wasm-tests: + # runs-on: ubuntu-latest-64core-256ram + # steps: + # - uses: actions/checkout@v3 + # - name: Build halo2-wasm + # working-directory: halo2-wasm + # run: | + # rustup toolchain install nightly-2023-08-12-x86_64-unknown-linux-gnu + # rustup component add rust-src --toolchain nightly-2023-08-12-x86_64-unknown-linux-gnu + # cargo build --target=x86_64-unknown-linux-gnu --verbose + # - name: Test halo2-wasm + # working-directory: halo2-wasm + # run: cargo test --target=x86_64-unknown-linux-gnu halo2-lib-js-tests: runs-on: ubuntu-latest-64core-256ram steps: @@ -29,9 +29,6 @@ jobs: rustup toolchain install nightly-2023-08-12-x86_64-unknown-linux-gnu rustup component add rust-src --toolchain nightly-2023-08-12-x86_64-unknown-linux-gnu cargo build --target=x86_64-unknown-linux-gnu --verbose - - name: Test halo2-wasm - working-directory: halo2-wasm - run: cargo test --target=x86_64-unknown-linux-gnu - name: Build halo2-lib-js working-directory: halo2-lib-js run: | diff --git a/halo2-lib-js/tests/test_vk.py b/halo2-lib-js/tests/test_vk.py index 9a79530..55b4755 100644 --- a/halo2-lib-js/tests/test_vk.py +++ b/halo2-lib-js/tests/test_vk.py @@ -18,10 +18,12 @@ def test_vk(filename): test_type = filename.split('.')[-2] rust_test = "tests::" + test_type + "::test_" + test_name print("Testing " + test_name) - subprocess.run(["npx", 'halo2-wasm', 'keygen', file_path, "-c", "./tests/run.ts"], capture_output=True) - subprocess.run(['cargo', 'test', rust_test, "--quiet", "--", "--exact"], capture_output=True) + subprocess.run(["npx", 'halo2-wasm', 'keygen', file_path, "-c", "./tests/run.ts"]) + subprocess.run(['cargo', 'test', rust_test, "--quiet", "--", "--exact"]) result = subprocess.run(['diff', './data/vk.bin', '../halo2-wasm/vk.bin'], capture_output=True) if result.returncode != 0: + print(result.stderr) + print(result.stdout) return (test_name, False) return (test_name, True)