List of commits:
Subject Hash Author Date (UTC)
silent ab22b60ab194abcf99f9f215239434ef8a1d6121 Ubuntu 2020-04-06 04:38:32
rename 5359c6029c1080d29887e88127fb37f8918d8066 Ubuntu 2020-04-06 04:13:04
dont run if build fails 4986cf7e97d2019b61cae2970030ebb3c1a51168 Ubuntu 2020-04-05 23:10:42
test56 64c03cd6b03d61600e12a76c6ab623f7567b7ed8 Ubuntu 2020-04-01 05:11:28
test10 0596a0ef4052813eb8b2431096d5ff2f969f3ec9 Ubuntu 2020-04-01 05:03:21
test9 648cfb34e18d9ef6e8f9f33088b601aeeaed47b9 Ubuntu 2020-04-01 04:59:38
test8 c7d23043bad421e9ee06269567d97e3f894b58bb Ubuntu 2020-04-01 04:55:36
test6 cb9441b6be2b8175bd0d338decddb1eef82a15a6 Ubuntu 2020-04-01 04:52:26
test5] bcfbe9a0238a8ab5046211b9302f8fe71d1fc6af Ubuntu 2020-04-01 04:50:04
test4 01789d82fd44bb05952a4b0f51314b3d6005d4db Ubuntu 2020-04-01 04:31:30
test3 12f4cdd3d957d06a0810227df38e319e7e5aaa7e Ubuntu 2020-04-01 04:29:32
test2 25199a1879f59b73c3545817dcc38094c8794c3c Ubuntu 2020-04-01 04:06:40
test 71b0bb453140d43fe2019d98349ba9abe2e2b0b5 Ubuntu 2020-04-01 04:01:32
format 07fea6d901a0a1b39e113ed2eab2521bb84e4dcf Ubuntu 2020-03-31 04:36:04
yml support a0aca84f236cf2c0ac729030c3031999419530e2 Ubuntu 2020-03-30 19:20:30
prettier c0a36395356a8e6b165785b5e2dd5486fa22206d Ubuntu 2020-03-30 04:06:19
fix shit 4e786cec2b361164d67318fb9bc4d3e16b5e3156 Ubuntu 2020-03-30 02:55:58
color output 79515e592fad2cee9a985e0050969f6901451e93 Ubuntu 2020-03-30 02:42:46
output 6eec625ecbd51533330d2a1b618d28a433ae1ee4 Ubuntu 2020-03-30 02:37:25
works 1ee1f753c7dc99e4a91665d48ba7d60fd731b138 Ubuntu 2020-03-30 02:33:45
Commit ab22b60ab194abcf99f9f215239434ef8a1d6121 - silent
Author: Ubuntu
Author date (UTC): 2020-04-06 04:38
Committer name: Ubuntu
Committer date (UTC): 2020-04-06 04:38
Parent(s): 5359c6029c1080d29887e88127fb37f8918d8066
Signing key:
Tree: 6dc9d09bc1d8f04a37dfdc5b9f0a8fb8add64d51
File Lines added Lines deleted
index.js 6 11
File index.js changed (mode: 100755) (index 8bb6b10..6a092d4)
... ... const fs = require("fs"),
9 9 argv = require("minimist")(process.argv.slice(2)), argv = require("minimist")(process.argv.slice(2)),
10 10 defPath = argv.p ? argv.p : argv.project; defPath = argv.p ? argv.p : argv.project;
11 11
12 let assertionsPassed = 0;
13
12 14 if (argv.test || argv.t) { if (argv.test || argv.t) {
13 15 const tag = "duration"; const tag = "duration";
14 16 console.time(tag); console.time(tag);
15 17 process.on("exit", () => { process.on("exit", () => {
16 18 cursor.green(); cursor.green();
19 console.log(`assertions passed: ${assertionsPassed}`);
17 20 console.timeEnd(tag); console.timeEnd(tag);
18 21 cursor.reset(); cursor.reset();
19 22 }); });
 
... ... if (argv.test || argv.t) {
22 25 processDef(defPath); processDef(defPath);
23 26
24 27 function processDef(defPath) { function processDef(defPath) {
25 console.log("processing ", defPath);
26 28 readDef(defPath).then((obj) => { readDef(defPath).then((obj) => {
27 29 let result = obj; let result = obj;
28 30 if (argv.common || argv.c) { if (argv.common || argv.c) {
 
... ... function processDef(defPath) {
42 44 tmp.dir((err, tmpDir) => { tmp.dir((err, tmpDir) => {
43 45 if (err) throw err; if (err) throw err;
44 46 const execFile = path.join(tmpDir, "test"); const execFile = path.join(tmpDir, "test");
45 console.log("test directory:", tmpDir);
46 47 result = `${compiler} ${result} -o ${execFile}`; result = `${compiler} ${result} -o ${execFile}`;
47 48 if (argv.verbose || argv.v) { if (argv.verbose || argv.v) {
48 49 console.log(result); console.log(result);
49 50 } }
50 let build = shell.exec(result);
51 const silent = !(argv.verbose || argv.v);
52 let build = shell.exec(result, {silent});
51 53 if (build.code == 0) { if (build.code == 0) {
52 let assertionsPassed = 0;
53 process.on("exit", () => {
54 cursor.green();
55 console.log(`assertions passed: ${assertionsPassed}`);
56 cursor.reset();
57 });
58
59 shell.exec("./test", { cwd: tmpDir });
54 shell.exec("./test", { cwd: tmpDir, silent });
60 55 fs.readFile( fs.readFile(
61 56 path.join(tmpDir, "result.json"), path.join(tmpDir, "result.json"),
62 57 "utf8", "utf8",
Hints:
Before first commit, do not forget to setup your git environment:
git config --global user.name "your_name_here"
git config --global user.email "your@email_here"

Clone this repository using HTTP(S):
git clone https://rocketgit.com/user/mucbuc/ccargs

Clone this repository using ssh (do not forget to upload a key first):
git clone ssh://rocketgit@ssh.rocketgit.com/user/mucbuc/ccargs

Clone this repository using git:
git clone git://git.rocketgit.com/user/mucbuc/ccargs

You are allowed to anonymously push to this repository.
This means that your pushed commits will automatically be transformed into a merge request:
... clone the repository ...
... make some changes and some commits ...
git push origin main