소스 검색

add gzip test and todo

Michael Vogt 12 년 전
부모
커밋
67f2f9e2ed
2개의 변경된 파일14개의 추가작업 그리고 2개의 파일을 삭제
  1. 4 0
      test/integration/test-apt-update-rollback
  2. 10 2
      test/integration/test-hashsum-verification

+ 4 - 0
test/integration/test-apt-update-rollback

@@ -185,6 +185,10 @@ APTARCHIVE_LISTS="$(echo $APTARCHIVE | tr "/" "_" )"
 # going from Release/Release.gpg -> InRelease and vice versa
 # - unauthenticated -> invalid InRelease
 
+# stuff to do:
+# - ims-hit 
+# - gzip-index tests
+
 test_inrelease_to_new_inrelease
 test_inrelease_to_broken_hash_reverts_all
 test_inreleae_to_valid_release

+ 10 - 2
test/integration/test-hashsum-verification

@@ -75,5 +75,13 @@ runtest() {
 
 }
 
-runtest
-
+for COMPRESSEDINDEXES in 'false' 'true'; do
+       echo "Acquire::GzipIndexes \"$COMPRESSEDINDEXES\";" > rootdir/etc/apt/apt.conf.d/compressindexes
+       if $COMPRESSEDINDEXES; then
+               msgmsg 'Run tests with GzipIndexes enabled'
+       else
+               msgmsg 'Run tests with GzipIndexes disabled'
+       fi
+ 
+        runtest
+done