Commit 61feffee by Craig Heffner

Updated testing script comments

parent 40ae0ae4
...@@ -5,8 +5,9 @@ from nose.tools import eq_, ok_ ...@@ -5,8 +5,9 @@ from nose.tools import eq_, ok_
def test_firmware_cpio(): def test_firmware_cpio():
''' '''
Test: Open firmware.cpio, scan for signatures Test: Open firmware.cpio, scan for signatures.
verify that all (and only) expected signatures are detected Verify that at least one CPIO signature is detected.
Verify that only CPIO signatures are detected.
''' '''
input_vector_file = os.path.join(os.path.dirname(__file__), input_vector_file = os.path.join(os.path.dirname(__file__),
"input-vectors", "input-vectors",
......
...@@ -5,8 +5,8 @@ from nose.tools import eq_, ok_ ...@@ -5,8 +5,8 @@ from nose.tools import eq_, ok_
def test_firmware_gzip(): def test_firmware_gzip():
''' '''
Test: Open firmware.gzip, scan for signatures Test: Open firmware.gzip, scan for signatures.
verify that all (and only) expected signatures are detected Verify that only one gzip signature was detected.
''' '''
input_vector_file = os.path.join(os.path.dirname(__file__), input_vector_file = os.path.join(os.path.dirname(__file__),
"input-vectors", "input-vectors",
......
...@@ -5,8 +5,9 @@ from nose.tools import eq_, ok_ ...@@ -5,8 +5,9 @@ from nose.tools import eq_, ok_
def test_firmware_jffs2(): def test_firmware_jffs2():
''' '''
Test: Open firmware.jffs2, scan for signatures Test: Open firmware.jffs2, scan for signatures.
verify that all (and only) expected signatures are detected Verify that only JFFS2 signatures are detected.
Verify that only the first one was displayed.
''' '''
input_vector_file = os.path.join(os.path.dirname(__file__), input_vector_file = os.path.join(os.path.dirname(__file__),
"input-vectors", "input-vectors",
...@@ -19,8 +20,8 @@ def test_firmware_jffs2(): ...@@ -19,8 +20,8 @@ def test_firmware_jffs2():
# Test number of modules used # Test number of modules used
eq_(len(scan_result), 1) eq_(len(scan_result), 1)
# Test number of results for that module # Test number of results for that module, should be more than one
ok_(len(scan_result[0].results) > 0) ok_(len(scan_result[0].results) > 1)
first_result = scan_result[0].results[0] first_result = scan_result[0].results[0]
......
...@@ -5,8 +5,9 @@ from nose.tools import eq_, ok_ ...@@ -5,8 +5,9 @@ from nose.tools import eq_, ok_
def test_firmware_squashfs(): def test_firmware_squashfs():
''' '''
Test: Open firmware.squashfs, scan for signatures Test: Open firmware.squashfs, scan for signatures.
verify that all (and only) expected signatures are detected Verify that one, and only one signature was detected.
Verityf that it was a SquashFS file system.
''' '''
input_vector_file = os.path.join(os.path.dirname(__file__), input_vector_file = os.path.join(os.path.dirname(__file__),
"input-vectors", "input-vectors",
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment