Debian Codegraph @

debian/tests/misc

raw
1 #!/bin/sh
2 set -exu
3
4 # we have to export PYTHONHASHSEED because otherwise networkx will create
5 # content with random output order
6 # https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=749710
7 # https://github.com/networkx/networkx/issues/1181
8 export PYTHONHASHSEED=0
9 # to make the sort order in the tests locale independent
10 export LC_COLLATE=C.UTF-8
11 export LC_ALL=C.UTF-8
12 # because dose2html outputs utf8 on standard output
13 export PYTHONIOENCODING=utf-8
14
15 rm -rf $AUTOPKGTEST_TMP/out $AUTOPKGTEST_TMP/tmp
16 mkdir -p $AUTOPKGTEST_TMP/out
17 mkdir -p $AUTOPKGTEST_TMP/tmp
18
19 packages=tests/sid-amd64-packages-20160830T000000Z
20 sources=tests/sid-sources-20160830T000000Z
21
22 grep-dctrl --exact-match --field Package build-essential $packages \
23 | botch-latest-version - - > $AUTOPKGTEST_TMP/tmp/build-essential
24 botch-bin2src --deb-native-arch=amd64 $AUTOPKGTEST_TMP/tmp/build-essential $sources \
25 > $AUTOPKGTEST_TMP/tmp/build-essential-src
26 botch-create-graph --deb-native-arch=amd64 --bg $sources $packages $AUTOPKGTEST_TMP/tmp/build-essential-src \
27 > $AUTOPKGTEST_TMP/tmp/selfcontained_repo.xml
28 botch-buildgraph2packages $AUTOPKGTEST_TMP/tmp/selfcontained_repo.xml $packages \
29 > $AUTOPKGTEST_TMP/tmp/packages
30 botch-bin2src --deb-native-arch=amd64 $AUTOPKGTEST_TMP/tmp/packages $sources \
31 > $AUTOPKGTEST_TMP/tmp/sources
32 # test botch-calcportsmetric
33 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
34 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
35 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
36 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
37 botch-calcportsmetric $AUTOPKGTEST_TMP/tmp/strongsrcgraph.xml $AUTOPKGTEST_TMP/tmp/closuresrcgraph.xml > $AUTOPKGTEST_TMP/out/importance_metric.txt
38 # test botch-multiarch-interpreter-problem
39 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
40 botch-multiarch-interpreter-problem --packages $AUTOPKGTEST_TMP/tmp/packages $AUTOPKGTEST_TMP/tmp/ma_interpreter.xml > $AUTOPKGTEST_TMP/out/ma_interpreter.txt
41 # test y-u-b-d-transitive-essential
42 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
43 rm $AUTOPKGTEST_TMP/out/acl_2.2.52-3_n20.svg
44 # test botch-buildcheck-more-problems
45 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 ]
46 # test botch-buildcheck-more-problems cross because we want to be able
47 # to check yaml output that contains a depchain with an implicit
48 # dependency on a package that is Essential:yes (and thus there is no
49 # "depends" field)
50 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
51 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 ]
52 # test botch-distcheck-more-problems
53 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 ]
54 # test dose2html
55 botch-dose2html --srcsdir=$AUTOPKGTEST_TMP/out --wwwroot=$AUTOPKGTEST_TMP/out/ --packages=$packages $AUTOPKGTEST_TMP/out/distcheck.yaml $AUTOPKGTEST_TMP/out/distcheck.html
56 botch-dose2html --srcsdir=$AUTOPKGTEST_TMP/out --wwwroot=$AUTOPKGTEST_TMP/out/ --packages=$packages $AUTOPKGTEST_TMP/out/buildcheck.yaml $AUTOPKGTEST_TMP/out/buildcheck.html
57 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
58 # test networkx dot read/writ
59 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
60 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
61 botch-graph-ancestors --target __ID__:"perl:amd64 (= 5.22.2-3)" $AUTOPKGTEST_TMP/tmp/aclbd.dot > $AUTOPKGTEST_TMP/out/acl_pred.dot
62 botch-graph-descendants --source __ID__:"perl:amd64 (= 5.22.2-3)" $AUTOPKGTEST_TMP/tmp/aclbd.dot > $AUTOPKGTEST_TMP/out/acl_succ.dot
63 botch-graph-neighborhood --depth=2 --center __ID__:"perl:amd64 (= 5.22.2-3)" $AUTOPKGTEST_TMP/tmp/aclbd.dot > $AUTOPKGTEST_TMP/out/acl_neighbors.dot
64 # test y-u-no-bootstrap
65 # Remove yui-compressor to make src:doxygen bd-uninstallable
66 grep-dctrl --not --field Package yui-compressor $AUTOPKGTEST_TMP/tmp/packages > $AUTOPKGTEST_TMP/tmp/packages_noyui
67 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
68 rm $AUTOPKGTEST_TMP/out/doxygen_1.8.11-3.svg
69
70 debian/tests/diff_tmp_out misc