Add apk.embedded_1.apk test

This commit is contained in:
Jochen Sprickerhof 2022-04-29 14:35:36 +02:00 committed by Hans-Christoph Steiner
parent 9eaab6050e
commit 94ccd022c4
3 changed files with 7 additions and 0 deletions

View File

@ -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

BIN
tests/apk.embedded_1.apk Normal file

Binary file not shown.

View File

@ -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"""