summaryrefslogtreecommitdiff
path: root/debian/tests/misc
blob: 50f3d8daa14816a3f3942641ab58a0661d710735 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
#!/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 $ADTTMP/out $ADTTMP/tmp
mkdir -p $ADTTMP/out
mkdir -p $ADTTMP/tmp

packages=tests/sid-amd64-packages-20160830T000000Z
sources=tests/sid-sources-20160830T000000Z

grep-dctrl --exact-match --field Package build-essential $packages \
	| botch-latest-version - - > $ADTTMP/tmp/build-essential
botch-bin2src --deb-native-arch=amd64 $ADTTMP/tmp/build-essential $sources \
	> $ADTTMP/tmp/build-essential-src
botch-create-graph --deb-native-arch=amd64 --bg $sources $packages $ADTTMP/tmp/build-essential-src \
	> $ADTTMP/tmp/selfcontained_repo.xml
botch-buildgraph2packages $ADTTMP/tmp/selfcontained_repo.xml $packages \
	> $ADTTMP/tmp/packages
botch-bin2src --deb-native-arch=amd64 $ADTTMP/tmp/packages $sources \
	> $ADTTMP/tmp/sources
# test botch-calcportsmetric
botch-create-graph --deb-drop-b-d-indep --deb-native-arch=amd64 $ADTTMP/tmp/packages $ADTTMP/tmp/sources --strongtype > $ADTTMP/tmp/strongbuildgraph.xml
botch-buildgraph2srcgraph $ADTTMP/tmp/strongbuildgraph.xml --deb-drop-b-d-indep --deb-native-arch=amd64 $ADTTMP/tmp/packages $ADTTMP/tmp/sources > $ADTTMP/tmp/strongsrcgraph.xml
botch-create-graph --deb-drop-b-d-indep --deb-native-arch=amd64 $ADTTMP/tmp/packages $ADTTMP/tmp/sources --closuretype > $ADTTMP/tmp/closurebuildgraph.xml
botch-buildgraph2srcgraph $ADTTMP/tmp/closurebuildgraph.xml --deb-drop-b-d-indep --deb-native-arch=amd64 $ADTTMP/tmp/packages $ADTTMP/tmp/sources > $ADTTMP/tmp/closuresrcgraph.xml
botch-calcportsmetric $ADTTMP/tmp/strongsrcgraph.xml $ADTTMP/tmp/closuresrcgraph.xml > $ADTTMP/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://$ADTTMP/tmp/packages debsrc://$ADTTMP/tmp/sources > $ADTTMP/tmp/ma_interpreter.pkggraph
botch-multiarch-interpreter-problem --packages $ADTTMP/tmp/packages $ADTTMP/tmp/ma_interpreter.pkggraph > $ADTTMP/out/ma_interpreter.txt
# test y-u-b-d-transitive-essential
botch-y-u-b-d-transitive-essential --debug --verbose --tmp $ADTTMP/tmp --output=$ADTTMP/out amd64 $ADTTMP/tmp/packages $ADTTMP/tmp/sources acl
# 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 > $ADTTMP/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 $ADTTMP/tmp/packages - | grep-dctrl -X \( --not -FArchitecture all --and --not -FMulti-Arch foreign \) > $ADTTMP/tmp/packages_armhf_noall_nomaforeign
botch-buildcheck-more-problems --verbose --progress --checkonly=apache2,ant --deb-native-arch=amd64 --deb-host-arch=armhf --explain --failures $ADTTMP/tmp/packages_armhf_noall_nomaforeign tests/crossbuild-essential-armhf $ADTTMP/tmp/packages $ADTTMP/tmp/sources > $ADTTMP/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 > $ADTTMP/out/distcheck.yaml || [ $? -eq 1 ]
# test dose2html
botch-dose2html --srcsdir=$ADTTMP/out --wwwroot=$ADTTMP/out/ --packages=$packages $ADTTMP/out/distcheck.yaml $ADTTMP/out/distcheck.html
botch-dose2html --srcsdir=$ADTTMP/out --wwwroot=$ADTTMP/out/ --packages=$packages $ADTTMP/out/buildcheck.yaml $ADTTMP/out/buildcheck.html
botch-dose2html --srcsdir=$ADTTMP/out --wwwroot=$ADTTMP/out/ --packages=$ADTTMP/tmp/packages_armhf_noall_nomaforeign --packages=tests/crossbuild-essential-armhf --packages=$ADTTMP/tmp/packages $ADTTMP/out/buildcheck_cross.yaml $ADTTMP/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://$ADTTMP/tmp/packages debsrc://$ADTTMP/tmp/sources > $ADTTMP/tmp/aclbd.dot
botch-graph-shortest-path $ADTTMP/tmp/aclbd.dot --all --source __ID__:"src:acl (= 2.2.52-3)" --target __ID__:"multiarch-support:amd64 (= 2.23-5)" > $ADTTMP/out/acl-ma-path.dot
botch-graph-ancestors --target __ID__:"perl:amd64 (= 5.22.2-3)" $ADTTMP/tmp/aclbd.dot > $ADTTMP/out/acl_pred.dot
botch-graph-descendants --source __ID__:"perl:amd64 (= 5.22.2-3)" $ADTTMP/tmp/aclbd.dot > $ADTTMP/out/acl_succ.dot
botch-graph-neighborhood --depth=2 --center __ID__:"perl:amd64 (= 5.22.2-3)" $ADTTMP/tmp/aclbd.dot > $ADTTMP/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 $ADTTMP/tmp/packages > $ADTTMP/tmp/packages_noyui
botch-y-u-no-bootstrap --debug --verbose --tmp $ADTTMP/tmp --output $ADTTMP/out amd64 $ADTTMP/tmp/packages_noyui $ADTTMP/tmp/sources

debian/tests/diff_tmp_out misc