add fixture test

This commit is contained in:
Alex Groce 2018-07-14 05:00:03 -07:00
parent ec52c6e27d
commit a07311706e
2 changed files with 14 additions and 1 deletions

View File

@ -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

View File

@ -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"],