mirror of
				https://github.com/f-droid/fdroidserver.git
				synced 2025-11-04 06:30:27 +03:00 
			
		
		
		
	test: make sure fdroid update -c creates a full index.xml
				
					
				
			Previously, `fdroid update -c` would only create the new metadata, but would not add the new apps/apks to the repo. That required a second run of `fdroid update`. This has been fixes, so this test makes sure it stays fixed, in a very generic way.
This commit is contained in:
		
							parent
							
								
									bc8ad37249
								
							
						
					
					
						commit
						ed7a0576c2
					
				
					 1 changed files with 8 additions and 8 deletions
				
			
		| 
						 | 
				
			
			@ -51,8 +51,8 @@ REPOROOT=`create_test_dir`
 | 
			
		|||
cd $REPOROOT
 | 
			
		||||
$fdroid init
 | 
			
		||||
copy_apks_into_repo $REPOROOT
 | 
			
		||||
$fdroid update -c
 | 
			
		||||
$fdroid update
 | 
			
		||||
$fdroid update --createmeta
 | 
			
		||||
grep -F '<application id=' repo/index.xml
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
#------------------------------------------------------------------------------#
 | 
			
		||||
| 
						 | 
				
			
			@ -138,8 +138,8 @@ cd $REPOROOT
 | 
			
		|||
$fdroid init --keystore $KEYSTORE --android-home $FAKE_ANDROID_HOME --no-prompt
 | 
			
		||||
test -e $KEYSTORE
 | 
			
		||||
copy_apks_into_repo $REPOROOT
 | 
			
		||||
$fdroid update -c
 | 
			
		||||
$fdroid update
 | 
			
		||||
$fdroid update --createmeta
 | 
			
		||||
grep -F '<application id=' repo/index.xml
 | 
			
		||||
test -e repo/index.xml
 | 
			
		||||
test -e repo/index.jar
 | 
			
		||||
export ANDROID_HOME=$STORED_ANDROID_HOME
 | 
			
		||||
| 
						 | 
				
			
			@ -153,8 +153,8 @@ cd $REPOROOT
 | 
			
		|||
mkdir repo
 | 
			
		||||
copy_apks_into_repo $REPOROOT
 | 
			
		||||
$fdroid init
 | 
			
		||||
$fdroid update -c
 | 
			
		||||
$fdroid update
 | 
			
		||||
$fdroid update --createmeta
 | 
			
		||||
grep -F '<application id=' repo/index.xml
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
#------------------------------------------------------------------------------#
 | 
			
		||||
| 
						 | 
				
			
			@ -166,10 +166,10 @@ cd $REPOROOT
 | 
			
		|||
$fdroid init --keystore $KEYSTORE
 | 
			
		||||
test -e $KEYSTORE
 | 
			
		||||
copy_apks_into_repo $REPOROOT
 | 
			
		||||
$fdroid update -c
 | 
			
		||||
$fdroid update
 | 
			
		||||
$fdroid update --createmeta
 | 
			
		||||
test -e repo/index.xml
 | 
			
		||||
test -e repo/index.jar
 | 
			
		||||
grep -F '<application id=' repo/index.xml
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
#------------------------------------------------------------------------------#
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue