readded confs, some basic exception handling, and reworking conf now

This commit is contained in:
Chris Punches
2017-06-11 15:14:45 -04:00
parent 82d768e3c1
commit b36e6acabd
11 changed files with 142 additions and 74 deletions

4
conf/config.json Normal file
View File

@@ -0,0 +1,4 @@
{
"units_path": "/home/phanes/Development/internal/ftests/conf/units/all_test.units",
"plan_path": "/home/phanes/Development/internal/ftests/conf/plans/test.plan"
}

6
conf/plans/test.plan Normal file
View File

@@ -0,0 +1,6 @@
{
"plan": [
{ "name": "independent test", "depends on": null },
{ "name": "dependent test", "depends on": [ "independent test", null, null ] }
]
}

22
conf/units/all_test.units Normal file
View File

@@ -0,0 +1,22 @@
{
"units": [
{
"name": "independent test",
"target": "/home/phanes/tests/test-script-pass.sh",
"output": "pass",
"rectifier": "/home/phanes/tests/test-script-rectifier.sh",
"active": true,
"required": true,
"rectify": true
},
{
"name": "dependent test",
"target": "/home/phanes/tests/test-script-pass.sh",
"output": "pass",
"rectifier": "/home/phanes/tests/test-script-rectifier.sh",
"active": true,
"required": true,
"rectify": false
}
]
}