mirror of
				https://github.com/f-droid/fdroidserver.git
				synced 2025-11-04 06:30:27 +03:00 
			
		
		
		
	Add apk.embedded_1.apk test
This commit is contained in:
		
							parent
							
								
									9eaab6050e
								
							
						
					
					
						commit
						94ccd022c4
					
				
					 3 changed files with 7 additions and 0 deletions
				
			
		| 
						 | 
				
			
			@ -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
									
								
							
							
						
						
									
										
											BIN
										
									
								
								tests/apk.embedded_1.apk
									
										
									
									
									
										Normal file
									
								
							
										
											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…
	
	Add table
		Add a link
		
	
		Reference in a new issue