[Status Report] SoK-18 Project: Write tests and Improve protocol support for Kopete
Himanshu Vishwakarma <[email protected]> Mon, 29 Jan 2018 10:55:58 +0530
| Newsgroups | gmane.comp.kde.devel.kopete |
|---|---|
| Message-ID | <CAAF-E2uFvv23KK3tHXzHVGdFNSkRmN6bqgpm14dU3DPA4-vo8w@mail.gmail.com> |
--94eb2c12c3fc3267250563e37b59 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Hi, I got the solution to my problem as mentioned in the previous status report o n Sun, Jan 28, 2018 at 1:09 PM. I had done a mistake in the CMakeLists.txt file by not giving the path to the source library of qq protocol, therefore, it gives the error. Now the problem is solved, I patched the test for the review link is given below: https://phabricator.kde.org/D10160 N ext, I plan to write some other tests on the same protocol. Regards, Himanshu Vishwakarma =E2=80=8B=E2=80=8B On Sun, Jan 28, 2018 at 1:09 PM, Himanshu Vishwakarma <[email protected]= > wrote: > Hi, > In this week I have a blocker in the writing test is linking library of Q= Q > protocol to the test library. I am working on the same since last week. > I try to google but didn't get a good result. > When running the command '*make*' it give the error like this > > > > > > > > > > > > > */usr/lib/gcc/x86_64-linux-gnu/5/../../../x86_64-linux-gnu/crt1.o: In > function `_start': (.text+0x20): undefined reference to `main' > CMakeFiles/qqcrypttest.dir/qqcrypttest.cpp.o: In function > `QQCryptTest::CryptTest()': qqcrypttest.cpp:(.text+0x243e): undefined > reference to `TEA::encipher(unsigned int*, unsigned int const*, unsigned > int*)' qqcrypttest.cpp:(.text+0x2455): undefined reference to > `TEA::decipher(unsigned int*, unsigned int const*, unsigned int*)' > collect2: error: ld returned 1 exit status > tests/protocols/qq/CMakeFiles/qqcrypttest.dir/build.make:120: recipe for > target 'tests/protocols/qq/qqcrypttest' failed make[2]: *** > [tests/protocols/qq/qqcrypttest] Error 1 CMakeFiles/Makefile2:6872: recip= e > for target 'tests/protocols/qq/CMakeFiles/qqcrypttest.dir/all' failed > make[1]: *** [tests/protocols/qq/CMakeFiles/qqcrypttest.dir/all] Error 2 > Makefile:138: recipe for target 'all' failed make: *** [all] Error 2* > > link to file: > > - test/protocol/qq/CMakeLists.txt <https://paste.kde.org/p4wgnneua> > - change is done in the kopete/protocols/qq/CMakeLists.txt > <https://paste.kde.org/pykp5k3w7> by using the command git diff > - test header file qqcrypttest.h <https://paste.kde.org/puuhrchye> > - test file qqcrypttest.cpp <https://paste.kde.org/pwstszknv> > > > my question is > how to make kopete_qq library visible in the test namespace?? > > > > > > > Regards, > Himanshu Vishwakarma > > --94eb2c12c3fc3267250563e37b59 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable <div dir=3D"ltr"><div class=3D"gmail_default" style=3D"font-family:arial,he= lvetica,sans-serif">Hi,<br></div><div class=3D"gmail_quote"><div dir=3D"ltr= "><div style=3D"font-family:arial,helvetica,sans-serif"><br></div><div styl= e=3D"font-family:arial,helvetica,sans-serif">I got the solution to=C2=A0my = problem as mentioned in the previous status report=C2=A0<div style=3D"displ= ay:inline">o</div><span style=3D"font-family:arial,sans-serif">n Sun, Jan 2= 8, 2018 at 1:09 PM.=C2=A0</span>I had=C2=A0done a mistake in the CMakeLists= .txt file by not giving the path to the source library of qq protocol, ther= efore,=C2=A0it gives the error.</div><div style=3D"font-family:arial,helvet= ica,sans-serif"><br></div><div style=3D"font-family:arial,helvetica,sans-se= rif">Now the problem is solved, I patched the test for the review link is g= iven below:</div><div><a href=3D"https://phabricator.kde.org/D10160" target= =3D"_blank"><font face=3D"arial, helvetica, sans-serif">https://phabricator= .kde.org/<wbr>D10160</font><br></a></div><div><font face=3D"arial, helvetic= a, sans-serif"><br></font></div><div class=3D"gmail_extra"><div><div class= =3D"m_7198428213924143882gmail_signature"><div dir=3D"ltr"><div><div dir=3D= "ltr"><div><div dir=3D"ltr"><div><div dir=3D"ltr"><div><div dir=3D"ltr"><di= v><div dir=3D"ltr"><div><div dir=3D"ltr"><div dir=3D"ltr"><div><font size= =3D"2" face=3D"arial, helvetica, sans-serif">N<div style=3D"font-family:ari= al,helvetica,sans-serif;display:inline">ext, I plan to write some other tes= ts on the same protocol.</div></font></div><div dir=3D"ltr"><br></div><div = dir=3D"ltr"><font size=3D"2" face=3D"arial, helvetica, sans-serif">Regards,= </font><div style=3D"font-size:12.8px"><font size=3D"2" face=3D"arial, helv= etica, sans-serif">Himanshu Vishwakarma</font></div></div></div></div></div= ></div></div></div></div></div></div></div></div></div></div></div></div></= div><div><div class=3D"h5"> <br><div class=3D"gmail_quote"><div style=3D"font-family:arial,helvetica,sa= ns-serif;display:inline">=E2=80=8B=E2=80=8B</div>On Sun, Jan 28, 2018 at 1:= 09 PM, Himanshu Vishwakarma <span dir=3D"ltr"><<a href=3D"mailto:himvish= [email protected]" target=3D"_blank">[email protected]</a>></span> wrote:= <br><blockquote class=3D"gmail_quote" style=3D"margin:0px 0px 0px 0.8ex;bor= der-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir=3D"ltr"><div= style=3D"font-family:arial,helvetica,sans-serif">Hi,<br></div><div class= =3D"gmail_quote"><div dir=3D"ltr"><div style=3D"font-family:arial,helvetica= ,sans-serif">In this week I have a blocker in the writing test is linking l= ibrary of QQ protocol to the test library. I am working on the same since l= ast week.</div><div style=3D"font-family:arial,helvetica,sans-serif">I try = to google but didn't get a good result.</div><div style=3D"font-family:= arial,helvetica,sans-serif">When running the command '<b>make</b>' = it give the error like this</div><div style=3D"font-family:arial,helvetica,= sans-serif"><br></div><div style=3D"font-family:arial,helvetica,sans-serif"= ><span style=3D"font-family:monospace"><b><span style=3D"color:rgb(0,0,0)">= /usr/lib/gcc/x86_64-linux-gnu/<wbr>5/../../../x86_64-linux-gnu/cr<wbr>t1.o:= In function `_start': </span><br>(.text+0x20): undefined reference to = `main' <br>CMakeFiles/qqcrypttest.dir/qqc<wbr>rypttest.cpp.o: In functi= on `QQCryptTest::CryptTest()': <br>qqcrypttest.cpp:(.text+0x243e)<wbr>:= undefined reference to `TEA::encipher(unsigned int*, unsigned int const*, = unsigned int*)' <br>qqcrypttest.cpp:(.text+0x2455)<wbr>: undefined refe= rence to `TEA::decipher(unsigned int*, unsigned int const*, unsigned int*)&= #39; <br>collect2: error: ld returned 1 exit status <br>tests/protocols/qq/= CMakeFiles/<wbr>qqcrypttest.dir/build.make:120<wbr>: recipe for target '= ;tests/protocols/qq/qqcrypttes<wbr>t' failed <br>make[2]: *** [tests/pr= otocols/qq/qqcrypttes<wbr>t] Error 1 <br>CMakeFiles/Makefile2:6872: recipe = for target 'tests/protocols/qq/CMakeFiles<wbr>/qqcrypttest.dir/all'= failed <br>make[1]: *** [tests/protocols/qq/CMakeFiles<wbr>/qqcrypttest.di= r/all] Error 2 <br>Makefile:138: recipe for target 'all' failed <br= >make: *** [all] Error 2</b><br></span></div><div style=3D"font-family:aria= l,helvetica,sans-serif"><br></div><div style=3D"font-family:arial,helvetica= ,sans-serif">link to file:</div><div style=3D"font-family:arial,helvetica,s= ans-serif"><ul><li>test/protocol/qq/<a href=3D"https://paste.kde.org/p4wgnn= eua" target=3D"_blank">CMakeLists.tx<wbr>t</a><br></li><li>change is done i= n the <a href=3D"https://paste.kde.org/pykp5k3w7" target=3D"_blank">kopete/= protocols/qq/CMakeLists<wbr>.txt</a>=C2=A0by=C2=A0using the=C2=A0command=C2= =A0git=C2=A0diff<br></li><li>test header file <a href=3D"https://paste.kde.= org/puuhrchye" target=3D"_blank">qqcrypttest.h</a><br></li><li>test file <a= href=3D"https://paste.kde.org/pwstszknv" target=3D"_blank">qqcrypttest.cpp= =C2=A0</a>=C2=A0<br></li></ul></div><div style=3D"font-family:arial,helveti= ca,sans-serif"><br></div><div style=3D"font-family:arial,helvetica,sans-ser= if">my question is=C2=A0</div><div style=3D"font-family:arial,helvetica,san= s-serif">how to make kopete_qq library visible in the test namespace??</div= ><div><div class=3D"m_7198428213924143882gmail-m_-581433611027664272m_-6866= 093208902770575gmail-m_-7935153186599773436m_-6274879500596828429gmail_sign= ature"><div dir=3D"ltr"><div dir=3D"ltr"><div dir=3D"ltr"><div dir=3D"ltr">= <div dir=3D"ltr"><div dir=3D"ltr"><div dir=3D"ltr"><div dir=3D"ltr"><div><b= r></div><div><br></div><div><br></div><div><br></div><div dir=3D"ltr"><font= size=3D"2" face=3D"arial, helvetica, sans-serif"><br></font></div><div dir= =3D"ltr"><font size=3D"2" face=3D"arial, helvetica, sans-serif"><br>Regards= ,</font><div style=3D"font-size:12.8px"><font size=3D"2" face=3D"arial, hel= vetica, sans-serif">Himanshu Vishwakarma</font></div></div></div></div></di= v></div></div></div></div></div></div></div></div> </div><br></div> </blockquote></div><br></div></div></div></div> </div><br></div> --94eb2c12c3fc3267250563e37b59--