summaryrefslogtreecommitdiffstats
path: root/tests/aspcud-apt-solver
blob: 24ab3f866a0c73c0def1d42b07ff31dbabf99190 (plain)
1
2
3
4
5
6
7
8
9
10
11
#!/bin/sh
set -eu
export LC_ALL=C.UTF-8
trap "rm -f /tmp/debian-chroot.tar" EXIT INT TERM
{{ CMD }} --mode={{ MODE }} --variant=custom \
    --include "$(tr '\n' ',' < pkglist.txt)" \
    --aptopt='APT::Solver "aspcud"' \
    {{ DIST }} /tmp/debian-chroot.tar {{ MIRROR }}
{ tar -tf /tmp/debian-chroot.tar; echo ./var/lib/apt/extended_states; } | sort \
    | grep -v '^./etc/apt/apt.conf.d/99mmdebstrap$' \
    | diff -u tar1.txt -