#
# Part of the ht://Dig package   <http://www.htdig.org/>
# Copyright (c) 1999-2003 The ht://Dig Group
# For copyright details, see the file COPYING in your distribution
# or the GNU Library General Public License (LGPL) version 2 or later
# <http://www.gnu.org/copyleft/lgpl.html>
#
# $Id: t_htdig,v 1.11 2003/09/27 06:53:29 lha Exp $
#

test_functions_action=--start-apache
. ./test_functions

$htdig "$@" -t -i -c $testdir/conf/htdig.conf
$htpurge -c $testdir/conf/htdig.conf

expected='http://localhost:7400/set1/
http://localhost:7400/set1/bad_local.htm
http://localhost:7400/set1/script.html
http://localhost:7400/set1/site%201.html
http://localhost:7400/set1/site2.html
http://localhost:7400/set1/site3.html
http://localhost:7400/set1/site4.html
http://localhost:7400/set1/sub%2520dir/
http://localhost:7400/set1/sub%2520dir/empty%20file.html
http://localhost:7400/set1/title.html'

got=`./document -c $testdir/conf/htdig.conf -u | sort`

if [ "$expected" != "$got" ]
then
	fail "running htdig: expected 
$expected
but got
$got"

fi

test_functions_action=--stop-apache
. ./test_functions
