Skip to content

Commit

Permalink
pfgrep vs. qshell grep equivalency test
Browse files Browse the repository at this point in the history
We don't have skips I think, so this may be weird.
  • Loading branch information
NattyNarwhal committed Dec 18, 2024
1 parent 4b40d4a commit 80106cc
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions src/testing/search.ts
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,21 @@ export const SearchSuite: TestSuite = {
assert.ok(checkNames(result.hits.map(hit => hit.path.split("/").at(-1)!)));
assert.ok(result.hits.every(hit => !hit.path.endsWith(`MBR`)));
}
},
{
name: "pfgrep vs. qsh grep equivalency", test: async () => {
const pfgrep = getConnection().remoteFeatures.pfgrep;
// This test only needs to run if pfgrep is installed
if (pfgrep) {
const resultPfgrep = await Search.searchMembers(instance, "QSYSINC", "QRPGLESRC", "IBM", "CMRPG");
getConnection().remoteFeatures.pfgrep = undefined;
const resultQsh = await Search.searchMembers(instance, "QSYSINC", "QRPGLESRC", "IBM", "CMRPG");
getConnection().remoteFeatures.pfgrep = pfgrep;
assert.deepEqual(resultPfgrep, resultQsh);
} else {
assert.ok(true)
}
}
}
]
}
Expand Down

0 comments on commit 80106cc

Please sign in to comment.