Skip to content

Commit 80106cc

Browse files
committed
pfgrep vs. qshell grep equivalency test
We don't have skips I think, so this may be weird.
1 parent 4b40d4a commit 80106cc

File tree

1 file changed

+15
-0
lines changed

1 file changed

+15
-0
lines changed

src/testing/search.ts

+15
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,21 @@ export const SearchSuite: TestSuite = {
5050
assert.ok(checkNames(result.hits.map(hit => hit.path.split("/").at(-1)!)));
5151
assert.ok(result.hits.every(hit => !hit.path.endsWith(`MBR`)));
5252
}
53+
},
54+
{
55+
name: "pfgrep vs. qsh grep equivalency", test: async () => {
56+
const pfgrep = getConnection().remoteFeatures.pfgrep;
57+
// This test only needs to run if pfgrep is installed
58+
if (pfgrep) {
59+
const resultPfgrep = await Search.searchMembers(instance, "QSYSINC", "QRPGLESRC", "IBM", "CMRPG");
60+
getConnection().remoteFeatures.pfgrep = undefined;
61+
const resultQsh = await Search.searchMembers(instance, "QSYSINC", "QRPGLESRC", "IBM", "CMRPG");
62+
getConnection().remoteFeatures.pfgrep = pfgrep;
63+
assert.deepEqual(resultPfgrep, resultQsh);
64+
} else {
65+
assert.ok(true)
66+
}
67+
}
5368
}
5469
]
5570
}

0 commit comments

Comments
 (0)