Skip to content

Commit

Permalink
add fixture skips
Browse files Browse the repository at this point in the history
  • Loading branch information
buffalojoec committed Nov 8, 2024
1 parent 68e98b3 commit 732c037
Showing 1 changed file with 12 additions and 1 deletion.
13 changes: 12 additions & 1 deletion scripts/ci/fd-conformance.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,18 @@ await $`git clone https://github.com/firedancer-io/solana-conformance.git`;
const testVectorsPath = path.join(harnessPath, 'impl', 'test-vectors');
await $`git clone https://github.com/firedancer-io/test-vectors.git ${testVectorsPath}`;

// Remove the fixtures we want to skip.
const fixturesPath = path.join(testVectorsPath, 'instr', 'fixtures', 'config');
const skipFixtures = [
// These two fixtures provide executable config accounts, which we know is
// a case that can't manifest under the Solana protocol.
'68e8dbf0f31de69a2bd1d2c0fe9af3ba676301d6_3157979.fix',
'04a0b782cb1f4b1be044313331edda9dfb4696d6.fix',
];
for (const fixture of skipFixtures) {
await $`rm -f ${path.join(fixturesPath, fixture)}`;
}

// Clone the SolFuzz-Agave harness.
const solFuzzAgavePath = path.join(harnessPath, 'impl', 'solfuzz-agave');
await $`git clone -b agave-v2.1.0 http://github.com/firedancer-io/solfuzz-agave.git ${solFuzzAgavePath}`;
Expand Down Expand Up @@ -57,7 +69,6 @@ await $`CORE_BPF_PROGRAM_ID=${getProgramId('program')} \
await $`mv ${solFuzzAgaveTargetPath} ${testTargetPathCoreBpf}`;

// Run the tests.
const fixturesPath = path.join(testVectorsPath, 'instr', 'fixtures', 'config');
await $`source test_suite_env/bin/activate && \
solana-test-suite run-tests \
-i ${fixturesPath} -s ${testTargetPathBuiltin} -t ${testTargetPathCoreBpf}`;
Expand Down

0 comments on commit 732c037

Please sign in to comment.