"http://subversion.tigris.org", 0, pool)); return SVN_NO_ERROR; } /* The test table. */ struct svn_test_descriptor_t test_funcs[] = { SVN_TEST_NULL, /* The no-op conversion. */ SVN_TEST_PASS(noop), /* Conversions resulting in crlf, no keywords involved. */ SVN_TEST_PASS(crlf_to_crlf), SVN_TEST_PASS(lf_to_crlf), SVN_TEST_PASS(cr_to_crlf), SVN_TEST_PASS(mixed_to_crlf), /* Conversions resulting in lf, no keywords involved. */ SVN_TEST_PASS(lf_to_lf), SVN_TEST_PASS(crlf_to_lf), SVN_TEST_PASS(cr_to_lf), SVN_TEST_PASS(mixed_to_lf), /* Conversions resulting in cr, no keywords involved. */ SVN_TEST_PASS(crlf_to_cr), SVN_TEST_PASS(lf_to_cr), SVN_TEST_PASS(cr_to_cr), SVN_TEST_PASS(mixed_to_cr),
dt->mon = nowexp.tm_mon + 1; dt->mday = nowexp.tm_mday; SVN_ERR(compare_results(dt, &expt)); } for (ft = failure_tests; *ft; ft++) { SVN_ERR(svn_parse_date(&matched, &result, *ft, now, pool)); if (matched) return svn_error_createf (SVN_ERR_TEST_FAILED, NULL, "Match succeeded for '%s'", *ft); } return SVN_NO_ERROR; } /* The test table. */ struct svn_test_descriptor_t test_funcs[] = { SVN_TEST_NULL, SVN_TEST_PASS(test_time_to_cstring), SVN_TEST_PASS(test_time_from_cstring), SVN_TEST_PASS(test_time_from_cstring_old), SVN_TEST_PASS(test_time_invariant), SVN_TEST_PASS(test_parse_date), SVN_TEST_NULL };
svn_test_opts_t *opts, apr_pool_t *pool) { apr_uint32_t seed; svn_error_t *err = do_random_combine_test(msg, msg_only, pool, &seed); if (!msg_only) printf("SEED: Last seen = %lu\n", (unsigned long) seed); return err; } /* Change to 1 to enable the unit test for the delta combiner's range index: */ #if 0 #include "range-index-test.h" #endif /* The test table. */ struct svn_test_descriptor_t test_funcs[] = { SVN_TEST_NULL, SVN_TEST_PASS(random_test), SVN_TEST_PASS(random_combine_test), #ifdef SVN_RANGE_INDEX_TEST_H SVN_TEST_PASS(random_range_index_test), #endif SVN_TEST_NULL };
if (!provider) return svn_error_createf (SVN_ERR_TEST_FAILED, NULL, "svn_auth_get_platform_specific_provider('kwallet', " \ "'ssl_client_cert_pw') should not return NULL"); /* Make sure you do not get a Windows auth provider */ svn_auth_get_platform_specific_provider(&provider, "windows", "simple", pool); if (provider) return svn_error_createf (SVN_ERR_TEST_FAILED, NULL, "svn_auth_get_platform_specific_provider('windows', 'simple') should " \ "return NULL"); #endif return SVN_NO_ERROR; } /* The test table. */ struct svn_test_descriptor_t test_funcs[] = { SVN_TEST_NULL, SVN_TEST_PASS(test_platform_specific_auth_providers), SVN_TEST_NULL };
/* Make sure a different key was returned. */ if ((! args.key) || (! strcmp(old_key, args.key))) return svn_error_create(SVN_ERR_FS_GENERAL, NULL, "copy of string failed to return new key"); /* Verify record's size and contents. */ SVN_ERR(svn_fs_base__retry_txn(args.fs, txn_body_verify_string, &args, pool)); return SVN_NO_ERROR; } /* The test table. */ struct svn_test_descriptor_t test_funcs[] = { SVN_TEST_NULL, SVN_TEST_PASS(write_new_rep), SVN_TEST_PASS(write_rep), SVN_TEST_PASS(read_rep), SVN_TEST_PASS(delete_rep), SVN_TEST_PASS(test_strings), SVN_TEST_PASS(write_null_string), SVN_TEST_PASS(abort_string), SVN_TEST_PASS(copy_string), SVN_TEST_NULL };
pool)); SVN_ERR(check_split_url("test-repo-split-fs3", NULL, opts, pool)); return SVN_NO_ERROR; } /* The test table. */ #if defined(WIN32) || defined(__CYGWIN__) #define HAS_UNC_HOST 1 #else #define HAS_UNC_HOST 0 #endif struct svn_test_descriptor_t test_funcs[] = { SVN_TEST_NULL, SVN_TEST_PASS(open_ra_session), SVN_TEST_PASS(get_youngest_rev), SVN_TEST_PASS(split_url_syntax), SVN_TEST_SKIP(split_url_bad_host, HAS_UNC_HOST), SVN_TEST_PASS(split_url_host), SVN_TEST_PASS(split_url_test), SVN_TEST_NULL };
SVN_ERR(svn_txdelta_next_window(&window, txstream, pool)); if (window == NULL) break; /* ### examine the window */ } actual = svn_checksum__from_digest(svn_txdelta_md5_digest(txstream), svn_checksum_md5, pool);; printf(" actual: %s\n", svn_checksum_to_cstring(actual, pool)); if (!svn_checksum_match(expected, actual)) { return svn_error_create(SVN_ERR_TEST_FAILED, NULL, "Checksums did not match."); } return SVN_NO_ERROR; } /* The test table. */ struct svn_test_descriptor_t test_funcs[] = { SVN_TEST_NULL, SVN_TEST_PASS(stream_window_test), SVN_TEST_NULL };
&& (strcmp(key, "/dir4") == 0)) ; else if ((change->change_kind == svn_fs_path_change_replace) && (strcmp(key, "/dir1") == 0)) ; else if ((change->change_kind == svn_fs_path_change_delete) && (strcmp(key, "/file1") == 0)) ; else return svn_error_create(SVN_ERR_TEST_FAILED, NULL, "got wrong changes"); } return SVN_NO_ERROR; } /* The test table. */ struct svn_test_descriptor_t test_funcs[] = { SVN_TEST_NULL, SVN_TEST_PASS(changes_add), SVN_TEST_PASS(changes_fetch_raw), SVN_TEST_PASS(changes_delete), SVN_TEST_PASS(changes_fetch), SVN_TEST_PASS(changes_fetch_ordering), SVN_TEST_NULL };
return test_stringbuf_unequal("abc", "abb", msg_only, pool); } /* ==================================================================== 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 */ struct svn_test_descriptor_t test_funcs[] = { SVN_TEST_NULL, SVN_TEST_PASS(test1), SVN_TEST_PASS(test2), SVN_TEST_PASS(test3), SVN_TEST_PASS(test4), SVN_TEST_PASS(test5), SVN_TEST_PASS(test6), SVN_TEST_PASS(test7), SVN_TEST_PASS(test8), SVN_TEST_PASS(test9), SVN_TEST_PASS(test10), SVN_TEST_PASS(test11), SVN_TEST_PASS(test12), SVN_TEST_PASS(test13), SVN_TEST_PASS(test14), SVN_TEST_PASS(test15), SVN_TEST_PASS(test16),
add(build_atom(sizeof(buf), buf, pool), middle); } add(middle, top); } str = svn_skel__unparse(top, pool); reparsed = svn_skel__parse(str->data, str->len, pool); if (! skel_equal(top, reparsed)) return fail(pool, "failed to reparse list of lists"); } return SVN_NO_ERROR; } /* The test table. */ struct svn_test_descriptor_t test_funcs[] = { SVN_TEST_NULL, SVN_TEST_PASS(parse_implicit_length), SVN_TEST_PASS(parse_explicit_length), SVN_TEST_PASS(parse_invalid_atoms), SVN_TEST_PASS(parse_list), SVN_TEST_PASS(unparse_implicit_length), SVN_TEST_PASS(unparse_list), SVN_TEST_NULL };
/* Create the packed FS and open it. */ SVN_ERR(create_packed_filesystem(REPO_NAME, opts, 11, 5, pool)); SVN_ERR(svn_fs_open(&fs, REPO_NAME, NULL, pool)); /* Now do a commit. */ SVN_ERR(svn_fs_begin_txn(&txn, fs, 12, pool)); SVN_ERR(svn_fs_txn_root(&txn_root, txn, pool)); SVN_ERR(svn_test__set_file_contents(txn_root, "iota", "How much better is it to get wisdom than gold! and to get " "understanding rather to be chosen than silver!", pool)); SVN_ERR(svn_fs_commit_txn(&conflict, &after_rev, txn, pool)); return SVN_NO_ERROR; } #undef REPO_NAME /* ------------------------------------------------------------------------ */ /* The test table. */ struct svn_test_descriptor_t test_funcs[] = { SVN_TEST_NULL, SVN_TEST_PASS(pack_filesystem), SVN_TEST_PASS(pack_even_filesystem), SVN_TEST_PASS(read_packed_fs), SVN_TEST_PASS(commit_packed_fs), SVN_TEST_NULL };