Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
B
binwalk
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
fact-depend
binwalk
Commits
61feffee
Commit
61feffee
authored
7 years ago
by
Craig Heffner
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Updated testing script comments
parent
40ae0ae4
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
13 additions
and
10 deletions
+13
-10
test_firmware_cpio.py
testing/tests/test_firmware_cpio.py
+3
-2
test_firmware_gzip.py
testing/tests/test_firmware_gzip.py
+2
-2
test_firmware_jffs2.py
testing/tests/test_firmware_jffs2.py
+5
-4
test_firmware_squashfs.py
testing/tests/test_firmware_squashfs.py
+3
-2
No files found.
testing/tests/test_firmware_cpio.py
View file @
61feffee
...
...
@@ -5,8 +5,9 @@ from nose.tools import eq_, ok_
def
test_firmware_cpio
():
'''
Test: Open firmware.cpio, scan for signatures
verify that all (and only) expected signatures are detected
Test: Open firmware.cpio, scan for signatures.
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-vectors"
,
...
...
This diff is collapsed.
Click to expand it.
testing/tests/test_firmware_gzip.py
View file @
61feffee
...
...
@@ -5,8 +5,8 @@ from nose.tools import eq_, ok_
def
test_firmware_gzip
():
'''
Test: Open firmware.gzip, scan for signatures
verify that all (and only) expected signatures are detected
Test: Open firmware.gzip, scan for signatures
.
Verify that only one gzip signature was detected.
'''
input_vector_file
=
os
.
path
.
join
(
os
.
path
.
dirname
(
__file__
),
"input-vectors"
,
...
...
This diff is collapsed.
Click to expand it.
testing/tests/test_firmware_jffs2.py
View file @
61feffee
...
...
@@ -5,8 +5,9 @@ from nose.tools import eq_, ok_
def
test_firmware_jffs2
():
'''
Test: Open firmware.jffs2, scan for signatures
verify that all (and only) expected signatures are detected
Test: Open firmware.jffs2, scan for signatures.
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-vectors"
,
...
...
@@ -19,8 +20,8 @@ def test_firmware_jffs2():
# Test number of modules used
eq_
(
len
(
scan_result
),
1
)
# Test number of results for that module
ok_
(
len
(
scan_result
[
0
]
.
results
)
>
0
)
# Test number of results for that module
, should be more than one
ok_
(
len
(
scan_result
[
0
]
.
results
)
>
1
)
first_result
=
scan_result
[
0
]
.
results
[
0
]
...
...
This diff is collapsed.
Click to expand it.
testing/tests/test_firmware_squashfs.py
View file @
61feffee
...
...
@@ -5,8 +5,9 @@ from nose.tools import eq_, ok_
def
test_firmware_squashfs
():
'''
Test: Open firmware.squashfs, scan for signatures
verify that all (and only) expected signatures are detected
Test: Open firmware.squashfs, scan for signatures.
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-vectors"
,
...
...
This diff is collapsed.
Click to expand it.
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment