set -u . "$TESTSDIR"/test.inc echo "Running various other old test..." mkdir -p conf logs cat > conf/options < conf/distributions < conf/testhook <<'EOF' #!/bin/sh echo "testhook got $#: '$1' '$2' '$3' '$4'" if test -f "$1/$3.deprecated" ; then echo "$3.deprecated.tobedeleted" >&3 fi echo "super-compressed" > "$1/$3.super.new" echo "$3.super.new" >&3 EOF chmod a+x conf/testhook mkdir -p "dists/test2/stupid/binary-abacus" touch "dists/test2/stupid/binary-abacus/Packages.deprecated" set -v checknolog logfile testrun - -b . export test1 test2 3< dists/test1/stupid/binary-abacus/Release.expected < dists/test1/ugly/binary-abacus/Release.expected < "fakesuper" FAKESUPERMD5="$(mdandsize fakesuper)" FAKESUPERSHA1="$(sha1andsize fakesuper)" FAKESUPERSHA2="$(sha2andsize fakesuper)" dodiff dists/test1/ugly/binary-abacus/Release.expected dists/test1/ugly/binary-abacus/Release cat > dists/test1/Release.expected < dists/test2/stupid/binary-abacus/Release.expected < dists/test2/ugly/binary-abacus/Release.expected < dists/test2/Release.expected < conf/srcoverride < conf/binoverride < results cat >results.expected < results.expected << END test2|ugly|abacus: simple 1 test2|ugly|coal: simple-addons 1 test2|ugly|source: simple 1 END dodiff results.expected results testout "" -b . listfilter test2 'Source(==bloat+-0a9z.app)|(!Source,Package(==bloat+-0a9z.app))' cat > results.expected << END test2|stupid|abacus: bloat+-0a9z.app 99:0.9-A:Z+a:z-0+aA.9zZ test2|stupid|coal: bloat+-0a9z.app-addons 99:0.9-A:Z+a:z-0+aA.9zZ test2|stupid|source: bloat+-0a9z.app 99:0.9-A:Z+a:z-0+aA.9zZ END dodiff results.expected results cat >conf/updates <abacus abacus source FilterFormula: Priority(==optional),Package(>=alpha),Package(<=zeta) FilterList: error list ListHook: /bin/cp END cat >conf/list <> conf/updates <> conf/updates <> conf/updates < test2 find dists/test1/ \( -name "Packages.gz" -o -name "Sources.gz" \) -print0 | xargs -0 zgrep '^Package: ' | sort > test1 dodiff test2 test1 testrun - -b . check test1 test2 3<results.expected <results.expected <includeerror.rules < <.changes-file> EOF testrun includeerror -b . include unknown 3< results.expected < results.expected < results.expected < results.expected < conf2/distributions testrun - -b . --confdir ./conf2 update 3<> conf2/distributions testrun - -b . --confdir ./conf2 update 3<> conf2/distributions testrun - -b . --confdir ./conf2 update 3< broken.changes testrun - -b . include test2 broken.changes 3<> broken.changes testrun - -b . include test2 broken.changes 3<> broken.changes testrun - -b . include test2 broken.changes 3<> broken.changes testrun - -b . include test2 broken.changes 3<> broken.changes testrun - -b . include test2 broken.changes 3<> broken.changes testrun - -b . include test2 broken.changes 3<> broken.changes testrun - -b . include test2 broken.changes 3<> broken.changes testrun - -b . --ignore=missingfield include test2 broken.changes 3<> broken.changes testrun - -b . --ignore=missingfield include test2 broken.changes 3<> broken.changes testrun - -b . --ignore=missingfield include test2 broken.changes 3<> conf/distributions <> broken.changes touch nowhere_0old.dsc testrun - -b . --ignore=unusedarch --ignore=surprisingarch --ignore=wrongdistribution --ignore=missingfield include test2 broken.changes 3<results.expected < broken.changes < Description: missing Changes: missing Binary: none and nothing Distribution: test2 Files: `md5sum 4test_0b.1-1.dsc| cut -d" " -f 1` `stat -c%s 4test_0b.1-1.dsc` a b differently_0another.dsc `md5sum 4test_0b.1-1_abacus.deb| cut -d" " -f 1` `stat -c%s 4test_0b.1-1_abacus.deb` a b 4test_0b.1-1_abacus.deb EOF #todo: make it work without this.. cp 4test_0b.1-1.dsc differently_0another.dsc testrun - -b . include test2 broken.changes 3<> broken.changes < broken.changes < Description: missing Changes: missing Binary: 4test Distribution: test2 Files: `md5sum 4test_0b.1-1.dsc| cut -d" " -f 1` `stat -c%s 4test_0b.1-1.dsc` a b 4test_0orso.dsc `md5sum 4test_0b.1-1_abacus.deb| cut -d" " -f 1` `stat -c%s 4test_0b.1-1_abacus.deb` a b 4test_0b.1-1_abacus.deb `md5sum 4test_0b.1-1.tar.gz| cut -d" " -f 1` `stat -c%s 4test_0b.1-1.tar.gz` a b 4test_0b.1-1.tar.gz EOF cp 4test_0b.1-1.dsc 4test_0orso.dsc testrun - -b . include test2 broken.changes 3< conf/distributions <