test 1001 needs a small delay between client part execution and test

result file verifications to allow the test server to completely write
out all files
This commit is contained in:
Yang Tse 2008-04-18 17:17:14 +00:00
parent 6c89e1b311
commit 72c58b0d1d
2 changed files with 19 additions and 0 deletions

View File

@ -71,6 +71,9 @@ http://%HOSTIP:%HTTPPORT/1001 -u auser:apasswd --digest -T log/1001 -x http://%
<file name="log/1001">
test
</file>
<postcheck>
%SRCDIR/libtest/delay.pl 1
</postcheck>
</client>
# Verify data after the test has been "shot"

16
tests/libtest/delay.pl Executable file
View File

@ -0,0 +1,16 @@
#!/usr/bin/env perl
# sleep for a number of seconds
if ( $#ARGV != 0 )
{
print "Usage: $0 seconds\n";
exit 1;
}
if ( $ARGV[0] =~ /(\d+)/ ) {
sleep $1;
exit 0;
}
else {
print "Usage: $0 seconds\n";
exit 1;
}