#!/bin/sh
set -e
-TESTDIR=$(readlink -f $(dirname $0))
-. $TESTDIR/framework
+TESTDIR="$(readlink -f "$(dirname "$0")")"
+. "$TESTDIR/framework"
setupenvironment
configarchitecture 'amd64'
testsuccess --nomsg aptget install unrelated --download-only -y
}
-testrun 'http://localhost:8080'
+testrun "http://localhost:${APTHTTPPORT}"
rm -rf rootdir/var/lib/apt/lists rootdir/var/cache/apt/archives
changetohttpswebserver
-testrun 'https://localhost:4433'
+testrun "https://localhost:${APTHTTPSPORT}"