0001 [
0002 {
0003 "id": "1f",
0004 "name": "simple test to test framework",
0005 "category": [
0006 "example"
0007 ],
0008 "setup": [
0009 "mkdir mytest"
0010 ],
0011 "cmdUnderTest": "touch mytest/blorfl",
0012 "expExitCode": "0",
0013 "verifyCmd": "ls mytest/* | grep '[b]lorfl'",
0014 "matchPattern": "orfl",
0015 "matchCount": "1",
0016 "teardown": [
0017 "rm -rf mytest"
0018 ]
0019 },
0020 {
0021 "id": "2f",
0022 "name": "simple test, no need for verify",
0023 "category": [
0024 "example"
0025 ],
0026 "setup": [
0027 "mkdir mytest",
0028 "touch mytest/blorfl"
0029 ],
0030 "cmdUnderTest": "ls mytest/blorfl",
0031 "expExitCode": "0",
0032 "verifyCmd": "/bin/true",
0033 "matchPattern": " ",
0034 "matchCount": "0",
0035 "teardown": [
0036 "rm -rf mytest"
0037 ]
0038 },
0039 {
0040 "id": "3f",
0041 "name": "simple test, no need for setup or teardown (or verify)",
0042 "category": [
0043 "example"
0044 ],
0045 "setup": [
0046 ],
0047 "cmdUnderTest": "ip l l lo",
0048 "expExitCode": "0",
0049 "verifyCmd": "/bin/true",
0050 "matchPattern": " ",
0051 "matchCount": "0",
0052 "teardown": [
0053 ]
0054 }
0055 ]