Test plenty of doc & docx files

pull/9/head
Raphaël Vinot 2016-02-01 11:45:50 +01:00
parent df80af000c
commit aaad11b5c1
2 changed files with 14 additions and 0 deletions

View File

@ -53,11 +53,13 @@ install:
- pip install coveralls - pip install coveralls
- pip install codecov - pip install codecov
# Prepare testings # Prepare testings
# Zoo
- git clone https://github.com/Rafiot/theZoo.git - git clone https://github.com/Rafiot/theZoo.git
- pushd theZoo/malwares/Binaries - pushd theZoo/malwares/Binaries
- python unpackall.py - python unpackall.py
- popd - popd
- mv theZoo/malwares/Binaries/out tests/src/ - mv theZoo/malwares/Binaries/out tests/src/
# path transversal
- hg clone https://bitbucket.org/jwilk/path-traversal-samples - hg clone https://bitbucket.org/jwilk/path-traversal-samples
- pushd path-traversal-samples - pushd path-traversal-samples
- pushd zip - pushd zip
@ -69,6 +71,9 @@ install:
- popd - popd
- mv path-traversal-samples/zip/*.zip tests/src/ - mv path-traversal-samples/zip/*.zip tests/src/
- mv path-traversal-samples/rar/*.rar tests/src/ - mv path-traversal-samples/rar/*.rar tests/src/
# Office docs
- git clone https://github.com/grierforensics/officedissector.git
- mv officedissector/test tests/src2/
script: script:
- coverage run --source=bin,kittengroomer setup.py test - coverage run --source=bin,kittengroomer setup.py test

View File

@ -76,6 +76,15 @@ class TestBasic(unittest.TestCase):
spec.processdir() spec.processdir()
self.dump_logs(spec) self.dump_logs(spec)
def test_filecheck_2(self):
if sys.version_info.major >= 3:
return
src = os.path.join(self.curpath, 'tests/src2')
dst = os.path.join(self.curpath, 'tests/dst')
spec = KittenGroomerFileCheck(src, dst, debug=True)
spec.processdir()
self.dump_logs(spec)
def test_help_file(self): def test_help_file(self):
f = FileBase('tests/src/blah.conf', 'tests/dst/blah.conf') f = FileBase('tests/src/blah.conf', 'tests/dst/blah.conf')
f.make_unknown() f.make_unknown()