Commit Graph

70 Commits

Author SHA1 Message Date
csoler
ae2accd286 fixed cmpilation of unittests 2016-12-08 14:30:47 +01:00
csoler
d2ef2248c6 added entry in rsgxsnetservice to change sync params 2016-12-04 23:42:26 +01:00
Gio
8ab3c7de26 Merge branch 'master' into android 2016-11-07 14:37:23 +01:00
mr-alice
2bb9a87b3b merged and fixed conflict with upstream/master 2016-11-04 13:52:11 +01:00
mr-alice
30860b8f1a removed ^M that polluted unittests.pro 2016-11-04 13:46:20 +01:00
Phenom
2db8dbd45f Fix El Capitan OSX 10.11 Compil 2016-11-02 21:40:46 +01:00
Gio
ea42d822c2 Merge branch 'master' into android 2016-10-26 13:43:24 +02:00
mr-alice
0570427c1d added google test for chacha20 code 2016-10-25 14:09:39 +02:00
mr-alice
1be599008a disabled dbase from unittests.pro, which should be cnverted into proper tests for file_sharing. 2016-09-21 22:31:39 +02:00
Gio
9a980def2c libretroshare now compiles for Android, instruction on how to do it included 2016-08-23 12:15:28 +02:00
Phenom
275c47eff9 Add Title when ask for password. 2016-08-09 01:22:14 +02:00
csoler
59d08591d2 fixed compilation in tests 2016-07-15 22:25:15 -04:00
Phenom
3152ecaa9b Fix UnitTests and run it in windows too. 2016-07-15 15:36:06 +02:00
csoler
24eb88aa0a added explicit comparisons for tests on RsGxsGrpMetaData and RsGxsMsgMetaData 2016-06-18 20:38:48 -04:00
Phenom
43f618fedd Fix UnitTest Compilation 2016-06-18 23:10:12 +02:00
csoler
c2ae4fc904 merged upstream/master 2016-06-05 10:06:11 -04:00
csoler
590be092e5 separated RsTlvSecurityKey into two incompatible classes to enforce the correct usage of private vs. public keys 2016-06-02 23:47:57 -04:00
csoler
e2b5785eec merged PR403 with trunk 2016-06-02 21:15:51 -04:00
Phenom
2c8d047ca4 Fix UnitTests Compilation 2016-06-02 19:34:58 +02:00
sehraf
6e38554bcd rename define UBUNTU to HAS_GNOME_KEYRING
The name UBUNTU is misleading since it is only used to select the keyring backend (which is gnome keyring on linux).
This also allows to support other keyrings on linux in the future (e.g. KDEs keyring)
2016-06-02 14:57:46 +02:00
Cyril Soler
dafb2e6bc2 Merge pull request #396 from csoler/v0.6-Circles
V0.6 circles
2016-05-27 17:35:23 -04:00
Julian Ospald
ed867c52bd
Don't hardcode g++ in the toolchain settings
Although it's already quite ugly that we overwrite QMAKE_CC like this,
hardcoding 'g++' can break the build where prefixed versions of
the toolchain are expected and where QMAKE_CXX is already properly
defined. So we just use QMAKE_CXX variable here.

This fixes build failures on some distributions, e.g.
https://galileo.mailstation.de/jenkins/job/lipidity/36/console
2016-05-27 18:07:28 +02:00
csoler
34bd998c8e cleaned the mess in Circles, due to mixing up GxsIds and PgpIds, which is now irrelevant because items for external circles are not sent based on PGP signatures anymore 2016-04-17 17:13:42 -04:00
Phenom
f2b995768b Fix UnitTests Compilation 2016-04-04 17:18:42 +02:00
csoler
ebf54d1340 fixed unit tests 2016-03-26 17:25:15 -04:00
Phenom
b13292bb80 Fix error reported by CppChecker:
/libretroshare/src/gxs/rsgenexchange.cc:2850: erreur : Cppcheck:
Dereferencing 'grp' after it is deallocated / released
/libretroshare/src/gxstunnel/p3gxstunnel.cc:1004: erreur : Cppcheck:
Invalid usage of output stream: '<< std::cerr'.
/libretroshare/src/util/contentvalue.cc:185: erreur : Cppcheck: Memory
leak: dest
/openpgpsdk/src/openpgpsdk/reader_armoured.c:575: erreur : Cppcheck:
Common realloc mistake: 'buf' nulled but not freed upon failure
/retroshare-gui/src/gui/FileTransfer/DLListDelegate.cpp:103: erreur :
Cppcheck: Array 'byteUnits[4]' accessed at index 4, which is out of
bounds.
/retroshare-gui/src/gui/FileTransfer/DLListDelegate.cpp:122: erreur :
Cppcheck: Array 'byteUnits[4]' accessed at index 4, which is out of
bounds.
/retroshare-gui/src/gui/FileTransfer/DLListDelegate.cpp:141: erreur :
Cppcheck: Array 'byteUnits[4]' accessed at index 4, which is out of
bounds.
/retroshare-gui/src/gui/FileTransfer/ULListDelegate.cpp:92: erreur :
Cppcheck: Array 'byteUnits[4]' accessed at index 4, which is out of
bounds.
/retroshare-gui/src/gui/FileTransfer/ULListDelegate.cpp:111: erreur :
Cppcheck: Array 'byteUnits[4]' accessed at index 4, which is out of
bounds.
/retroshare-gui/src/gui/People/PeopleDialog.cpp:774: erreur : Cppcheck:
Uninitialized variable: layout
/retroshare-gui/src/gui/People/PeopleDialog.cpp:864: erreur : Cppcheck:
Uninitialized variable: layout
/retroshare-gui/src/gui/common/AvatarWidget.cpp:225: erreur : Cppcheck:
Uninitialized variable: status
/retroshare-nogui/src/rpc/proto/rpcprotostream.cc:805: erreur :
Cppcheck: Memory leak: buffer
/supportlibs/pegmarkdown/GLibFacade.c:150: erreur : Cppcheck: va_list
'args' was opened but not closed by va_end().
/openpgpsdk/src/openpgpsdk/reader_armoured.c:575: erreur : Cppcheck:
Common realloc mistake: 'buf' nulled but not freed upon failure
/tests/unittests/libretroshare/serialiser/rsturtleitem_test.cc:213:
erreur : Cppcheck: Return value of allocation function 'init_item' is
not stored.
2016-03-20 13:12:30 +01:00
Cyril Soler
cd4d743474 added missing -lpthread 2016-02-22 10:14:29 -05:00
electron128
68cd1f9da5 disabled gxs_grp_sync test, because it fails after rebase to master 2016-02-14 10:21:48 +01:00
electron128
a031d1e1b5 disabled tlvrandom test because it is buggy and fails sometimes 2016-02-13 11:55:29 +01:00
electron128
b874167785 give gxs grp sync test more time, because of sync and timestamp update cycle times 2016-02-13 11:55:29 +01:00
electron128
8f64df02da fix compile for new gxs metadata serialisation 2016-02-13 11:55:29 +01:00
electron128
a6a3d66a83 exclude not serialised member from operator== for RsNxsTransac 2016-02-13 11:55:29 +01:00
electron128
a8b2bc776e fixed threading issue in NxsTestHub. NxsTesthub has to wait for its own thread to shut down on test end. 2016-02-13 11:55:28 +01:00
electron128
63c6629e57 added missing initialisation of local, not serialised msg meta data in NxsTestHub 2016-02-13 11:55:27 +01:00
electron128
218daa82e9 enabled RsNxsItem test 2016-02-13 11:55:27 +01:00
electron128
c03ce56591 added missing mutex in nxstesthub 2016-02-13 11:55:27 +01:00
electron128
64b9e3477a fixed uninitialised memory read in test libretroshare_gxs.gxs_grp_sync_delayed 2016-02-13 11:55:26 +01:00
electron128
8d15f44c0e added CONFIG+=NO_SQLCIPHER support to unittests (travis wants this) 2016-02-13 11:55:25 +01:00
electron128
9f9221273a - make tests compile
- added tests to travis.yml
- excluded grouteritems and photoitems from test, because they changed too much
- disabled failing tests
- all tests pass in valgrind, without valgrind result is undefined
- to compile tests add CONFIG+=tests to qmake args. Then run tests/unittests/unittests
2016-02-13 11:55:25 +01:00
csoler
ac4f51623b updated tests and also fixed a few bugs in using random initialisation routines
git-svn-id: http://svn.code.sf.net/p/retroshare/code/branches/v0.6-NewGRouterModel@7839 b45a01b8-16f6-495d-af2f-9b41ad6348cc
2015-01-11 22:19:32 +00:00
csoler
e007151197 implemented more tests and fixed a few bugs in GxsSecurity
git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@7683 b45a01b8-16f6-495d-af2f-9b41ad6348cc
2014-11-15 20:24:56 +00:00
csoler
c9881d92a6 fixed compilation of unit tests
git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@7682 b45a01b8-16f6-495d-af2f-9b41ad6348cc
2014-11-15 19:47:59 +00:00
thunder2
dd1f88a1bb Replaced external library libcrypt32-cygwin.a by libcrypt32.a from MinGW for Windows compile.
git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@7588 b45a01b8-16f6-495d-af2f-9b41ad6348cc
2014-10-08 16:44:25 +00:00
chrisparker126
5399618cef completed addition of get statistic feature of gxs
git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@7461 b45a01b8-16f6-495d-af2f-9b41ad6348cc
2014-07-20 11:21:06 +00:00
chrisparker126
be20086e09 adding new test for stats feature
git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@7460 b45a01b8-16f6-495d-af2f-9b41ad6348cc
2014-07-19 21:26:45 +00:00
chrisparker126
a29f382175 fixed unit test compile
updated support file for unit test


git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@7459 b45a01b8-16f6-495d-af2f-9b41ad6348cc
2014-07-19 19:08:27 +00:00
chrisparker126
621d8ba9df updated .pro build file for tests
git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@7385 b45a01b8-16f6-495d-af2f-9b41ad6348cc
2014-05-27 21:30:23 +00:00
chrisparker126
0dabe4b8a1 support for retroshare links in gxs forums
- only group can link at the moment

added more nxs tests and better cleanup
- test ability sync with a delayed circle load 

git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@7384 b45a01b8-16f6-495d-af2f-9b41ad6348cc
2014-05-27 21:14:05 +00:00
chrisparker126
a21c3f75fb more changes to support testing of delayed canSend signal from circles and reputations
git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@7375 b45a01b8-16f6-495d-af2f-9b41ad6348cc
2014-05-18 17:24:21 +00:00
chrisparker126
5eef86d9fd - Added clean up of test data
- re-enabled gxs test code

git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@7374 b45a01b8-16f6-495d-af2f-9b41ad6348cc
2014-05-18 16:44:19 +00:00