mirror of
				https://github.com/f-droid/fdroidserver.git
				synced 2025-11-04 06:30:27 +03:00 
			
		
		
		
	tests: try fdroid update after adding an APK to an existing repo
				
					
				
			Yes, this includes a binary file, but it is only for the tests, and it is free software since I wrote it. The source is here: https://github.com/eighthave/urzip
This commit is contained in:
		
							parent
							
								
									ed7a0576c2
								
							
						
					
					
						commit
						0e2f4d54d0
					
				
					 2 changed files with 20 additions and 0 deletions
				
			
		| 
						 | 
				
			
			@ -172,6 +172,26 @@ test -e repo/index.jar
 | 
			
		|||
grep -F '<application id=' repo/index.xml
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
#------------------------------------------------------------------------------#
 | 
			
		||||
echo_header "setup a new repo from scratch, generate a keystore, then add APK and update"
 | 
			
		||||
 | 
			
		||||
REPOROOT=`create_test_dir`
 | 
			
		||||
KEYSTORE=$REPOROOT/keystore.jks
 | 
			
		||||
cd $REPOROOT
 | 
			
		||||
$fdroid init --keystore $KEYSTORE
 | 
			
		||||
test -e $KEYSTORE
 | 
			
		||||
copy_apks_into_repo $REPOROOT
 | 
			
		||||
$fdroid update --createmeta
 | 
			
		||||
test -e repo/index.xml
 | 
			
		||||
test -e repo/index.jar
 | 
			
		||||
grep -F '<application id=' repo/index.xml
 | 
			
		||||
cp $WORKSPACE/tests/urzip.apk $REPOROOT/
 | 
			
		||||
$fdroid update --createmeta
 | 
			
		||||
test -e repo/index.xml
 | 
			
		||||
test -e repo/index.jar
 | 
			
		||||
grep -F '<application id=' repo/index.xml
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
#------------------------------------------------------------------------------#
 | 
			
		||||
echo_header "setup a new repo from scratch with a HSM/smartcard"
 | 
			
		||||
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
							
								
								
									
										
											BIN
										
									
								
								tests/urzip.apk
									
										
									
									
									
										Normal file
									
								
							
							
						
						
									
										
											BIN
										
									
								
								tests/urzip.apk
									
										
									
									
									
										Normal file
									
								
							
										
											Binary file not shown.
										
									
								
							
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue