diff options
author | Axel Beckert <abe@debian.org> | 2016-11-09 01:26:57 +0100 |
---|---|---|
committer | Josue Ortega <josue@debian.org> | 2019-04-13 14:34:07 -0600 |
commit | 1352b2fb942febad68b8ae6f01a2cd56194feb75 (patch) | |
tree | 74f25c2d888e66aead754c327dfafcabc2058040 /run-tests |
Import Debian version 1.0.10+nmu1
debtree (1.0.10+nmu1) unstable; urgency=medium
* Non-maintainer upload.
* Remove override_dh_builddeb to no more build with deprecated bzip2
compression. (Closes: #833242)
* Guard …."\E" with "no warnings qw(misc);" (Closes: #823279)
* Fix typo in man page found by lintian.
debtree (1.0.10) unstable; urgency=low
[ Thorsten Alteholz ]
* [6781a55f] show the size of all packages that depend on a given package
[ Anibal Monsalve Salazar ]
* [f2b58fdf] Add multiarch-support to skiplist
Thanks to Fabian Greffrath for the suggestion
Closes: #659223
debtree (1.0.9) unstable; urgency=low
* Really fix typo in debtree.1
debtree (1.0.8) unstable; urgency=low
* Fix typo in debtree.1
Patch by Jonas Genannt
Closes: #650431
debtree (1.0.7) unstable; urgency=low
* Add python2.6 and python2.7 to endlist
Patch by Jakub Wilk
Closes: #616173
* Fix out-of-date-standards-version
* Fix maintainer-script-without-set-e
* Fix debhelper-overrides-need-versioned-build-depends
* Debian source format is 3.0 (native)
debtree (1.0.6) unstable; urgency=low
[ Frans Pop ]
* Fix typos in man page; thanks to A. Costa for the patch. Closes: #573818.
* Disable pattern meta characters for package names in regular expressions.
Closes: #574647.
[ Anibal Monsalve Salazar ]
* New maintainer. Frans, we'll miss you.
debtree (1.0.5) unstable; urgency=low
* Remove ucf-handled config files on purge. With thanks to piuparts testing.
debtree (1.0.4) unstable; urgency=low
* Take the highest available version for source packages as well.
* Only use the installed version of a package if the --show-installed option
is active; otherwise always use the highest available version.
* Document which version of packages will be used in the man page.
* Move debtree web site to http://collab-maint.alioth.debian.org/debtree/.
debtree (1.0.3) unstable; urgency=low
* Take the highest available version for uninstalled packages instead of the
lowest. Thanks to Thomas Wentzel for the report and patch. Closes: #554719.
* Add a few more X.Org-related packages to the end list.
debtree (1.0.2) unstable; urgency=low
* Selectively use AptPkg for build dependencies. AptPkg will return the
correct build dependencies for the current or a selected architecture,
but cannot return the architecture conditions themselves. Therefore use
AptPkg for all cases except for ARCH=all. For that case continue to call
out to apt-cache.
* Add hurd-i386, kfreebsd-i386, kfreebsd-amd64 as valid architectures.
* Make debtree work for any locale. Closes: #547388.
debtree (1.0.1) unstable; urgency=low
* Fix perl error if package has no dependencies at all.
* Add gksu to the end list.
debtree (1.0) unstable; urgency=low
* Change packaging to use the magic 'dh' command.
* Upload to the Debian archive. Closes: #447158. Yay!
[ Changes in unofficial release 0.9.9 - Wed, 16 Sep 2009 13:35:58 +0200 ]
* Complete conversion to perl by using libapt-pkg-perl instead of call-outs
to dctrl-tools, except for getting build dependencies as libapt-pkg-perl
does not expose architecture conditions (#546863).
[ Changes in unofficial release 0.9.0 - Mon, 14 Sep 2009 19:56:12 +0200 ]
* Remove support for printing dependency paths. It only duplicates
functionality offered better by 'aptitude why'.
* First stage of conversion to perl. Script is now written in perl, but
still calls out to external dctrl-tools to get dependency info.
* Show other providers for any virtual packages provided by the requested
package.
* Show order of dependencies on virtual packages by numbering the arrows.
[ Changes in unofficial release 0.8.1 - Sat, 12 Sep 2009 17:56:27 +0200 ]
* Update script version and copyright in script.
* Move git repository to collab-maint on alioth.
[ Changes in unofficial release 0.8.0 - Sat, 12 Sep 2009 16:01:49 +0200 ]
* Add support for showing reverse dependencies in graphs.
* Fix incomplete display of skipped packages (only first was shown).
[ Changes in unofficial release 0.7.3 - Sun, 06 Sep 2009 11:24:50 +0200 ]
* debian/control: add Vcs-Git field.
* Fix a few corner cases where provides and alternatives were not displayed
correctly for skip or end packages. There's a minor change in the way
alternatives containing skipped packages are displayed.
* Extend endlist and update for lenny/squeeze.
[ Changes in unofficial release 0.7.2 - Wed, 24 Oct 2007 16:23:34 +0200 ]
* Fix informational message listing skipped packages.
* Don't show packages that provide a pseudo package if they are in the skip
list.
* Show pseudo packages provided by the requested package in dependency
graphs (not in build dependency graphs).
* Show multiple providing packages for a virtual package if there are less
than a certain number (default 3); dependencies for the providing packages
are not shown.
* Add common build dependencies to end list.
* Add some development/packaging related packages to skip and end lists;
prompted by build dep graph for asterisk.
[ Changes in unofficial release 0.7.1 - Thu, 18 Oct 2007 15:41:11 +0200 ]
* Print info message with skipped dependencies after generating graph.
* Split ToDo items out of script into separate file.
* Add man page.
[ Changes in unofficial release 0.7.0 - Tue, 02 Oct 2007 19:24:38 +0200 ]
* Don't print graph elements for unknown packages when showing dependency
paths.
* Move the 'skip' and 'end' lists to configuration files using ucf to
manage them. The user can install overrides in ~/.debtree.
* Add logging functions to unclutter script.
* Add new option max-depth which makes it possible to reduce the size and
complexity of a graph by maximizing the number of times debtree will
recurse into the next level of dependencies.
[ Changes in unofficial release 0.6.0 - Sun, 30 Sep 2007 14:58:37 +0200 ]
* Add support for generating build dependency graphs. By default a graph for
the current architecture is generated.
* Add new option no-conflicts; useful for build dependency graphs.
* Add new option no-skip. This allows packages that by default are skipped
(not included at all) to be shown as "end" packages.
* Add new option show-all. This results in the full dependency tree to be
generated. The dependencies for every package are expanded and no packages
are skipped.
* Add new option show-installed. Installed packages are marked with a
different color ('honeydew'). For satisfied alternative dependencies only
installed alternative packages are installed.
* Mark unknown packages with a different color ('oldlace'). This can only
be done for packages that are not part of an alternatives set; for those
that are, a warning is printed.
* For leaf pseudo packages we need to check if they were members of
alternative dependencies to avoid stray nodes in a graph (seen with
geneweb).
* Introduce verbosity options and rationalize messages and error handling.
* Add sanity check for presence of dctrl-tools scripts.
Thanks to Maximilian Attems for the suggestion.
[ Changes in unofficial release 0.5.0 - Fri, 28 Sep 2007 06:28:30 +0200 ]
* Initial unofficial release.
Diffstat (limited to 'run-tests')
-rwxr-xr-x | run-tests | 131 |
1 files changed, 131 insertions, 0 deletions
diff --git a/run-tests b/run-tests new file mode 100755 index 0000000..d18ac9d --- /dev/null +++ b/run-tests @@ -0,0 +1,131 @@ +#! /bin/bash +set -e + +verbose="-q" +screen="" +web="" +test="" +target="" + +while true; do + case "$1" in + "") break ;; + -s) screen=1 ;; + -t) shift; test=$1 ;; + -v) verbose="-v -v -v -v" ;; + -w) web=1 ;; + -*) + echo "Error: unrecognized argument '$1'" + exit 1 + ;; + *) + if [ -z "$target" ]; then + target=$1 + else + echo "Error: invalid number of arguments" + exit 1 + fi + ;; + esac + shift +done + +if [ -z "$screen" ]; then + if [ -z "$target" ]; then + echo "Error: target directory not specified" + exit 1 + fi + + mkdir -p $target + if [ "$web" ]; then + mkdir -p $target/thumbs + else + arch=$(dpkg --print-architecture) + dist=$(apt-cache policy | \ + sed -r "/^ [0-9]+ /N; s/^ ([0-9]+) .*a=([^,]*).*/\1 \2/" | \ + grep "^[0-9]" | sort -nru | head -n1 | awk '{print $2}') + if [ -z "$test" ]; then + echo "Testset generated $(date -uR) on $arch/$dist" >$target/README + fi + fi +fi + +gen_set() { + count=1 + for opt in "--no-versions --no-alternatives --no-recommends" \ + "--no-versions --no-alternatives" \ + "--no-versions --no-alternatives --with-suggests" \ + "--no-versions" \ + "" \ + "--with-suggests" \ + "--with-suggests --versioned-conflicts" \ + "--rotate" + do + echo $1$count $1 $opt + count=$(($count + 1)) + done +} + +testset="dpkg dpkg +$(gen_set debconf) +$(gen_set aptitude) +usage1 dpkg -b --arch=all --no-recommends --no-conflicts +usage2 clamav -I -S +usage3.1 pidentd --max-providers=5 +usage3.2 pidentd -I +usage4 apt -I --rdeps-depth=3" + +if [ -z "$web" ]; then +testset="$testset +test1 tcpd --no-conflicts -I --rdeps-depth=2 --max-rdeps=3 +test2 libcairo2 --no-conflicts -I --rdeps-depth=20 +test3 debian-installer -b --arch=armel --no-recommends --no-conflicts +test4 whiptail -R" +fi + +echo "$testset" | while read outfile package opts; do + if [ "$test" ] && [ $outfile != $test ]; then + continue + fi + + echo "Generating $outfile: $opts $package" >&2 + if [ "$screen" ]; then + ./debtree $verbose $opts $package | dot -Tps | kghostview - & + sleep 10 + else + ./debtree $verbose $opts $package >$target/$outfile.dot + if [ "$web" ]; then + for format in ps png svg; do + dot -T$format -o "$target/$outfile.$format" \ + $target/$outfile.dot + done + # Generate thumbnail; from SVG gives best quality + convert $target/$outfile.svg -thumbnail 400 \ + $target/thumbs/$outfile.png + + # For dpkg we only need the thumbnail + rm -f $target/dpkg.* + # The following files are not wanted for the website + # because of size restraints + rm -f $target/aptitude[5678].png + rm -f $target/debconf[678].png + rm -f $target/usage[124].png + rm -f $target/usage3.[12].png + fi + fi +done + +# Also generate the comparison graphs from apt-cache +if [ "$web" ]; then + for package in debconf aptitude; do + outfile=${package}0 + apt-cache dotty $package >$target/$outfile.dot + for format in ps png svg; do + dot -T$format -o "$target/$outfile.$format" \ + $target/$outfile.dot + done + # Generate thumbnail; from SVG gives best quality + convert $target/$outfile.svg -thumbnail 400 \ + $target/thumbs/$outfile.png + done +fi |