Andreas Schneider
c24a18cbfd
cmake: Cleanup testing and enable test target.
2012-10-19 19:07:15 +02:00
Andreas Schneider
ac5855940a
tests: Remove the check_vio_local test.
...
It is tested by check_vio anyway.
2012-10-19 18:26:19 +02:00
Andreas Schneider
fafa632b65
tests: Migrate check_vio_handle to cmocka.
2012-10-19 18:21:37 +02:00
Andreas Schneider
7aa63e23aa
tests: Migrate check_vio_file_stat to cmocka.
2012-10-19 18:16:36 +02:00
Andreas Schneider
8d737287fb
tests: Migrate check_vio to cmocka.
2012-10-19 18:14:28 +02:00
Andreas Schneider
ecd944a162
tests: Migrate check_csync_update to cmocka.
2012-10-19 17:25:41 +02:00
Andreas Schneider
7c59ea2999
tests: Migrate check_csync_util to cmocka.
2012-10-19 16:10:30 +02:00
Andreas Schneider
b58bcb510d
tests: Migrate check_csync_time to cmocka.
2012-10-19 16:06:47 +02:00
Andreas Schneider
792be0f053
tests: Migrate check_csync_statedb_query to cmocka.
2012-10-19 15:53:22 +02:00
Andreas Schneider
aa227aa10b
tests: Migrate check_csync_statedb_load to cmocka.
2012-10-19 14:43:25 +02:00
Andreas Schneider
3b7104f514
tests: Migrate check_csync_lock to cmocka.
2012-10-19 14:29:10 +02:00
Andreas Schneider
eded4915e9
tests: Migrate check_csync_init to cmocka.
2012-10-19 10:57:40 +02:00
Andreas Schneider
3a179c8822
tests: Migrate check_csync_exclude to cmocka.
2012-10-18 15:17:24 +02:00
Andreas Schneider
ab5f38a680
cmake: Add check for asprintf().
2012-10-18 15:07:17 +02:00
Andreas Schneider
13df0426af
tests: Migrate check_csync_create to cmocka.
2012-10-17 17:46:45 +02:00
Andreas Schneider
b4eee0383d
tests: Migrate check_csync_config to cmocka.
2012-10-17 17:03:22 +02:00
Andreas Schneider
6dcb50d8ba
tests: Disable log test.
2012-10-16 17:23:07 +02:00
Andreas Schneider
1582067200
tests: Migrate check_std_c_tim to cmocka.
2012-10-16 17:06:46 +02:00
Andreas Schneider
f4b1ce9350
tests: Migrate check_std_c_str to cmocka.
2012-10-16 17:01:25 +02:00
Andreas Schneider
3395ed2b95
tests: Migrate check_std_c_rbtree to cmocka.
2012-10-16 16:37:38 +02:00
Andreas Schneider
17e0da1e65
tests: Migrate check_std_c_path to cmocka.
2012-10-16 15:49:06 +02:00
Andreas Schneider
4db3194e84
tests: Migrate check_std_c_list to cmocka.
2012-10-16 15:32:33 +02:00
Andreas Schneider
4529928edc
tests: Migrate check_std_c_jhash to cmocka.
2012-10-16 14:54:59 +02:00
Andreas Schneider
7155528bb5
tests: Migrate check_std_c_file to cmocka.
2012-10-16 14:31:21 +02:00
Andreas Schneider
24f066ef0b
tests: Migrate check_std_c_dir to cmocka.
2012-10-16 11:04:13 +02:00
Andreas Schneider
b1b0c2c510
tests: Start to use cmocka for the tests.
2012-10-16 10:37:40 +02:00
Klaas Freitag
4bf72957bb
Added test for std function c_tmpname.
2012-10-01 17:24:02 +02:00
Klaas Freitag
d8bac80f51
tests: Added another test to the ownCloud module test.
...
Signed-off-by: Andreas Schneider <asn@cryptomilk.org>
2012-04-17 11:15:34 +02:00
Klaas Freitag
dec1e6a3cf
tests: Use correct value from perl stat call to get the file mtime.
...
Signed-off-by: Andreas Schneider <asn@cryptomilk.org>
2012-04-17 10:48:12 +02:00
Klaas Freitag
8e64584c12
tests: Added test script to test the ownCloud module of csync.
...
The script t1.pl is a perl based check script for the ownCloud
module of csync. It requires a running ownCloud server and does
a couple of blackbox tests with it.
See README for more information how to operate.
Signed-off-by: Andreas Schneider <asn@cryptomilk.org>
2012-04-17 10:40:21 +02:00
Andreas Schneider
2ec6c98101
tests: Fix the csync util test.
2012-02-04 13:30:10 +01:00
Andreas Schneider
e8b0b34fe5
tests: Fix time test.
2012-02-04 13:24:56 +01:00
Andreas Schneider
19abbc04ff
csync: Use csync_gettime().
2012-02-04 13:24:53 +01:00
Andreas Schneider
32ee0d9610
Add c_rmdirs() check.
2009-05-14 17:27:54 +02:00
Andreas Schneider
3114e02833
Add tests for c_lowercase and c_uppercase.
2009-04-29 09:55:13 +02:00
Andreas Schneider
0634e0fdea
Don't require a C++ compiler.
2009-03-18 10:55:14 +01:00
Andreas Schneider
0cb00f266d
Remove unused variable.
2008-09-25 00:56:24 +02:00
Andreas Schneider
646de1261d
Fix a memory leak in the rbtree testcase.
2008-09-22 22:22:45 +02:00
Andreas Schneider
1b4e340565
Fix compiler warnings.
2008-09-11 14:16:04 +02:00
Andreas Schneider
b629730fb0
Created a better function to create the file stat.
2008-09-01 14:53:26 +02:00
Andreas Schneider
c0f7b4546f
Add parse_uri tests.
2008-08-18 09:46:14 +02:00
Andreas Schneider
de86c0ba6b
Add more tests for the virtual io system.
2008-08-06 18:14:34 +02:00
Andreas Schneider
d9432bee61
Add no memory tests to the rbtree testcases.
2008-08-05 11:31:37 +02:00
Andreas Schneider
1315b1197f
Fix a memory leak in the rename test.
2008-08-04 17:21:32 +02:00
Andreas Schneider
1572841ec5
Add a testcase for the update detection.
2008-08-01 15:58:28 +02:00
Andreas Schneider
7143f20f95
Add memory NULL tests.
2008-07-28 11:49:56 +02:00
Andreas Schneider
e84527ccc8
Add a valgrind suppression file to get rid of 3rdparty errors.
2008-07-10 19:08:24 +02:00
Andreas Schneider
e5286c7c8a
Rename journal functions to statedb.
2008-07-09 10:10:00 +02:00
Andreas Schneider
88690312d7
Rename the csync_journal files to csync_statedb.
2008-07-09 09:57:19 +02:00
Andreas Schneider
9a96239e7c
Change the exclude list to match the directories exactly.
2008-06-28 20:46:25 +02:00
Andreas Schneider
bd8034170a
Fix printf attributes.
2008-06-27 18:52:09 +02:00
Andreas Schneider
262a179c68
Add a strreplace function to stdlib.
2008-06-16 12:12:06 +02:00
Andreas Schneider
72174b6c82
Fix journal query test case.
...
The remote directory must exist for testing.
2008-06-16 11:53:59 +02:00
Andreas Schneider
afa3bd7b80
Fix the exclude list test.
2008-06-13 09:39:17 +02:00
Andreas Schneider
e2b049c935
Static functions should all start with an underscore.
...
For better readablity...
2008-06-02 15:11:45 +02:00
Andreas Schneider
356da661d7
Cleanup after tests.
2008-05-27 15:47:56 +02:00
Andreas Schneider
64b35453ec
Improve the csync test, use other config dir and delete it.
2008-05-27 14:40:27 +02:00
Andreas Schneider
cce81bc154
Use a better name for the status defines.
2008-05-27 14:15:44 +02:00
Andreas Schneider
3137967714
Add basename and dirname test with a uri.
2008-05-21 16:05:45 +02:00
Andreas Schneider
b68aad2b70
Improve testcase for journal close function.
2008-05-20 16:29:45 +02:00
Andreas Schneider
891827a48a
Add test with 3 and 5 seconds.
2008-05-20 14:26:37 +02:00
Andreas Schneider
7837076f84
Include the right header file.
2008-05-20 12:08:22 +02:00
Andreas Schneider
8dd91e1e56
Add test for c_list functions.
2008-05-20 12:05:53 +02:00
Andreas Schneider
55467248a8
Add tests for c_time functions.
2008-05-19 17:31:59 +02:00
Andreas Schneider
476fd5d00e
Add a test for csync_vio_mkdirs().
2008-05-19 17:05:39 +02:00
Andreas Schneider
92396e614c
Fix testsetup for journal query test.
2008-05-14 13:46:01 +02:00
Andreas Schneider
87a2805a91
Fix a build warning.
2008-05-09 11:30:53 +02:00
Andreas Schneider
7f3cba1517
Add missing tests for journal functions.
2008-05-09 11:25:21 +02:00
Andreas Schneider
738bd55231
Add test for c_rbtree_dup().
2008-05-09 11:10:00 +02:00
Andreas Schneider
917f369e67
Use the dummy module to test csync_init() with module loading.
2008-05-09 10:57:08 +02:00
Andreas Schneider
029a6679da
Add journal load and query tests.
2008-05-09 10:00:10 +02:00
Andreas Schneider
364b8038e6
Split up journal tests in test which needs init and just create.
2008-05-09 09:59:26 +02:00
Andreas Schneider
9c245073c0
Split csync tests into two tests.
2008-05-09 09:54:08 +02:00
Andreas Schneider
16ae13d095
Remove standard csync test.
2008-05-09 09:53:48 +02:00
Andreas Schneider
9f887635b2
Add tests for the csync_util functions.
2008-05-09 09:26:12 +02:00
Andreas Schneider
be57b79d6c
Add test for csync_difftime().
2008-05-09 09:25:50 +02:00
Andreas Schneider
9a440d4501
Respect return values in tests.
2008-05-08 17:28:12 +02:00
Andreas Schneider
46bedd6285
Remove obsolete definition.
2008-05-08 15:07:32 +02:00
Andreas Schneider
e76c2db9f6
Fix directories for exclude tests.
2008-05-08 10:56:08 +02:00
Andreas Schneider
d0a6e9221b
Fix tests and remove developer mode.
...
This allows to run all tests without the need for a special developer
mode.
2008-05-07 15:33:55 +02:00
Andreas Schneider
e41e8e1610
Add commandline parsing to all tests.
2008-05-07 11:09:56 +02:00
Andreas Schneider
7b6be113ea
Add commandline options support for testcases.
...
This adds a simple possibility to run the test not in the fork mode.
2008-05-07 10:56:36 +02:00
Andreas Schneider
ad67b21062
Use always the same path for testing.
2008-05-05 10:55:05 +02:00
Andreas Schneider
c318daed7f
Add time difference check to the init function.
2008-05-05 10:48:05 +02:00
Andreas Schneider
f2145a0e92
Fix testcase for insert metadata.
2008-04-30 12:33:18 +02:00
Andreas Schneider
6ba2a31f04
Add missing tests for journal.
2008-04-30 10:39:23 +02:00
Andreas Schneider
8503dcbb1d
Adapt exclude list for updated csync_exclude.conf.
2008-04-29 15:54:41 +02:00
Andreas Schneider
997ec6db98
Speedup the journal creation and adapt the testcases.
2008-04-29 14:21:16 +02:00
Andreas Schneider
27fb5d9128
Fix several bugs in the journal query function.
2008-04-29 11:42:20 +02:00
Andreas Schneider
3bf6fc7e82
Fix test to check for status flag.
2008-04-29 11:21:22 +02:00
Andreas Schneider
cc4c636ed4
Add function to create tables in the journal.
2008-04-29 09:24:28 +02:00
Andreas Schneider
e8b4f4c5e1
Fix memory leak in vio test.
2008-04-26 20:48:12 +02:00
Andreas Schneider
7bb4091787
Define test mode for logging.
2008-04-26 10:13:09 +02:00
Andreas Schneider
6820819c1e
Add a null csync_destroy test.
2008-04-26 10:12:16 +02:00
Andreas Schneider
bc54165b13
Add missing testcases for csync_vio.
2008-04-25 17:13:27 +02:00
Andreas Schneider
817dc1c2a4
Add csync_vio_local_close test will NULL.
2008-04-25 17:12:19 +02:00
Andreas Schneider
5a13a0ee5a
Add the missing tests for csync_vio_local.
2008-04-25 16:49:14 +02:00
Andreas Schneider
17faefbffe
Add test for file functions of csync_vio_local.
2008-04-25 15:10:01 +02:00
Andreas Schneider
e6b45181f3
Add the possibility to disable log4c in testcases.
2008-04-25 10:56:23 +02:00
Andreas Schneider
23b40250ef
Fix the exclude list test.
2008-04-24 09:39:20 +02:00