mirror of
				https://github.com/f-droid/fdroidserver.git
				synced 2025-11-04 06:30:27 +03:00 
			
		
		
		
	test for original "v0" index XML compatibility
The original index.xml format needs to stay around for backwards compatibility, but we shouldn't touch it anymore once the new format is in place. This is a test to make sure `fdroid update` can still generate the correct XML. install_list and uninstall_list should be tuples or lists in order to ensure that the order is preserved. These tests also check that the added and lastupdated dates are working correct, based on the dates in tests/stats/known_apks.txt. I could see no useful way to test the timestamp, it is just hardcoded using a regexp search-and-replace. Running these tests manually might require deleting tmp/apkcache.
This commit is contained in:
		
							parent
							
								
									327ba335a7
								
							
						
					
					
						commit
						56ef716a4e
					
				
					 8 changed files with 236 additions and 13 deletions
				
			
		
							
								
								
									
										10
									
								
								.gitignore
									
										
									
									
										vendored
									
									
								
							
							
						
						
									
										10
									
								
								.gitignore
									
										
									
									
										vendored
									
									
								
							| 
						 | 
				
			
			@ -4,6 +4,7 @@
 | 
			
		|||
*.pyc
 | 
			
		||||
*.class
 | 
			
		||||
*.box
 | 
			
		||||
TAGS
 | 
			
		||||
 | 
			
		||||
# files generated by build
 | 
			
		||||
build/
 | 
			
		||||
| 
						 | 
				
			
			@ -17,6 +18,7 @@ docs/html/
 | 
			
		|||
# files generated by tests
 | 
			
		||||
tmp/
 | 
			
		||||
/tests/repo/icons*
 | 
			
		||||
/tests/repo/latestapps.dat
 | 
			
		||||
 | 
			
		||||
# files used in manual testing
 | 
			
		||||
/config.py
 | 
			
		||||
| 
						 | 
				
			
			@ -26,10 +28,14 @@ tmp/
 | 
			
		|||
makebuildserver.config.py
 | 
			
		||||
/tests/.fdroid.keypass.txt
 | 
			
		||||
/tests/.fdroid.keystorepass.txt
 | 
			
		||||
/tests/config.py
 | 
			
		||||
/tests/fdroid-icon.png
 | 
			
		||||
/tests/keystore.jks
 | 
			
		||||
/tests/OBBMainOldVersion.apk
 | 
			
		||||
/tests/OBBMainPatchCurrent.apk
 | 
			
		||||
/tests/OBBMainTwoVersions.apk
 | 
			
		||||
/tests/archive/categories.txt
 | 
			
		||||
/tests/archive/icons*
 | 
			
		||||
/tests/archive/index.jar
 | 
			
		||||
/tests/archive/index.xml
 | 
			
		||||
/tests/repo/index.jar
 | 
			
		||||
/tests/urzip-πÇÇπÇÇ现代汉语通用字-български-عربي1234.apk
 | 
			
		||||
/unsigned/
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue