Skip to content

Commit

Permalink
Use different CCSID to test CCSIDs can differ between directories
Browse files Browse the repository at this point in the history
  • Loading branch information
worksofliam committed Feb 1, 2024
1 parent 622c70a commit fc5b9c3
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion cli/test/fixtures/pseudo/qrpglesrc/.ibmi.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"version": "0.0.1",
"build": {
"tgtCcsid": "37"
"tgtCcsid": "273"
}
}
4 changes: 2 additions & 2 deletions cli/test/pseudo.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ describe.skipIf(files.length === 0)(`psuedo tests`, () => {
// Rules.mk rules
const testerProgram = makefile.findIndex(l => l.startsWith(`$(PREPATH)/TESTER.PGM: qrpglesrc/tester.pgm.rpgle`));
expect(testerProgram).toBeGreaterThan(-1);
expect(makefile[testerProgram + 3]).toBe(`\tsystem "CRTBNDRPG PGM($(BIN_LIB)/TESTER) SRCSTMF('qrpglesrc/tester.pgm.rpgle') OPTION(*EVENTF) DBGVIEW(*SOURCE) TGTRLS(*CURRENT) TGTCCSID(37) BNDDIR(MYBND) DFTACTGRP(*NO) TEXT('My program')" > .logs/tester.splf`);
expect(makefile[testerProgram + 3]).toBe(`\tsystem "CRTBNDRPG PGM($(BIN_LIB)/TESTER) SRCSTMF('qrpglesrc/tester.pgm.rpgle') OPTION(*EVENTF) DBGVIEW(*SOURCE) TGTRLS(*CURRENT) TGTCCSID(273) BNDDIR(MYBND) DFTACTGRP(*NO) TEXT('My program')" > .logs/tester.splf`);

This comment has been minimized.

Copy link
@edmundreinhardt

edmundreinhardt Feb 1, 2024

Member

line 13 spelling of pseudo tests
line 41 spelling of attributes

This comment has been minimized.

Copy link
@worksofliam

worksofliam Feb 1, 2024

Author Member

Got it!


// Covers:
// Rules.mk rules
Expand All @@ -62,7 +62,7 @@ describe.skipIf(files.length === 0)(`psuedo tests`, () => {
// .ibmi.json -> tgtCcsid -> updating COMPILEOPT
const testerProgram = makefile.findIndex(l => l.startsWith(`$(PREPATH)/OTHER.PGM: qrpglesrc/other.pgm.sqlrpgle`));
expect(testerProgram).toBeGreaterThan(-1);
expect(makefile[testerProgram + 3]).toBe(`\tsystem "CRTSQLRPGI OBJ($(BIN_LIB)/OTHER) SRCSTMF('qrpglesrc/other.pgm.sqlrpgle') COMMIT(*NONE) DBGVIEW(*SOURCE) OPTION(*EVENTF) RPGPPOPT(*LVL2) COMPILEOPT('TGTCCSID(37) BNDDIR($(BNDDIR)) DFTACTGRP(*no)')" > .logs/other.splf`);
expect(makefile[testerProgram + 3]).toBe(`\tsystem "CRTSQLRPGI OBJ($(BIN_LIB)/OTHER) SRCSTMF('qrpglesrc/other.pgm.sqlrpgle') COMMIT(*NONE) DBGVIEW(*SOURCE) OPTION(*EVENTF) RPGPPOPT(*LVL2) COMPILEOPT('TGTCCSID(273) BNDDIR($(BNDDIR)) DFTACTGRP(*no)')" > .logs/other.splf`);
});

test(`Ensure TGTCCSID is applied to CRTSRCPF CCSID`, () => {
Expand Down

0 comments on commit fc5b9c3

Please sign in to comment.