add fixture test
This commit is contained in:
parent
ec52c6e27d
commit
a07311706e
@ -25,6 +25,8 @@ env:
|
||||
- TASK=PRIMES DEEPSTATE_CMD=deepstate-manticore
|
||||
- TASK=TAKEOVER DEEPSTATE_CMD=deepstate-angr
|
||||
- TASK=TAKEOVER DEEPSTATE_CMD=deepstate-manticore
|
||||
- TASK=FIXTURE DEEPSTATE_CMD=deepstate-angr
|
||||
- TASK=FIXTURE DEEPSTATE_CMD=deepstate-manticore
|
||||
- TASK=LISTS DEEPSTATE_CMD=deepstate-angr
|
||||
- TASK=LISTS DEEPSTATE_CMD=deepstate-manticore
|
||||
- TASK=ONEOF DEEPSTATE_CMD=deepstate-angr
|
||||
|
||||
@ -59,7 +59,18 @@ class TestBasicFunctionality(TestCase):
|
||||
for line in output.split("\n"):
|
||||
if ("Saving input to" in line) and (".pass" in line):
|
||||
foundPassSave = True
|
||||
self.assertTrue(foundPassSave)
|
||||
self.assertTrue(foundPassSave)
|
||||
|
||||
if os.getenv("TASK") is None or os.getenv("TASK") == "FIXTURE":
|
||||
(r, output) = logrun.logrun([deepstate, "build/examples/Fixture"],
|
||||
"deepstate.out", 1800)
|
||||
self.assertEqual(r, 0)
|
||||
|
||||
self.assertTrue("Passed: MyTest_Something" in output)
|
||||
self.assertFalse("Failed: MyTest_Something" in output)
|
||||
|
||||
self.assertTrue("Setting up!" in output)
|
||||
self.assertTrue("Tearing down!" in output)
|
||||
|
||||
if os.getenv("TASK") is None or os.getenv("TASK") == "LISTS":
|
||||
(r, output) = logrun.logrun([deepstate, "build/examples/Lists"],
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user