diff options
author | Timo Teräs <timo.teras@iki.fi> | 2012-02-24 08:42:40 +0200 |
---|---|---|
committer | Timo Teräs <timo.teras@iki.fi> | 2012-02-24 08:42:40 +0200 |
commit | 4676c5d63ac70f4bf2c4e4c945a7fa65941676e9 (patch) | |
tree | 95cd25767adde7eb9f07240e22f8859984075bb7 /test | |
parent | 1bb2fa7862bb896f1cfefca5bb9f1d0b477f49a5 (diff) | |
download | apk-tools-4676c5d63ac70f4bf2c4e4c945a7fa65941676e9.tar.gz apk-tools-4676c5d63ac70f4bf2c4e4c945a7fa65941676e9.tar.bz2 apk-tools-4676c5d63ac70f4bf2c4e4c945a7fa65941676e9.tar.xz apk-tools-4676c5d63ac70f4bf2c4e4c945a7fa65941676e9.zip |
test: improve pinning tests
Diffstat (limited to 'test')
-rw-r--r-- | test/pinning.installed | 22 | ||||
-rw-r--r-- | test/pinning.repo2 | 20 | ||||
-rw-r--r-- | test/pinning1.test | 2 | ||||
-rw-r--r-- | test/pinning2.test | 2 | ||||
-rw-r--r-- | test/pinning3.test | 2 | ||||
-rw-r--r-- | test/pinning4.test | 2 | ||||
-rw-r--r-- | test/pinning5.test | 9 | ||||
-rw-r--r-- | test/pinning6.test | 11 | ||||
-rw-r--r-- | test/pinning7.test | 11 |
9 files changed, 77 insertions, 4 deletions
diff --git a/test/pinning.installed b/test/pinning.installed new file mode 100644 index 0000000..8fb45e7 --- /dev/null +++ b/test/pinning.installed @@ -0,0 +1,22 @@ +C:Q1eVpkasfqZAukAXFYbgwt4xffZWU= +P:a +V:3 +S:1 +I:1 +D:b +p:testing + +C:Q1hdUpqRv5mYgJEqW52UmVsv23ysE= +P:b +V:3 +S:1 +I:1 + +C:Q1eVpkasfqZAukAXFYbg324xAt4WU= +P:c +V:3 +S:1 +I:1 +D:a>=3 +p:testing + diff --git a/test/pinning.repo2 b/test/pinning.repo2 new file mode 100644 index 0000000..45c5114 --- /dev/null +++ b/test/pinning.repo2 @@ -0,0 +1,20 @@ +C:Q1eVpkasfqZAukfffYbgwt4xffZWU= +P:a +V:3.1 +S:1 +I:1 +D:b + +C:Q1hdUpqRv5mYgJEqff2UmVsv23ysE= +P:b +V:3.1 +S:1 +I:1 + +C:Q1eVpkasfqZAukAffYsd324xAt4WU= +P:c +V:3.1 +S:1 +I:1 +D:a>=3 + diff --git a/test/pinning1.test b/test/pinning1.test index 311fa3f..3416cac 100644 --- a/test/pinning1.test +++ b/test/pinning1.test @@ -1,6 +1,6 @@ @ARGS --test-repo basic.repo ---test-repo +pinning.repo +--test-repo testing:pinning.repo add a @EXPECT (1/2) Installing b (2) diff --git a/test/pinning2.test b/test/pinning2.test index c655143..aa40250 100644 --- a/test/pinning2.test +++ b/test/pinning2.test @@ -1,6 +1,6 @@ @ARGS --test-repo basic.repo ---test-repo +pinning.repo +--test-repo testing:pinning.repo add a@testing @EXPECT (1/2) Installing b (2) diff --git a/test/pinning3.test b/test/pinning3.test index 60e073f..c5666cc 100644 --- a/test/pinning3.test +++ b/test/pinning3.test @@ -1,6 +1,6 @@ @ARGS --test-repo basic.repo ---test-repo +pinning.repo +--test-repo testing:pinning.repo add a@testing b@testing @EXPECT (1/2) Installing b@testing (3) diff --git a/test/pinning4.test b/test/pinning4.test index 80348f7..49a852f 100644 --- a/test/pinning4.test +++ b/test/pinning4.test @@ -1,6 +1,6 @@ @ARGS --test-repo basic.repo ---test-repo +pinning.repo +--test-repo testing:pinning.repo add c@testing @EXPECT (1/3) Installing b (2) diff --git a/test/pinning5.test b/test/pinning5.test new file mode 100644 index 0000000..17e58d0 --- /dev/null +++ b/test/pinning5.test @@ -0,0 +1,9 @@ +@ARGS +--test-repo basic.repo +--test-repo testing:pinning.repo +--test-repo testing:pinning.repo2 +--test-instdb pinning.installed +--test-world "c@testing" +add +@EXPECT +OK: 0 MiB in 3 packages diff --git a/test/pinning6.test b/test/pinning6.test new file mode 100644 index 0000000..5416c77 --- /dev/null +++ b/test/pinning6.test @@ -0,0 +1,11 @@ +@ARGS +--test-repo basic.repo +--test-repo testing:pinning.repo +--test-repo testing:pinning.repo2 +--test-instdb pinning.installed +--test-world "c@testing" +upgrade +@EXPECT +(1/2) Upgrading a@testing (3 -> 3.1) +(2/2) Upgrading c@testing (3 -> 3.1) +OK: 0 MiB in 3 packages diff --git a/test/pinning7.test b/test/pinning7.test new file mode 100644 index 0000000..42a3570 --- /dev/null +++ b/test/pinning7.test @@ -0,0 +1,11 @@ +@ARGS +--test-repo basic.repo +--test-repo testing:pinning.repo +--test-repo testing2:pinning.repo +--test-instdb pinning.installed +--test-world "c@testing" +add c@testing2 +@EXPECT +(1/2) Updating pinning a@testing2 (3) +(2/2) Updating pinning c@testing2 (3) +OK: 0 MiB in 3 packages |