def test_wasmopt_run(test_ensure_binaryen): # pylint: disable=redefined-outer-name,unused-argument """Test that we are able to run with wasm-opt from the binaryen repository. Args: test_ensure_binaryen (class): Custom pytest fixture from this module """ assert with_binaryen.wasmopt_run(Path(__file__))
def test_run_binaryen_generated(self): """Test that compiled SpiderMonkey builds are able to run binaryen-generated wasm files.""" assert with_binaryen.wasmopt_run(Path(__file__)) subprocess.run( [self.test_shell_compile(), self.wrapper_file, self.wasm_file], check=True)
def test_wasmopt_run(): """Test that we are able to run with wasm-opt from the binaryen repository.""" assert with_binaryen.wasmopt_run(Path(__file__))