~ubuntu-branches/ubuntu/utopic/devscripts/utopic

« back to all changes in this revision

Viewing changes to test/test_uscan

  • Committer: Package Import Robot
  • Author(s): James McCoy, Benjamin Drung, Guillem Jover, Paul Wise, James McCoy, Christoph Berg, Ron Lee, David Prévot
  • Date: 2014-08-04 22:34:17 UTC
  • mfrom: (10.10.12 sid)
  • Revision ID: package-import@ubuntu.com-20140804223417-jzo8pb55dujbihud
Tags: 2.14.6
[ Benjamin Drung ]
* suspicious-source: Add image/tiff, application/pgp-keys, and image/x-icon
  to whitelisted mime-types. Add .gmo to whitelisted file extensions.
* wrap-and-sort: Add --max-line-length option with a default of 79 characters
  (it was previously hard-coded to 80 characters).  (Closes: #756067)

[ Guillem Jover ]
* nmudiff: Send control messages inline.  (Closes: #752152)

[ Paul Wise ]
* rmadison: bpo madison is dead, remove it
* rmadison: add new to the defaults for Debian
* rmadison: document the defaults in the manual page

[ James McCoy ]
* namecheck: Remove berlios, since it no longer hosts code.  (Closes:
  #752382)
* mk-build-deps:
  + Provide the package name, not file name, to “dpkg --remove” when package
    install fails.
  + Read all of the output from “apt-cache showsrc” to ensure mk-build-deps
    doesn't get stuck waiting for apt-cache to exit.
  + Pass the name of the .deb file out of build_equiv to ensure the correct
    .deb is installed.  (Closes: #753657)

[ Christoph Berg ]
* Update all qa.debian.org URLs to https://.

[ Ron Lee ]
* cowpoke:
  + Allow more flexibility for specialised build chroots.
    It's now possible to specify arbitrary 'dist' names, with arbitrary
    special configurations on top of the real BASE_DIST suite.  This means
    it's easy to have things like a chroot for wheezy-backports which will
    be able to pull other deps from the backports repo, while still having
    a pristine wheezy build chroot on the same build host.  Or to have a
    staging chroot for unstable, with extra build deps pulled in from a
    local repository, or installed manually, while still having a pristine
    sid chroot for building other packages to upload.  And it all works the
    same as normal, you just pass --dist=wheezy_bpo to select the chroot.
  + Allow SIGN_KEYID and UPLOAD_QUEUE to be overridden per arch/dist.
    This makes a lot more sense now that the above is easily possible.
    People can use that for private or work (in progress) builds too, and
    this can reduce the chance of accidentally uploading to the wrong place,
    or signing some package not intended for upload with a key that would
    would let it be accepted by dak.
  + Better handling of --debbuildopts.  There were some corner cases for
    this where the required quoting of options could be rather weird in the
    intersection of all the layers it might get passed through. This should
    make it more forgiving and better able to always DTRT.

[ David Prévot ]
* uscan.1: Use +dfsg suffix in examples

Show diffs side-by-side

added added

removed removed

Lines of Context:
253
253
 
254
254
}
255
255
 
 
256
# the same, but run from a separate directory
 
257
testFileExclusionSeparateDir() {
 
258
 
 
259
    PKG=foo
 
260
    PORT=8000
 
261
    TMPDIR=$(mktemp -d)
 
262
 
 
263
    (
 
264
      cd $TMPDIR
 
265
      helperCreateRepo
 
266
      cd repo
 
267
      tar cfz $PKG-1.tar.gz * .hidden
 
268
      python -m SimpleHTTPServer $PORT &
 
269
      echo $! > pid )
 
270
 
 
271
    mkdir $TMPDIR/otherdir
 
272
    (
 
273
        cd $TMPDIR/otherdir; $COMMAND --package $PKG --force-download --upstream-version 1 --watchfile ../$PKG/debian/watch --copyright-file ../$PKG/debian/copyright
 
274
   )
 
275
 
 
276
    TARBALL=${PKG}_1.orig.tar.gz
 
277
    assertTrue 'downloaded tarfile not present' "[ -f $TMPDIR/${PKG}-1.tar.gz ]"
 
278
    assertTrue 'pristine tarball is not created' "[ -f $TMPDIR/$TARBALL ]"
 
279
    assertFalse 'pristine tarball is a symlink (nothing repacked?)' "[ -L $TMPDIR/$TARBALL ]"
 
280
    assertNotNull 'pristine tarball is not gzip-compressed' \
 
281
                  "$( file $TMPDIR/$TARBALL | grep 'gzip compressed data' )"
 
282
    CONTENTS="$(tar atf $TMPDIR/$TARBALL)"
 
283
 
 
284
    helperTestContent
 
285
 
 
286
    cleanup
 
287
 
 
288
}
 
289
 
256
290
# The same, for a zip file that is being repacked
257
291
 
258
292
testFileExclusionZipToTar() {