#!/bin/sh set -exu # we have to export PYTHONHASHSEED because otherwise networkx will create # content with random output order # https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=749710 # https://github.com/networkx/networkx/issues/1181 export PYTHONHASHSEED=0 # to make the sort order in the tests locale independent export LC_COLLATE=C.UTF-8 export LC_ALL=C.UTF-8 # because dose2html outputs utf8 on standard output export PYTHONIOENCODING=utf-8 rm -rf $AUTOPKGTEST_TMP/out $AUTOPKGTEST_TMP/tmp mkdir -p $AUTOPKGTEST_TMP/out mkdir -p $AUTOPKGTEST_TMP/tmp packages=tests/sid-amd64-packages-20160830T000000Z sources=tests/sid-sources-20160830T000000Z grep-dctrl --exact-match --field Package build-essential $packages \ | botch-latest-version - - > $AUTOPKGTEST_TMP/tmp/build-essential botch-bin2src --deb-native-arch=amd64 $AUTOPKGTEST_TMP/tmp/build-essential $sources \ > $AUTOPKGTEST_TMP/tmp/build-essential-src botch-create-graph --deb-native-arch=amd64 --bg $sources $packages $AUTOPKGTEST_TMP/tmp/build-essential-src \ > $AUTOPKGTEST_TMP/tmp/selfcontained_repo.xml botch-buildgraph2packages $AUTOPKGTEST_TMP/tmp/selfcontained_repo.xml $packages \ > $AUTOPKGTEST_TMP/tmp/packages botch-bin2src --deb-native-arch=amd64 $AUTOPKGTEST_TMP/tmp/packages $sources \ > $AUTOPKGTEST_TMP/tmp/sources # test botch-calcportsmetric botch-create-graph --deb-drop-b-d-indep --deb-native-arch=amd64 $AUTOPKGTEST_TMP/tmp/packages $AUTOPKGTEST_TMP/tmp/sources --strongtype > $AUTOPKGTEST_TMP/tmp/strongbuildgraph.xml botch-buildgraph2srcgraph $AUTOPKGTEST_TMP/tmp/strongbuildgraph.xml --deb-drop-b-d-indep --deb-native-arch=amd64 $AUTOPKGTEST_TMP/tmp/packages $AUTOPKGTEST_TMP/tmp/sources > $AUTOPKGTEST_TMP/tmp/strongsrcgraph.xml botch-create-graph --deb-drop-b-d-indep --deb-native-arch=amd64 $AUTOPKGTEST_TMP/tmp/packages $AUTOPKGTEST_TMP/tmp/sources --closuretype > $AUTOPKGTEST_TMP/tmp/closurebuildgraph.xml botch-buildgraph2srcgraph $AUTOPKGTEST_TMP/tmp/closurebuildgraph.xml --deb-drop-b-d-indep --deb-native-arch=amd64 $AUTOPKGTEST_TMP/tmp/packages $AUTOPKGTEST_TMP/tmp/sources > $AUTOPKGTEST_TMP/tmp/closuresrcgraph.xml botch-calcportsmetric $AUTOPKGTEST_TMP/tmp/strongsrcgraph.xml $AUTOPKGTEST_TMP/tmp/closuresrcgraph.xml > $AUTOPKGTEST_TMP/out/importance_metric.txt # test botch-multiarch-interpreter-problem dose-ceve --deb-drop-b-d-indep --deb-native-arch=amd64 -G pkg -T grml deb://$AUTOPKGTEST_TMP/tmp/packages debsrc://$AUTOPKGTEST_TMP/tmp/sources > $AUTOPKGTEST_TMP/tmp/ma_interpreter.xml botch-multiarch-interpreter-problem --packages $AUTOPKGTEST_TMP/tmp/packages $AUTOPKGTEST_TMP/tmp/ma_interpreter.xml > $AUTOPKGTEST_TMP/out/ma_interpreter.txt # test y-u-b-d-transitive-essential botch-y-u-b-d-transitive-essential --debug --verbose --tmp $AUTOPKGTEST_TMP/tmp --output=$AUTOPKGTEST_TMP/out amd64 $AUTOPKGTEST_TMP/tmp/packages $AUTOPKGTEST_TMP/tmp/sources acl rm $AUTOPKGTEST_TMP/out/acl_2.2.52-3_n20.svg # test botch-buildcheck-more-problems botch-buildcheck-more-problems --verbose --progress --checkonly=plasma-desktop,haskell-hledger-ui --deb-native-arch=amd64 --explain --failures $packages $sources > $AUTOPKGTEST_TMP/out/buildcheck.yaml || [ $? -eq 1 ] # test botch-buildcheck-more-problems cross because we want to be able # to check yaml output that contains a depchain with an implicit # dependency on a package that is Essential:yes (and thus there is no # "depends" field) botch-convert-arch amd64 armhf $AUTOPKGTEST_TMP/tmp/packages - | grep-dctrl -X \( --not -FArchitecture all --and --not -FMulti-Arch foreign \) > $AUTOPKGTEST_TMP/tmp/packages_armhf_noall_nomaforeign botch-buildcheck-more-problems --verbose --progress --checkonly=apache2,ant --deb-native-arch=amd64 --deb-host-arch=armhf --explain --failures $AUTOPKGTEST_TMP/tmp/packages_armhf_noall_nomaforeign tests/crossbuild-essential-armhf $AUTOPKGTEST_TMP/tmp/packages $AUTOPKGTEST_TMP/tmp/sources > $AUTOPKGTEST_TMP/out/buildcheck_cross.yaml || [ $? -eq 1 ] # test botch-distcheck-more-problems botch-distcheck-more-problems --verbose --progress --checkonly=task-kde-desktop:amd64,libghc-hledger-dev:amd64 --deb-native-arch=amd64 --explain --failures deb://$packages > $AUTOPKGTEST_TMP/out/distcheck.yaml || [ $? -eq 1 ] # test dose2html botch-dose2html --srcsdir=$AUTOPKGTEST_TMP/out --wwwroot=$AUTOPKGTEST_TMP/out/ --packages=$packages $AUTOPKGTEST_TMP/out/distcheck.yaml $AUTOPKGTEST_TMP/out/distcheck.html botch-dose2html --srcsdir=$AUTOPKGTEST_TMP/out --wwwroot=$AUTOPKGTEST_TMP/out/ --packages=$packages $AUTOPKGTEST_TMP/out/buildcheck.yaml $AUTOPKGTEST_TMP/out/buildcheck.html botch-dose2html --srcsdir=$AUTOPKGTEST_TMP/out --wwwroot=$AUTOPKGTEST_TMP/out/ --packages=$AUTOPKGTEST_TMP/tmp/packages_armhf_noall_nomaforeign --packages=tests/crossbuild-essential-armhf --packages=$AUTOPKGTEST_TMP/tmp/packages $AUTOPKGTEST_TMP/out/buildcheck_cross.yaml $AUTOPKGTEST_TMP/out/buildcheck_cross.html # test networkx dot read/writ dose-ceve --deb-drop-b-d-indep -c "src:acl" --deb-native-arch=amd64 -G pkg -T dot deb://$AUTOPKGTEST_TMP/tmp/packages debsrc://$AUTOPKGTEST_TMP/tmp/sources > $AUTOPKGTEST_TMP/tmp/aclbd.dot botch-graph-shortest-path $AUTOPKGTEST_TMP/tmp/aclbd.dot --all --source __ID__:"src:acl (= 2.2.52-3)" --target __ID__:"multiarch-support:amd64 (= 2.23-5)" > $AUTOPKGTEST_TMP/out/acl-ma-path.dot botch-graph-ancestors --target __ID__:"perl:amd64 (= 5.22.2-3)" $AUTOPKGTEST_TMP/tmp/aclbd.dot > $AUTOPKGTEST_TMP/out/acl_pred.dot botch-graph-descendants --source __ID__:"perl:amd64 (= 5.22.2-3)" $AUTOPKGTEST_TMP/tmp/aclbd.dot > $AUTOPKGTEST_TMP/out/acl_succ.dot botch-graph-neighborhood --depth=2 --center __ID__:"perl:amd64 (= 5.22.2-3)" $AUTOPKGTEST_TMP/tmp/aclbd.dot > $AUTOPKGTEST_TMP/out/acl_neighbors.dot # test y-u-no-bootstrap # Remove yui-compressor to make src:doxygen bd-uninstallable grep-dctrl --not --field Package yui-compressor $AUTOPKGTEST_TMP/tmp/packages > $AUTOPKGTEST_TMP/tmp/packages_noyui botch-y-u-no-bootstrap --debug --verbose --tmp $AUTOPKGTEST_TMP/tmp --output $AUTOPKGTEST_TMP/out amd64 $AUTOPKGTEST_TMP/tmp/packages_noyui $AUTOPKGTEST_TMP/tmp/sources rm $AUTOPKGTEST_TMP/out/doxygen_1.8.11-3.svg debian/tests/diff_tmp_out misc