Skip to content

Instantly share code, notes, and snippets.

describe("Build tests", () => {
it("should assemble with RC=0", () => {
// TODO(Kelosky): do something meaningful
expect(true).toBe(true);
});
// TODO(Kelosky): add more
});
#! /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;
export interface DataSet {
blockSize: number;
directoryBlocks: number;
recordFormat: string;
recordLength: number;
dataSetType: string;
size: string;
}
#! /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 ` +
// job info
job: {
// metal c compilation configuration
compile: {
options: metalOptions64,
includes: metalIncludes,
sources: {
TEMPLATE: {},
AMS: {
#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))
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"
},
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');
@dkelosky
dkelosky / hlasm.drone.yml
Last active February 12, 2019 12:21
HLASM Drone
kind: pipeline
name: template
steps:
- name: build-and-test
image: dkelosky/zowe-cli
environment:
USERNAME:
from_secret: MF_USER
PASSWORD:
CC=g++
CFLAGS=-c -Wall
LDFLAGS=
SOURCES=main.cpp
OBJECTS=$(SOURCES:.cpp=.o)
EXECUTABLE=hello
all: $(SOURCES) $(EXECUTABLE)