Skip to content

Commit 382a05f

Browse files
committed
Create test case to show problem
Signed-off-by: worksofliam <[email protected]>
1 parent e047cc3 commit 382a05f

File tree

1 file changed

+18
-1
lines changed

1 file changed

+18
-1
lines changed

cli/test/cs_with_bnddir.test.ts

Lines changed: 18 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ describe(`pseudo tests`, () => {
7575
expect(employees.deps.find(f => f.systemName === `EMPLOYEE` && f.type === `FILE`)).toBeDefined();
7676
});
7777

78-
test('makefile', async () => {
78+
test('makefile', async () => {
7979
const makefile = new MakeProject(targets.getCwd(), targets, fs);
8080
await makefile.setupSettings();
8181

@@ -96,6 +96,23 @@ describe(`pseudo tests`, () => {
9696
expect(steps.length).toBe(8);
9797
});
9898

99+
test('makefile partial', async () => {
100+
const makefile = new MakeProject(targets.getCwd(), targets, fs);
101+
makefile.setPartialOptions({partial: true, parents: true});
102+
await makefile.setupSettings();
103+
104+
const resolvedObjects = targets.getResolvedObjects();
105+
106+
const nept = resolvedObjects.find(f => f.systemName === `NEMP` && f.type === `FILE`);
107+
const targetsOut = makefile.generateTargets([nept]).join(`\n`);
108+
109+
expect(targetsOut).toContain(`all: .logs .evfevent library $(PREPATH)/NEMP.FILE $(PREPATH)/NEWEMP.PGM $(PREPATH)/DEPTS.PGM`);
110+
expect(targetsOut).not.toContain(`$(PREPATH)/NEWEMP.PGM:`);
111+
112+
const rules = makefile.generateGenericRules([nept]).join(`\n`);
113+
console.log(rules);
114+
});
115+
99116
test('ibmi-bob rules', () => {
100117
const bobProject = new BobProject(targets);
101118

0 commit comments

Comments
 (0)