Commit graph

91 commits

Author SHA1 Message Date
Klaas Freitag
d65b9aa404 Fixed exclude test. 2013-09-03 15:15:14 +02:00
Markus Goetz
b923554935 Revert "DB: Don't use metadata_tmp table"
Let's not do this in the release branch

This reverts commit 79f72a1211.
2013-08-18 17:13:19 +02:00
Markus Goetz
79f72a1211 DB: Don't use metadata_tmp table
Not sure why this was ever needed
2013-08-18 17:05:04 +02:00
Daniel Molkentin
444946ae79 Fix update test 2013-08-07 16:58:29 +02:00
Klaas Freitag
26c0bbd0eb open test db in test correctly. 2013-08-07 15:39:30 +02:00
Klaas Freitag
0191fa43e0 Fix tests after statedb_open had moved. 2013-08-07 12:43:32 +02:00
Daniel Molkentin
d9b34121ae Fix OS X build with -Werror 2013-07-31 14:50:44 +02:00
Olivier Goffart
52c7ff415e Fix the test
After commit a25fbb6160, we re compute the
hash before insterint into the db.  Which means that the test need to
have different paths in order to succeed
2013-07-10 12:15:53 +02:00
Klaas Freitag
72cc0f5d7c Fixed testcase. 2013-06-10 11:48:38 +02:00
Klaas Freitag
e4b9f21f81 Fix statedb load test case. 2013-05-22 16:51:09 +02:00
Klaas Freitag
f2669ae886 Fix statedb-query test. 2013-05-22 16:43:31 +02:00
Olivier Goffart
95edd6a9de Merge remote-tracking branch 'origin/master' into dav
Conflicts:
	config/ocsync_log.conf
	src/csync.c
	src/csync.h
	src/csync_config.c
	src/csync_log.h
	src/csync_private.h
	src/csync_statedb.c
	tests/csync_tests/check_csync_config.c
2012-12-03 17:32:08 +01:00
Klaas Freitag
f90550775c Fixed tests to also run on debian host 2012-11-23 12:51:01 +01:00
Klaas Freitag
3fcc56ebbc Add removal of a test dir 2012-11-23 11:43:39 +01:00
Klaas Freitag
1147e77d67 Fix delete in csync_config 2012-11-23 11:26:24 +01:00
Klaas Freitag
d5a32543ef Fix update test. 2012-11-09 17:24:17 +01:00
Klaas Freitag
7aeeeae037 Fix test, avoid double free. 2012-11-09 17:16:27 +01:00
Andreas Schneider
2752a9e9c0 tests: Remove the right directory in the teardown function. 2012-10-30 14:49:18 +01:00
Andreas Schneider
e3e00b4b32 tests: Add a csync_log test. 2012-10-30 11:39:51 +01:00
Andreas Schneider
8a0b4319d3 csync: Add a new logging system. 2012-10-30 11:27:21 +01:00
Klaas Freitag
2bb52ef6f9 Merge branch 'master' into dav - get cmocka tests and database move.
Conflicts:
	CMakeLists.txt
	cmake/Modules/FindCMocka.cmake
	src/csync.c
	src/csync_exclude.c
	src/csync_reconcile.c
	src/csync_statedb.c
	src/csync_update.c
	src/csync_util.c
	src/vio/csync_vio.c
	tests/CMakeLists.txt
	tests/csync_tests/check_csync_exclude.c
	tests/csync_tests/check_csync_statedb_load.c
	tests/csync_tests/check_csync_statedb_query.c
	tests/csync_tests/check_csync_update.c
	tests/std_tests/check_std_c_path.c
2012-10-27 19:27:14 +02:00
Klaas Freitag
9e4c873b16 Fixed csync testcases. 2012-10-26 21:33:13 +02:00
Andreas Schneider
e43466d09d tests: Add exclude test for journal db names. 2012-10-22 15:13:52 +02:00
Klaas Freitag
01a25db3fb exclude: Fix checking the exclude pattern for subdirs.
Signed-off-by: Andreas Schneider <asn@cryptomilk.org>
2012-10-22 12:26:35 +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
Klaas Freitag
b976ac914d Also check the files basename against the exclude pattern. 2012-09-25 15:41:55 +03:00
Klaas Freitag
4eb1ae7853 Fix test: Status must be INSTRUCTION_EVAL.
This test runs on an empty database. That also means that there is no
ID in the database which is needed to detect the update. An empty
ID means that the status must be evaluated.
2012-09-24 16:47:43 +03:00
Klaas Freitag
407b87c17b Fix statedb test: Added new columns. 2012-09-24 16:28:43 +03:00
Klaas Freitag
0416107951 Fix testcase. 2012-08-29 13:34:42 +03:00
Klaas Freitag
2e3a92df4c tests: Treewalk function unit tests added. 2012-05-07 15:48:34 +02:00
Andreas Schneider
2ec6c98101 tests: Fix the csync util test. 2012-02-04 13:30:10 +01:00
Andreas Schneider
b629730fb0 Created a better function to create the file stat. 2008-09-01 14:53:26 +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
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
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