-
Notifications
You must be signed in to change notification settings - Fork 1
/
index.js
34 lines (30 loc) · 907 Bytes
/
index.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
require('dotenv').config();
const BadAssInit = require('./tests_and_init/levels/badAssInit');
const opcodesInit = require('./tests_and_init/levels/opcodesInit');
const opcodesV2Init = require('./tests_and_init/levels/opcodesv2Init');
const ultimateInit = require('./tests_and_init/levels/ultimateInit');
const opcodesTest = require('./tests_and_init/levels/opcodesTest');
const ultimateTest = require('./tests_and_init/levels/ultimateTest');
const badAssTest = require('./tests_and_init/levels/badAssTest');
var init = {
"badAss" : BadAssInit,
"opcodes_v2" : opcodesV2Init,
"opcodes" : opcodesInit,
"ultimate" : ultimateInit
};
var test = {
"badAss" : badAssTest,
"opcodes" : opcodesTest,
"ultimate" : ultimateTest
};
(async () => {
let args = process.argv;
switch (args[2]) {
case "init":
await init[args[3]]();
break;
case "test":
await test[args[3]](args[4]);
break;
}
})();