[Box Backup] Testing boxbackup after compiling - What to do about errors?

Tobias Balle-Petersen boxbackup@fluffy.co.uk
Fri, 01 Sep 2006 15:43:00 +0200


Hello Chris...

Sorry for the incomplete mail earlier.

I have made a non-root user owner af all the boxbackup files. All the 
tests except one passes:
PASSED
--------
common: PASSED
crypto: PASSED
compress: TEST: test/compress
basicserver: Copying new test files...
raidfile: PASSED
backupstore: PASSED
backupstorefix: PASSED
backupstorepatch: PASSED
backupdiff: FAILED: 1 tests failed
bbackupd: PASSED


I then run ./runtest.pl backupdiff and save the log. These are the errors:
............
Diff block size 62: 0 (count = 0)
Diff block size 63: 0 (count = 0)
Diff: list of found blocks
======== ======== ======== ========
  Offset   BlkIdx     Size Movement
======== ======== ======== ========
Diff: Default recipe generated, 0 bytes of file
Reading index from 'testfiles/f9.diff', has 0 blocks
======== ===== ========== ======== ========
   Index Where  EncSz/Idx     Size  WChcksm
======== ===== ========== ======== ========
Reading index from 'testfiles/f9.zerotest', has 0 blocks
======== ===== ========== ======== ========
   Index Where  EncSz/Idx     Size  WChcksm
======== ===== ========== ======== ========
Reading index from 'testfiles/f2.symlink.diff', has 0 blocks
======== ===== ========== ======== ========
   Index Where  EncSz/Idx     Size  WChcksm
======== ===== ========== ======== ========
Obtained 6 stack frames.
./test [0x1003bc40]
./test [0x10017904]
./test [0x10017364]
./test [0x100062d0]
./test [0x10006cb4]
/lib/libc.so.6(__libc_start_main+0x170) [0xfa55220]
Exception thrown: BackupStoreException(CannotDiffAnIncompleteStoreFile) 
at BackupStoreFileDiff.cpp(350)
Diff block size 0: 8192 (count = 2560)
Diff block size 1: 0 (count = 0)
Diff block size 2: 0 (count = 0)
Diff block size 3: 0 (count = 0)
Diff block size 4: 0 (count = 0)
...............
       0     2559        1
       0     2559        1
       0     2559        1
======== ========= ========
FAILURE: Condition [time(0) < (beginTime + 40)] failed at 
testbackupdiff.cpp(544)
FAILED: 1 tests failed
--------
backupdiff: FAILED: 1 tests failed



Thanks,
Tobias







Chris Wilson wrote:
> Hi Tobias,
>
>> This is what I get if I run the tests from a non root account:
>> common: make failed
>> crypto: make failed
>> compress: make failed
>> basicserver: make failed
>> raidfile: make failed
>> backupstore: make failed
>> backupstorefix: make failed
>> backupstorepatch: make failed
>> backupdiff: make failed
>> bbackupd: make failed
>
> Probably, root has created all the files and they are not writable by 
> a normal user, so make cannot rebuild anything. You could try a make 
> clean first, or extract a second copy of the source.
>
>> What do I need to do to pass the two failing tests?
>
> I'm afraid you will have to provide much more details, such as the 
> context surrounding the "FAILURE:" lines in the test output, before we 
> can help you here.
>
> Cheers, Chris.