Skip to content

Commit

Permalink
Add integration test for --largefiles arg
Browse files Browse the repository at this point in the history
  • Loading branch information
Tim Walsh committed Nov 8, 2018
1 parent 298f34a commit efbb39e
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions test.py
Original file line number Diff line number Diff line change
Expand Up @@ -135,6 +135,16 @@ def test_integration_clamav(self):
with open(virus_log, 'r') as f:
self.assertTrue("Infected files: 0" in f.read())

def test_integration_clamav_largefiles(self):
subprocess.call('python brunnhilde.py -l ./test-data/files/ "%s" test' % (self.dest_tmpdir),
shell=True)
# virus log correctly written
virus_log = j(self.dest_tmpdir, 'test', 'logs', 'viruscheck-log.txt')
with open(virus_log, 'r') as f:
self.assertTrue("Scanned files: 4" in f.read())
with open(virus_log, 'r') as f:
self.assertTrue("Infected files: 0" in f.read())

def test_integration_clamav_diskimage(self):
subprocess.call('python brunnhilde.py -d ./test-data/diskimages/sample-floppy-fat.dd "%s" test' % (self.dest_tmpdir),
shell=True)
Expand Down

0 comments on commit efbb39e

Please sign in to comment.