Skip to content
Merged
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
13 changes: 9 additions & 4 deletions scripts/ci/fd-conformance.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -71,15 +71,20 @@ await $`CORE_BPF_PROGRAM_ID=${getProgramId('program')} \
--lib --release --target x86_64-unknown-linux-gnu --features core-bpf`;
await $`mv ${solFuzzAgaveTargetPath} ${testTargetPathCoreBpf}`;

// Remove any test results if they exist.
await $`rm -rf test_results`;

// Run the tests.
await $`source test_suite_env/bin/activate && \
solana-test-suite run-tests \
-i ${fixturesPath} -s ${testTargetPathBuiltin} -t ${testTargetPathCoreBpf}`;

// Assert conformance.
// There should be no fixtures in the `failed_protobufs` directory.
if (fs.readdirSync('test_results/failed_protobufs').length > 0) {
throw new Error(`Error: mismatches detected.`);
} else {
console.log('All tests passed.');
if (fs.existsSync('test_results/failed_protobufs')) {
if (fs.readdirSync('test_results/failed_protobufs').length > 0) {
throw new Error(`Error: mismatches detected.`);
}
}

console.log('All tests passed.');