chiark / gitweb /
tests: drs-push-rejects: failing test for dm
authorIan Jackson <ijackson@chiark.greenend.org.uk>
Wed, 26 Feb 2014 19:17:31 +0000 (19:17 +0000)
committerIan Jackson <ijackson@chiark.greenend.org.uk>
Wed, 5 Mar 2014 18:29:08 +0000 (18:29 +0000)
tests/tests/drs-push-rejects
tests/worktrees/pari-extra_drs.tar

index 6098da79a0cd0da4a685dc1210d0fdeed5af5116..6bc9bff0b3b70f99a200d80df64dfd3fdba2cbca 100755 (executable)
@@ -32,7 +32,7 @@ prep () {
        cp $tmp/masters/* $tmp/.
        tag_signer='-u Senatus'
        tag_message="$p release $version for $suite ($csuite) [dgit]"
        cp $tmp/masters/* $tmp/.
        tag_signer='-u Senatus'
        tag_message="$p release $version for $suite ($csuite) [dgit]"
-       tag_name=debian/3-2_dummy1
+       tag_name=debian/$version
        push_spec1="HEAD:refs/dgit/$csuite"
        push_spec2="refs/tags/$tag_name"
        push_spec="$push_spec1 $push_spec2"
        push_spec1="HEAD:refs/dgit/$csuite"
        push_spec2="refs/tags/$tag_name"
        push_spec="$push_spec1 $push_spec2"
@@ -58,16 +58,21 @@ mustfail 'tag message not in expected format' $push_spec
 
 prep unstable sid
 mktag
 
 prep unstable sid
 mktag
-
 mustfail 'sid != sponge' HEAD:refs/dgit/sponge $push_spec2
 
 # fixme test --sig-policy-url string
 # fixme cannot test   reject "signature is not of type 00!";
 
 mustfail 'sid != sponge' HEAD:refs/dgit/sponge $push_spec2
 
 # fixme test --sig-policy-url string
 # fixme cannot test   reject "signature is not of type 00!";
 
-git push origin $push_spec
-
+prep unstable sid
+git push origin $push_spec # succeeds
 mktag
 mktag
-
 mustfail 'not replacing previously-pushed version' $push_spec
 
 mustfail 'not replacing previously-pushed version' $push_spec
 
+git checkout v2
+version=3-2_dummy2
+prep unstable sid
+tag_signer='-u Populus'
+mktag
+git push origin $push_spec # succeeds
+
 echo ok.
 echo ok.
index e56fc4f10f6e910d6a6af68f8c2eccbcc18f065f..10301789764928b4f2a45ba3e723f11983405449 100644 (file)
Binary files a/tests/worktrees/pari-extra_drs.tar and b/tests/worktrees/pari-extra_drs.tar differ