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 codecov
# Prepare testings
# Zoo
- git clone https://github.com/Rafiot/theZoo.git
- pushd theZoo/malwares/Binaries
- python unpackall.py
- popd
- mv theZoo/malwares/Binaries/out tests/src/
# path transversal
- hg clone https://bitbucket.org/jwilk/path-traversal-samples
- pushd path-traversal-samples
- pushd zip
@ -69,6 +71,9 @@ install:
- popd
- mv path-traversal-samples/zip/*.zip 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:
- coverage run --source=bin,kittengroomer setup.py test

View File

@ -76,6 +76,15 @@ class TestBasic(unittest.TestCase):
spec.processdir()
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):
f = FileBase('tests/src/blah.conf', 'tests/dst/blah.conf')
f.make_unknown()