#!/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 botch-dose2html outputs utf8 on standard output
export PYTHONIOENCODING=utf-8

rm -rf $AUTOPKGTEST_TMP/out $AUTOPKGTEST_TMP/tmp
botch-native --debug --verbose --output $AUTOPKGTEST_TMP/out --tmp $AUTOPKGTEST_TMP/tmp --deb-drop-b-d-indep amd64 tests/sid-amd64-packages-20160830T000000Z tests/sid-sources-20160830T000000Z

debian/tests/diff_tmp_out default
