This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
describe("Build tests", () => { | |
it("should assemble with RC=0", () => { | |
// TODO(Kelosky): do something meaningful | |
expect(true).toBe(true); | |
}); | |
// TODO(Kelosky): add more | |
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#! /bin/env node | |
import * as config from "config"; | |
import { execSync } from "child_process"; | |
interface DataSet { | |
blockSize: number; | |
directoryBlocks: number; | |
recordFormat: string; | |
recordLength: number; | |
dataSetType: string; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
export interface DataSet { | |
blockSize: number; | |
directoryBlocks: number; | |
recordFormat: string; | |
recordLength: number; | |
dataSetType: string; | |
size: string; | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#! /bin/env node | |
import * as config from "config"; | |
import { execSync } from "child_process"; | |
import { DataSets } from "./doc/IDataSets"; | |
const hlq: string = config.get<string>('settings.hlq'); | |
const dataSets: DataSets = config.get<DataSets>('dataSets'); | |
Object.keys(dataSets).forEach((key) => { | |
const cmd = `zowe files create pds ` + |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// job info | |
job: { | |
// metal c compilation configuration | |
compile: { | |
options: metalOptions64, | |
includes: metalIncludes, | |
sources: { | |
TEMPLATE: {}, | |
AMS: { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include "ams.h" | |
void main() | |
{ | |
char inbuff[80] = {0}; | |
char writeBuf[132] = {0}; | |
IO_CTRL *sysprintIoc = openOutputAssert("SYSPRINT", 132, 132, dcbrecf + dcbrecbr); | |
IO_CTRL *inIoc = openInputAssert("IN", 80, 80, dcbrecf); | |
while (0 == readSync(inIoc, inbuff)) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import { execSync } from "child_process"; | |
import * as config from "config"; | |
import * as fs from "fs"; | |
import * as handlebars from "handlebars"; | |
const TIMEOUT = 20000; | |
const test = [{ | |
in: "hello world" | |
}, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
describe("execution tests", () => { | |
it("should read all input lines", () => { | |
test.forEach((testData, index) => { | |
const file = fs.readFileSync(`output/${testResponse.data.jobid}/RUN${index}/SYSPRINT.txt`).toString().trim(); | |
expect(file).toBe(testData.in); | |
}); | |
}); | |
it("show our control block is built correctly", () => { | |
const responses = fs.readFileSync(`output/${testResponse.data.jobid}/RUN0/SNAP.txt`).toString().split('\n'); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
kind: pipeline | |
name: template | |
steps: | |
- name: build-and-test | |
image: dkelosky/zowe-cli | |
environment: | |
USERNAME: | |
from_secret: MF_USER | |
PASSWORD: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
CC=g++ | |
CFLAGS=-c -Wall | |
LDFLAGS= | |
SOURCES=main.cpp | |
OBJECTS=$(SOURCES:.cpp=.o) | |
EXECUTABLE=hello | |
all: $(SOURCES) $(EXECUTABLE) | |
OlderNewer