Add apk.embedded_1.apk test
This commit is contained in:
parent
9eaab6050e
commit
94ccd022c4
|
@ -42,6 +42,7 @@ include locale/zh_Hant/LC_MESSAGES/fdroidserver.po
|
|||
include makebuildserver
|
||||
include README.md
|
||||
include tests/androguard_test.py
|
||||
include tests/apk.embedded_1.apk
|
||||
include tests/bad-unicode-*.apk
|
||||
include tests/build.TestCase
|
||||
include tests/build-tools/17.0.0/aapt-output-com.moez.QKSMS_182.txt
|
||||
|
|
Binary file not shown.
|
@ -224,6 +224,12 @@ class ScannerTest(unittest.TestCase):
|
|||
fdroidserver.scanner.scan_binary(apkfile),
|
||||
'Did not find bad code signature in binary',
|
||||
)
|
||||
apkfile = os.path.join(self.basedir, 'apk.embedded_1.apk')
|
||||
self.assertEqual(
|
||||
1,
|
||||
fdroidserver.scanner.scan_binary(apkfile),
|
||||
'Did not find bad code signature in binary',
|
||||
)
|
||||
|
||||
def test_build_local_scanner(self):
|
||||
"""`fdroid build` calls scanner functions, test them here"""
|
||||
|
|
Loading…
Reference in New Issue