Skip to content

Commit

Permalink
chore(ci): bump noir compile tests (#8705)
Browse files Browse the repository at this point in the history
  • Loading branch information
ludamad authored Sep 23, 2024
1 parent 48de163 commit 4121ef3
Showing 1 changed file with 38 additions and 26 deletions.
64 changes: 38 additions & 26 deletions noir/noir-repo/compiler/wasm/test/compiler/node/compile.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,30 +10,42 @@ import { shouldCompileContractIdentically, shouldCompileProgramIdentically } fro
const basePath = resolve(join(__dirname, '../../'));

describe('noir-compiler/node', () => {
shouldCompileProgramIdentically(async () => {
const { simpleScriptProjectPath, simpleScriptExpectedArtifact } = getPaths(basePath);

const fm = createFileManager(simpleScriptProjectPath);
const nargoArtifact = JSON.parse((await readFile(simpleScriptExpectedArtifact)).toString()) as ProgramArtifact;
const noirWasmArtifact = await compile_program(fm);
return { nargoArtifact, noirWasmArtifact };
}, expect);

shouldCompileProgramIdentically(async () => {
const { depsScriptProjectPath, depsScriptExpectedArtifact } = getPaths(basePath);

const fm = createFileManager(depsScriptProjectPath);
const nargoArtifact = JSON.parse((await readFile(depsScriptExpectedArtifact)).toString()) as ProgramArtifact;
const noirWasmArtifact = await compile_program(fm);
return { nargoArtifact, noirWasmArtifact };
}, expect);

shouldCompileContractIdentically(async () => {
const { contractProjectPath, contractExpectedArtifact } = getPaths(basePath);

const fm = createFileManager(contractProjectPath);
const nargoArtifact = JSON.parse((await readFile(contractExpectedArtifact)).toString()) as ContractArtifact;
const noirWasmArtifact = await compile_contract(fm);
return { nargoArtifact, noirWasmArtifact };
}, expect);
shouldCompileProgramIdentically(
async () => {
const { simpleScriptProjectPath, simpleScriptExpectedArtifact } = getPaths(basePath);

const fm = createFileManager(simpleScriptProjectPath);
const nargoArtifact = JSON.parse((await readFile(simpleScriptExpectedArtifact)).toString()) as ProgramArtifact;
const noirWasmArtifact = await compile_program(fm);
return { nargoArtifact, noirWasmArtifact };
},
expect,
/*30 second timeout*/ 30000,
);

shouldCompileProgramIdentically(
async () => {
const { depsScriptProjectPath, depsScriptExpectedArtifact } = getPaths(basePath);

const fm = createFileManager(depsScriptProjectPath);
const nargoArtifact = JSON.parse((await readFile(depsScriptExpectedArtifact)).toString()) as ProgramArtifact;
const noirWasmArtifact = await compile_program(fm);
return { nargoArtifact, noirWasmArtifact };
},
expect,
/*30 second timeout*/ 30000,
);

shouldCompileContractIdentically(
async () => {
const { contractProjectPath, contractExpectedArtifact } = getPaths(basePath);

const fm = createFileManager(contractProjectPath);
const nargoArtifact = JSON.parse((await readFile(contractExpectedArtifact)).toString()) as ContractArtifact;
const noirWasmArtifact = await compile_contract(fm);
return { nargoArtifact, noirWasmArtifact };
},
expect,
/*30 second timeout*/ 30000,
);
});

0 comments on commit 4121ef3

Please sign in to comment.