chiark / gitweb /
Test suite: import-nonnative: Enhanced and finished
authorIan Jackson <ijackson@chiark.greenend.org.uk>
Sat, 8 Oct 2016 19:21:35 +0000 (20:21 +0100)
committerIan Jackson <ijackson@chiark.greenend.org.uk>
Sat, 8 Oct 2016 22:05:47 +0000 (23:05 +0100)
Use t-git-next-date.  (Our GIT_AUTHOR_DATE settings were wrong and
therefore ineffective.)

Add a 1.0 with diff test.  Add some comments about package format.

Now the test is finished.

Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
debian/tests/control
tests/tests/import-nonnative [moved from tests/tests/import-quilt with 85% similarity]

index 11390299f406020c5805daf693cf8186f84a4daf..4b0afe606bf4f3c4a092a12da8584df6af8948e7 100644 (file)
@@ -21,7 +21,7 @@ Tests-Directory: tests/tests
 Depends: dgit, dgit-infrastructure, devscripts
 Restrictions: x-dgit-git-only
 
-Tests: build-modes build-modes-asplit build-modes-gbp-asplit clone-gitnosuite clone-nogit debpolicy-dbretry debpolicy-newreject debpolicy-quilt-gbp distropatches-reject drs-clone-nogit drs-push-masterupdate drs-push-rejects dsd-clone-nogit dsd-divert fetch-localgitonly fetch-somegit-notlast import-native import-quilt inarchivecopy newtag-clone-nogit oldnewtagalt oldtag-clone-nogit overwrite-chkclog overwrite-version push-buildproductsdir push-newpackage push-nextdgit quilt quilt-gbp quilt-gbp-build-modes quilt-singlepatch quilt-splitbrains rpush tag-updates test-list-uptodate trustingpolicy-replay
+Tests: build-modes build-modes-asplit build-modes-gbp-asplit clone-gitnosuite clone-nogit debpolicy-dbretry debpolicy-newreject debpolicy-quilt-gbp distropatches-reject drs-clone-nogit drs-push-masterupdate drs-push-rejects dsd-clone-nogit dsd-divert fetch-localgitonly fetch-somegit-notlast import-native import-nonnative inarchivecopy newtag-clone-nogit oldnewtagalt oldtag-clone-nogit overwrite-chkclog overwrite-version push-buildproductsdir push-newpackage push-nextdgit quilt quilt-gbp quilt-gbp-build-modes quilt-singlepatch quilt-splitbrains rpush tag-updates test-list-uptodate trustingpolicy-replay
 Tests-Directory: tests/tests
 Depends: dgit, dgit-infrastructure, devscripts
 
similarity index 85%
rename from tests/tests/import-quilt
rename to tests/tests/import-nonnative
index 08ea866cf240fc57c130668b29568f7aab80a812..98076f066d7ea44fdff11b7c01b64a766c032f24 100755 (executable)
@@ -12,8 +12,6 @@ chk () {
        t-git-none
        t-dgit --no-rm-on-error clone $p
 
-       echo xxx do some basic checks
-
        # And now we make an update using the same orig tarball, and
        # check that the orig import is stable.
 
@@ -43,8 +41,9 @@ chk () {
 
        git branch first-2nd-import remotes/dgit/dgit/sid
 
-       export GIT_AUTHOR_DATE=1475947851
-       export GIT_COMMITTER_DATE=1475947851
+       t-git-next-date
+
+       git update-ref refs/remotes/dgit/dgit/sid first-import
 
        t-dgit fetch
 
@@ -67,8 +66,13 @@ chk () {
        cd ..
 }
 
+# 1.0 with diff
+chk pari-extra 3-1
+
+# 3.0 (quilt), multiple patches, multiple origs
 chk example 1.0-1
 
+# 3.0 (quilt), single-debian-patch, one orig
 chk sunxi-tools 1.2-2.~~dgittest
 
-echo xxx need more.
+echo done.