Rename test -> tests (#66)

* rename test -> tests

* re-add ignored tests
This commit is contained in:
JP Smith 2017-03-13 14:06:36 -05:00 committed by GitHub
parent dd24878724
commit ca0bee2377
81 changed files with 7 additions and 7 deletions

View File

@ -61,11 +61,11 @@ cd /path/to/manticore/
# all tests
nosetests
# just one file
nosetests test/test_armv7cpu.py
nosetests tests/test_armv7cpu.py
# just one test class
nosetests test/test_armv7cpu.py:Armv7CpuInstructions
nosetests tests/test_armv7cpu.py:Armv7CpuInstructions
# just one test
nosetests test/test_armv7cpu.py:Armv7CpuInstructions.test_mov_imm_min
nosetests tests/test_armv7cpu.py:Armv7CpuInstructions.test_mov_imm_min
```
## Quick start

View File

@ -1,6 +1,6 @@
#!/bin/bash
coverage erase
coverage run -m unittest discover test/ 2>&1 >/dev/null | tee travis_tests.log
coverage run -m unittest discover tests/ 2>&1 >/dev/null | tee travis_tests.log
DID_OK=$(tail -n1 travis_tests.log)
RV=1
if [[ "${DID_OK}" == OK* ]]

View File

@ -5,7 +5,7 @@ No ignore APIs:
python SymbolicExecutor/main.py --offset 0 --workspace test --buffer "DWORD PTR [EBP-0x28]" --size "0x20" tests/ignore_an_api/ignore_an_api.dmp
Ignore APIs:
python SymbolicExecutor/main.py --offset 0 --workspace test --buffer "DWORD PTR [EBP-0x28]" --size "0x20" tests/ignore_an_api/ignore_an_api.dmp --names tests/ignore_an_api/api_names.txt --log test/manticore.log
python SymbolicExecutor/main.py --offset 0 --workspace test --buffer "DWORD PTR [EBP-0x28]" --size "0x20" tests/ignore_an_api/ignore_an_api.dmp --names tests/ignore_an_api/api_names.txt --log tests/manticore.log
APIs to Ignore:

View File

@ -4,7 +4,7 @@ from manticore import Manticore
class ManticoreTest(unittest.TestCase):
def setUp(self):
self.m = Manticore('test/binaries/arguments_linux_amd64')
self.m = Manticore('tests/binaries/arguments_linux_amd64')
def test_add_hook(self):
def tmp(state):
@ -29,7 +29,7 @@ class ManticoreTest(unittest.TestCase):
@unittest.skip('TODO(mark): (#52) activating this test breaks something z3 related for following tests')
def test_integration_basic_stdin(self):
import os, struct
self.m = Manticore('test/binaries/basic_linux_amd64')
self.m = Manticore('tests/binaries/basic_linux_amd64')
self.m.run()
workspace = os.path.join(os.getcwd(), self.m.workspace)
with open(os.path.join(workspace, 'test_00000001.stdin')) as f: