/* ==================================================================== If you add a new test to this file, update this array. (These globals are required by our included main()) */ /* An array of all test functions */ static int max_threads = 1; static struct svn_test_descriptor_t test_funcs[] = { SVN_TEST_NULL, SVN_TEST_OPTS_PASS(test_text_retrieval, "test svn_config"), SVN_TEST_OPTS_PASS(test_boolean_retrieval, "test svn_config boolean conversion"), SVN_TEST_OPTS_PASS(test_has_section_case_insensitive, "test svn_config_has_section (case insensitive)"), SVN_TEST_OPTS_PASS(test_has_section_case_sensitive, "test svn_config_has_section (case sensitive)"), SVN_TEST_OPTS_PASS(test_has_option_case_sensitive, "test case-sensitive option name lookup"), SVN_TEST_OPTS_PASS(test_stream_interface, "test svn_config_parse"), SVN_TEST_PASS2(test_ignore_bom, "test parsing config file with BOM"), SVN_TEST_OPTS_PASS(test_read_only_mode, "test r/o mode"), SVN_TEST_OPTS_PASS(test_expand,
/* Verify record's size and contents. */ SVN_ERR(svn_fs_base__retry_txn(args.fs, txn_body_verify_string, &args, FALSE, pool)); return SVN_NO_ERROR; } /* The test table. */ struct svn_test_descriptor_t test_funcs[] = { SVN_TEST_NULL, SVN_TEST_OPTS_PASS(write_new_rep, "write a new rep, get a new key back"), SVN_TEST_OPTS_PASS(write_rep, "write a new rep, then overwrite it"), SVN_TEST_OPTS_PASS(read_rep, "write and overwrite a new rep; confirm with reads"), SVN_TEST_OPTS_PASS(delete_rep, "write, then delete, a new rep; confirm deletion"), SVN_TEST_OPTS_PASS(test_strings, "test many strings table functions together"), SVN_TEST_OPTS_PASS(write_null_string, "write a null string"), SVN_TEST_OPTS_PASS(abort_string, "write a string, then abort during an overwrite"), SVN_TEST_OPTS_PASS(copy_string, "create and copy a string"), SVN_TEST_NULL
SVN_ERR(svn_cache__set(cache, long_key, &fifty, pool)); SVN_ERR(svn_cache__get((void **) &answer, &found, cache, long_key, pool)); if (! found) return svn_error_create(SVN_ERR_TEST_FAILED, NULL, "cache failed to find entry for 'fifty'"); if (*answer != 50) return svn_error_createf(SVN_ERR_TEST_FAILED, NULL, "expected 50 but found '%ld'", *answer); return SVN_NO_ERROR; } /* The test table. */ struct svn_test_descriptor_t test_funcs[] = { SVN_TEST_NULL, SVN_TEST_PASS2(test_inprocess_cache_basic, "basic inprocess svn_cache test"), SVN_TEST_OPTS_PASS(test_memcache_basic, "basic memcache svn_cache test"), SVN_TEST_OPTS_PASS(test_memcache_long_key, "memcache svn_cache with very long keys"), SVN_TEST_PASS2(test_membuffer_cache_basic, "basic membuffer svn_cache test"), SVN_TEST_NULL };
SVN_ERR(svn_wc__db_pristine_install(install_data, data_sha1, data_md5, pool)); } return SVN_NO_ERROR; #else return svn_error_create(SVN_ERR_TEST_SKIPPED, NULL, "The consistency check to be tested is only " "active in debug-mode builds"); #endif } static int max_threads = -1; static struct svn_test_descriptor_t test_funcs[] = { SVN_TEST_NULL, SVN_TEST_OPTS_PASS(pristine_write_read, "pristine_write_read"), SVN_TEST_OPTS_PASS(pristine_delete_while_open, "pristine_delete_while_open"), SVN_TEST_OPTS_PASS(reject_mismatching_text, "reject_mismatching_text"), SVN_TEST_NULL }; SVN_TEST_MAIN
return svn_error_create(SVN_ERR_TEST_FAILED, err, "Expected SVN_ERR_FS_CORRUPT error; got:"); svn_error_clear(err); return SVN_NO_ERROR; } #undef REPO_NAME #undef MAX_REV #undef SHARD_SIZE /* ------------------------------------------------------------------------ */ /* The test table. */ struct svn_test_descriptor_t test_funcs[] = { SVN_TEST_NULL, SVN_TEST_OPTS_PASS(pack_filesystem, "pack a FSFS filesystem"), SVN_TEST_OPTS_PASS(pack_even_filesystem, "pack FSFS where revs % shard = 0"), SVN_TEST_OPTS_PASS(read_packed_fs, "read from a packed FSFS filesystem"), SVN_TEST_OPTS_PASS(commit_packed_fs, "commit to a packed FSFS filesystem"), SVN_TEST_OPTS_PASS(get_set_revprop_packed_fs, "get/set revprop while packing FSFS filesystem"), SVN_TEST_OPTS_PASS(recover_fully_packed, "recover a fully packed filesystem"), SVN_TEST_NULL };