[Box Backup] ./runtest.pl common debug fails

Urs Rau boxbackup@fluffy.co.uk
Wed, 16 Nov 2005 10:15:05 +0000


I am trying to do a test of the boxbackup software and when I do a

"runtest.pl ALL" it reports:

WARNING: This test was run as root. Some tests have been omitted.
PASSED
--------
common: FAILED: 1 tests failed
crypto: PASSED
compress: PASSED
basicserver: PASSED
raidfile: PASSED
backupstore: PASSED
backupstorefix: PASSED
backupstorepatch: PASSED
backupdiff: PASSED
bbackupd: PASSED


and if I do a runtest.pl common debug - in order to find out where the
problem is, it reports the following:

it looks to me, a little bit, as if the tests config files are bungled?

(cd ../../lib/common; make  NODEPS=1)
make[1]: Entering directory `/var/tmp/boxbackup-0.09/lib/common'
(echo -n > ../../debug/lib/common/common.a; rm
../../debug/lib/common/common.a)
ar -q ../../debug/lib/common/common.a
../../debug/lib/common/FileStream.o
../../debug/lib/common/StreamableMemBlock.o
../../debug/lib/common/BoxTimeToText.o
../../debug/lib/common/ExcludeList.o ../../debug/lib/common/IOStream.o
../../debug/lib/common/CollectInBufferStream.o
../../debug/lib/common/MemBlockStream.o
../../debug/lib/common/ConversionString.o ../../debug/lib/common/Utils.o
../../debug/lib/common/autogen_ConversionException.o
../../debug/lib/common/autogen_CommonException.o
../../debug/lib/common/BoxTime.o ../../debug/lib/common/FdGetLine.o
../../debug/lib/common/PartialReadStream.o
../../debug/lib/common/EventWatchFilesystemObject.o
../../debug/lib/common/IOStreamGetLine.o
../../debug/lib/common/WaitForEvent.o
../../debug/lib/common/Configuration.o
../../debug/lib/common/NamedLock.o ../../debug/lib/common/BoxException.o
../../debug/lib/common/LinuxWorkaround.o
../../debug/lib/common/DebugPrintf.o
../../debug/lib/common/DebugMemLeakFinder.o
../../debug/lib/common/ReadGatherStream.o
../../debug/lib/common/DebugAssertFailed.o ../../debug/lib/common/UnixUser.o
ar: creating ../../debug/lib/common/common.a
ranlib ../../debug/lib/common/common.a
make[1]: Leaving directory `/var/tmp/boxbackup-0.09/lib/common'
g++  -o ../../debug/test/common/test ../../debug/test/common/_main.o
../../debug/test/common/testcommon.o ../../debug/lib/common/common.a
cp _t ../../debug/test/common/t
chmod u+x ../../debug/test/common/t
cp _t-gdb ../../debug/test/common/t-gdb
chmod u+x ../../debug/test/common/t-gdb
TEST: test/common
Removing old test files...
Copying new test files...
Running test common in debug mode...
FAILURE: Condition [block != b2] failed at testcommon.cpp(181)
Exception thrown: CommonException(GetLineEOF) at FdGetLine.cpp(115)
Exception thrown: CommonException(GetLineEOF) at FdGetLine.cpp(115)
Exception thrown: CommonException(GetLineEOF) at IOStreamGetLine.cpp(109)
Exception thrown: CommonException(GetLineEOF) at IOStreamGetLine.cpp(109)
Exception thrown: CommonException(OSFileOpenError) at
../../lib/common/Guards.h(72)
Exception thrown: CommonException(ConfigNoKey) at Configuration.cpp(364)
Exception thrown: CommonException(ConfigNoSubConfig) at
Configuration.cpp(524)
Error at Configuration::Verify
(testfiles/config2.txt) Error msg is:
------
<root>.TOPlevel (key) is missing.
------
Error at Configuration::LoadInfo
(testfiles/config3.txt) Error msg is:
------
Unexpected start block in test1
------
Error at Configuration::LoadInfo
(testfiles/config4.txt) Error msg is:
------
Root level has close block -- forget to terminate subblock?
------
Error at Configuration::LoadInfo
(testfiles/config5.txt) Error msg is:
------
Block subconfig2 wasn't started correctly (no '{' on line of it's own)
Root level has close block -- forget to terminate subblock?
------
Error at Configuration::Verify
(testfiles/config6.txt) Error msg is:
------
test1.subconfig2.bing (key) multi value not allowed (duplicated key?).
------
Error at Configuration::LoadInfo
(testfiles/config7.txt) Error msg is:
------
Invalid key in block subconfig3
------
Error at Configuration::LoadInfo
(testfiles/config8.txt) Error msg is:
------
File ended without terminating all subblocks
------
Error at Configuration::Verify
(testfiles/config9.txt) Error msg is:
------
test1.subconfig3.carrots (key) is not a valid integer.
------
Error at Configuration::Verify
(testfiles/config9b.txt) Error msg is:
------
test1.subconfig2.carrots (key) is not a valid integer.
------
Error at Configuration::Verify
(testfiles/config9c.txt) Error msg is:
------
test1.subconfig2.carrots (key) is not a valid integer.
------
Error at Configuration::Verify
(testfiles/config9d.txt) Error msg is:
------
test1.subconfig3.carrots (key) is not a valid integer.
------
Error at Configuration::Verify
(testfiles/config10.txt) Error msg is:
------
test1.subconfig.carrots (key) is missing.
------
Error at Configuration::Verify
(testfiles/config11.txt) Error msg is:
------
test1.subconfig3.NOTEXPECTED (key) is not a known key. Check spelling
and placement.
------
Error at Configuration::Verify
(testfiles/config12.txt) Error msg is:
------
<root>.test1.otherthing (block) is missing.
------
Error at Configuration::Verify
(testfiles/config13.txt) Error msg is:
------
<root>.test1.* (block) is missing (a block must be present).
<root>.test1.otherthing (block) is missing.
------
Error at Configuration::Verify
(testfiles/config16.txt) Error msg is:
------
<root>.BoolTrue1 (key) is not a valid boolean value.
------
Exception thrown: CommonException(OSFileError) at NamedLock.cpp(117)
Exception thrown: CommonException(NamedLockAlreadyLockingSomething) at
NamedLock.cpp(109)
Exception thrown: CommonException(NamedLockNotHeld) at NamedLock.cpp(169)
Exception thrown: CommonException(BadRegularExpression) at
ExcludeList.cpp(167)
Exception thrown: ConversionException(IntOverflowInConvertFromString) at
ConversionString.cpp(131)
Exception thrown: ConversionException(BadStringRepresentationOfInt) at
ConversionString.cpp(93)
Exception thrown: ConversionException(CannotConvertEmptyStringToInt) at
ConversionString.cpp(83)
FAILED: 1 tests failed
--------
common: FAILED: 1 tests failed

Is this expected? Where should I start looking?

Thanks for this tool, it looks as if it will do exactly what I was
looing for.

Keep up the good work.

Regards,

-- 
Urs Rau						
Head of Operations			
Operation Mobilisation			
UK National Office			Tel: +44-1691-773388
The Quinta, Weston Rhyn			Fax: +44-1691-778378
Oswestry, Shropshire, SY10 7LT		E-mail: urs.rau@uk.om.org
United Kingdom				http://www.uk.om.org