Re: [Status Report] SoK-18 Project: Write tests and Improve protocol support for Kopete

2018-02-23 Thread Luiz Carlos
Hi friend, implement XEP-0333 Chat Markers, and enable plugin with omemo
https://conversations.im/omemo/

2018-02-14 9:52 GMT-02:00 Himanshu Vishwakarma :

> Hi,
>
> In this week, I go through the codebase of Jabber Protocol and start to
> write the unit test of the in the Jabber protocol. the issue which I posted
> in the status previous report is unsolved, I am working on it. Please give
> me some suggestion or link by which help me to solve the problem.
>
> Next, I plan to complete the unit test and also move toward the improving
> the workflow of the application. Please let me know if reports need to be
> more elaborate or any suggestion.
>
> Please review the patch: https://phabricator.kde.org/D10160
>
> Link to the blog: http://blog.himvish997.com
>
> Regards,
> Himanshu Vishwakarma
>
> On Mon, Feb 5, 2018 at 4:13 PM, Himanshu Vishwakarma  > wrote:
>
>> Hi,
>>
>> In this week, I worked on improving the previous patch and made the test
>> data-driven and now,  waiting for the review. I also wrote a new test of
>> class socket
>> ​ in
>> ​ ​
>> QQ protocol but
>> ​ there​
>> ​having some difficulties​
>> .
>> ​ I
>> ​will be
>>
>> ​glad
>> , If you look at the proble
>> ​m​
>>  and give the possible solution.​
>>
>> ​
>> When I compling test it give the error like
>> ​ this
>> ​
>> ​
>> /
>> In file included from /mnt/NewVolume/sok
>> *​​/kopete/protocols/qq/qqsocket.cpp*:26:0:
>>
>> /mnt/NewVolume/sok
>> *​​/kopete/protocols/qq/qqsocket.h*:18:10: fatal error: qobject.h: No
>> such file or directory
>>
>>  #include 
>>
>>   ^~~
>>
>> compilation terminated.
>>
>> /***
>> ​​
>>
>> ​To slove the problem, ​
>> ​I tried the many thing​s, some are follows:
>>
>>
>>- ​Replace to this
>> #include  instead of
>>​​
>>#include 
>> * ​​but got similar error*.
>>- I​
>>nclude the Qt5::Core library in th
>>​e​
>>kopete/tests/protocols/qq/CMakeLists.txt
>>​ ​
>>​and in the protocol CMakeLists.txt file also​.
>>- G​
>>ive the full path of the QObject library in
>> * ​​kopete/tests/protocols/qq/CMakeLists.txt* but the issue
>>​ remain same​
>>.
>>- Reinstall
>>​ed​
>>the Qt and change the lastest version Qt-5.10.0.
>>- If I comment the line
>>​ ​
>>​
>>*#include *
>> then
>>​error change but​
>>
>>similar
>>error has come to this line
>> * ​​#include *​
>>
>> Let me know if needed some more information related to the error.
>>
>> Next, I plan to resolve the issue in
>> ​above test
>>  and go through code base of other protocols basically Jabber protocol
>> ​ ​
>> and ​
>> I also want to confirm
>> ​​
>> that,
>> *​​should I remove the AIM protocol from the kopete?*
>>
>> Link to patch: https://phabricator.kde.org/D10160
>>
>> Regards,
>> Himanshu Vishwakarma
>>
>>
>>
>>
>>
>
>
> --
> Regards,
> Himanshu Vishwakarma
>


[Status Report] SoK-18 Project: Write tests and Improve protocol support for Kopete

2018-02-18 Thread Himanshu Vishwakarma
Hi,

This week() I have done the following works:
1. Write a test of class JabberProtocol.
2. Write a test of class KopetePlugin in the libkopete.
3. Go through the codebase of the classes of libkopete to understand the
workflow.

I am currently writing the test for kopetepluginmanager.

Next week plan:
1. Go through the codebase of the other classes of libkopete.
2. Write the test for other classes of libkopete and Jabber Protocol
3. Work on the improvement workflow of the application.

I have written up to three test, links are given below please review them.
-JabberProtocolTest: here 
-KopetePluginTest: here 
-QQCryptTest: here 

-- 
Regards,
Himanshu Vishwakarma
​​


[Status Report] SoK-18 Project: Write tests and Improve protocol support for Kopete

2018-02-14 Thread Himanshu Vishwakarma
Hi,

In this week, I go through the codebase of Jabber Protocol and start to
write the unit test of the in the Jabber protocol. the issue which I posted
in the status previous report is unsolved, I am working on it. Please give
me some suggestion or link by which help me to solve the problem.

Next, I plan to complete the unit test and also move toward the improving
the workflow of the application. Please let me know if reports need to be
more elaborate or any suggestion.

Please review the patch: https://phabricator.kde.org/D10160

Link to the blog: http://blog.himvish997.com

Regards,
Himanshu Vishwakarma

On Mon, Feb 5, 2018 at 4:13 PM, Himanshu Vishwakarma 
wrote:

> Hi,
>
> In this week, I worked on improving the previous patch and made the test
> data-driven and now,  waiting for the review. I also wrote a new test of
> class socket
> ​ in
> ​ ​
> QQ protocol but
> ​ there​
> ​having some difficulties​
> .
> ​ I
> ​will be
>
> ​glad
> , If you look at the proble
> ​m​
>  and give the possible solution.​
>
> ​
> When I compling test it give the error like
> ​ this
> ​
> ​
> /
> In file included from /mnt/NewVolume/sok
> *​​/kopete/protocols/qq/qqsocket.cpp*:26:0:
>
> /mnt/NewVolume/sok
> *​​/kopete/protocols/qq/qqsocket.h*:18:10: fatal error: qobject.h: No
> such file or directory
>
>  #include 
>
>   ^~~
>
> compilation terminated.
>
> /***
> ​​
>
> ​To slove the problem, ​
> ​I tried the many thing​s, some are follows:
>
>
>- ​Replace to this
> #include  instead of
>​​
>#include 
> * ​​but got similar error*.
>- I​
>nclude the Qt5::Core library in th
>​e​
>kopete/tests/protocols/qq/CMakeLists.txt
>​ ​
>​and in the protocol CMakeLists.txt file also​.
>- G​
>ive the full path of the QObject library in
> * ​​kopete/tests/protocols/qq/CMakeLists.txt* but the issue
>​ remain same​
>.
>- Reinstall
>​ed​
>the Qt and change the lastest version Qt-5.10.0.
>- If I comment the line
>​ ​
>​
>*#include *
> then
>​error change but​
>
>similar
>error has come to this line
> * ​​#include *​
>
> Let me know if needed some more information related to the error.
>
> Next, I plan to resolve the issue in
> ​above test
>  and go through code base of other protocols basically Jabber protocol
> ​ ​
> and ​
> I also want to confirm
> ​​
> that,
> *​​should I remove the AIM protocol from the kopete?*
>
> Link to patch: https://phabricator.kde.org/D10160
>
> Regards,
> Himanshu Vishwakarma
>
>
>
>
>


-- 
Regards,
Himanshu Vishwakarma


[Status Report] SoK-18 Project: Write tests and Improve protocol support for Kopete

2018-02-05 Thread Himanshu Vishwakarma
Hi,

In this week, I worked on improving the previous patch and made the test
data-driven and now,  waiting for the review. I also wrote a new test of
class socket
​ in
​ ​
QQ protocol but
​ there​
​having some difficulties​
.
​ I
​will be

​glad
, If you look at the proble
​m​
 and give the possible solution.​

​
When I compling test it give the error like
​ this
​
​
/
In file included from /mnt/NewVolume/sok
*​​/kopete/protocols/qq/qqsocket.cpp*:26:0:

/mnt/NewVolume/sok
*​​/kopete/protocols/qq/qqsocket.h*:18:10: fatal error: qobject.h: No such
file or directory

 #include 

  ^~~

compilation terminated.

/***
​​

​To slove the problem, ​
​I tried the many thing​s, some are follows:


   - ​Replace to this
#include  instead of
   ​​
   #include 
* ​​but got similar error*.
   - I​
   nclude the Qt5::Core library in th
   ​e​
   kopete/tests/protocols/qq/CMakeLists.txt
   ​ ​
   ​and in the protocol CMakeLists.txt file also​.
   - G​
   ive the full path of the QObject library in
* ​​kopete/tests/protocols/qq/CMakeLists.txt* but the issue
   ​ remain same​
   .
   - Reinstall
   ​ed​
   the Qt and change the lastest version Qt-5.10.0.
   - If I comment the line
   ​ ​
   ​
   *#include *
then
   ​error change but​

   similar
   error has come to this line
* ​​#include *​

Let me know if needed some more information related to the error.

Next, I plan to resolve the issue in
​above test
 and go through code base of other protocols basically Jabber protocol
​ ​
and ​
I also want to confirm
​​
that,
*​​should I remove the AIM protocol from the kopete?*

Link to patch: https://phabricator.kde.org/D10160

Regards,
Himanshu Vishwakarma


[Status Report] SoK-18 Project: Write tests and Improve protocol support for Kopete

2018-01-28 Thread Himanshu Vishwakarma
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

​​
On Sun, Jan 28, 2018 at 1:09 PM, Himanshu Vishwakarma 
wrote:

> Hi,
> In this week I have a blocker in the writing test is linking library of QQ
> 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: recipe
> 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 
>- change is done in the kopete/protocols/qq/CMakeLists.txt
> by using the command git diff
>- test header file qqcrypttest.h 
>- test file qqcrypttest.cpp  
>
>
> my question is
> how to make kopete_qq library visible in the test namespace??
>
>
>
>
>
>
> Regards,
> Himanshu Vishwakarma
>
>


[Status Report] SoK-18 Project: Write tests and Improve protocol support for Kopete

2018-01-23 Thread Himanshu Vishwakarma
Hi,

In this week I continued to explore more about the project libraries.
Basically, I explored more about the protocols of QQ Protocols and tried to
learn about which tests can be written for this protocol. I have written
one test of QQprotocol
-
CryptTest, the patch will be sent within a couple of days to be reviewed
.

I also
wr
​ote​
a blog
​,​
link is given below
.
​
​
Next,
I plan to write more test for the same protocol for eg. QQAccountTest etc.
and will then proceed to
​ writing​
test
​s​
other protocols.

​Link to blog here
​


-- 

Regards,
Himanshu Vishwakarma


[Status Report] SoK-18 Project: Write tests and Improve protocol support for Kopete

2018-01-14 Thread Himanshu Vishwakarma
Hi,

In this week, I have done the following work:

   1. Buil
   ​d​
the application (Kopete)
   ​ by using cmake​
and installed all th
   ​e​
packages which are required for building and setting up
   ​ for the machine​
   .
   2. Created an account in all messenger services
   ​.​

   3. Explored more about how the cmake file works in Kopete
   ​ and user flow of the application​
   .
   4. I have checked how the older test
   ​s are​
written
   ​and also their working and
   ​ how their​
   ​ ​
   implementation in the application
   .
   ​​

This week I have plan to explore more about the tests. After that, write
some new test and also to make my first patch.


Regards,
Himanshu Vishwakarma