[Box Backup-dev] Solaris update

Stefan Norlin boxbackup-dev@fluffy.co.uk
Wed, 8 Feb 2006 22:43:31 +0100


This is a multi-part message in MIME format.

------=_NextPart_000_02BB_01C62D01.15E03430
Content-Type: text/plain;
	charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

After a few days without looking at this I now started again...

* Solaris 10 x86 *

Ok, you need GNU tar for the tests to work since "-C" option does
not work in the same way with original tar. After installing GNU tar
(praise sunfreeware!) all tests pass (if you make sure you do not
have bbackupd or bbstored running when starting). :-)

* Solaris 10 Sparc *

GNU tar here as well...

** debug tests **

All tests pass with the change below (timing, 18 secs -> 28 secs).
Is that ok?

Index: test/bbackupd/testbbackupd.cpp
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
--- test/bbackupd/testbbackupd.cpp      (revision 411)
+++ test/bbackupd/testbbackupd.cpp      (working copy)
@@ -758,7 +758,7 @@
=20
                        printf("Keep on continuously updating file, =
check it is uploaded eventually\n");
=20
-                       for(int l =3D 0; l < 18; ++l)
+                       for(int l =3D 0; l < 28; ++l)
                        {
                                FILE *f =3D =
::fopen("testfiles/TestDir1/continousupdate", "w+");
                                TEST_THAT(f !=3D 0);


** release tests **

All tests pass except raidfile: 3431 failures similar to this one:

FAILURE: Condition [::memcmp(((char*)data) + seekpos[p], testbuff, 256) =
=3D=3D 0] fa
iled at testraidfile.cpp(186)
FAILURE: Condition [readstream3.GetPosition() =3D=3D pos] failed at =
testraidfile.cpp
(185)

------=_NextPart_000_02BB_01C62D01.15E03430
Content-Type: text/html;
	charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=3DContent-Type content=3D"text/html; =
charset=3Diso-8859-1">
<META content=3D"MSHTML 6.00.2900.2802" name=3DGENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=3D#ffffff>
<DIV><FONT face=3DArial size=3D2>After a few days without looking at =
this I now=20
started again...</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>* Solaris 10 x86 *</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>Ok, you need GNU tar for the tests to =
work since=20
"-C" option does</FONT></DIV>
<DIV><FONT face=3DArial size=3D2>not work in the same way with original =
tar. After=20
installing GNU tar</FONT></DIV>
<DIV><FONT face=3DArial size=3D2>(praise sunfreeware!) all tests pass =
(if you make=20
sure you do not</FONT></DIV>
<DIV><FONT face=3DArial size=3D2>have bbackupd or bbstored running when =
starting).=20
:-)</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>* Solaris 10 Sparc *</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>GNU tar here as well...</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>** debug tests **</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>All tests pass with the change below =
(timing, 18=20
secs -&gt; 28 secs).</FONT></DIV>
<DIV><FONT face=3DArial size=3D2>Is that ok?</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>Index:=20
test/bbackupd/testbbackupd.cpp<BR>=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D<BR>---=20
test/bbackupd/testbbackupd.cpp&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; (revision=20
411)<BR>+++ test/bbackupd/testbbackupd.cpp&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; =

(working copy)<BR>@@ -758,7 +758,7=20
@@<BR>&nbsp;<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nb=
sp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbs=
p;&nbsp;=20
printf("Keep on continuously updating file, check it is uploaded=20
eventually\n");<BR>&nbsp;<BR>-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&=
nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&n=
bsp;&nbsp;&nbsp;=20
for(int l =3D 0; l &lt; 18;=20
++l)<BR>+&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbs=
p;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;=20
for(int l =3D 0; l &lt; 28;=20
++l)<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp=
;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;=
=20
{<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&n=
bsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nb=
sp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;=20
FILE *f =3D ::fopen("testfiles/TestDir1/continousupdate",=20
"w+");<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nb=
sp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbs=
p;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;=20
TEST_THAT(f !=3D 0);<BR></FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>** release tests **</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>All tests pass except raidfile: 3431 =
failures=20
similar to this one:</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>FAILURE: Condition =
[::memcmp(((char*)data) +=20
seekpos[p], testbuff, 256) =3D=3D 0] fa<BR>iled at =
testraidfile.cpp(186)<BR>FAILURE:=20
Condition [readstream3.GetPosition() =3D=3D pos] failed at=20
testraidfile.cpp<BR>(185)<BR></FONT></DIV></BODY></HTML>

------=_NextPart_000_02BB_01C62D01.15E03430--