Return-Path: X-Original-To: apmail-subversion-commits-archive@minotaur.apache.org Delivered-To: apmail-subversion-commits-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id B48CF1015E for ; Fri, 25 Oct 2013 13:34:50 +0000 (UTC) Received: (qmail 20499 invoked by uid 500); 25 Oct 2013 13:34:50 -0000 Delivered-To: apmail-subversion-commits-archive@subversion.apache.org Received: (qmail 20393 invoked by uid 500); 25 Oct 2013 13:34:50 -0000 Mailing-List: contact commits-help@subversion.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@subversion.apache.org Delivered-To: mailing list commits@subversion.apache.org Received: (qmail 20385 invoked by uid 99); 25 Oct 2013 13:34:50 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 25 Oct 2013 13:34:49 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=5.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.4] (HELO eris.apache.org) (140.211.11.4) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 25 Oct 2013 13:34:47 +0000 Received: from eris.apache.org (localhost [127.0.0.1]) by eris.apache.org (Postfix) with ESMTP id 912C02388868; Fri, 25 Oct 2013 13:34:26 +0000 (UTC) Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: svn commit: r1535730 - /subversion/branches/log-addressing/subversion/tests/libsvn_fs_fs/fs-fs-pack-test.c Date: Fri, 25 Oct 2013 13:34:26 -0000 To: commits@subversion.apache.org From: stefan2@apache.org X-Mailer: svnmailer-1.0.9 Message-Id: <20131025133426.912C02388868@eris.apache.org> X-Virus-Checked: Checked by ClamAV on apache.org Author: stefan2 Date: Fri Oct 25 13:34:26 2013 New Revision: 1535730 URL: http://svn.apache.org/r1535730 Log: On the log-addressing branch: Extend our FSFS addressing mode upgrade test to verify that pack will handle old mode as well as new mode shards correctly in a single run. * subversion/tests/libsvn_fs_fs/fs-fs-pack-test.c (upgrade_txn_to_log_addressing): fill up the latest shard and pack both shards, the one using phys. addressing and the one using log. addressing Modified: subversion/branches/log-addressing/subversion/tests/libsvn_fs_fs/fs-fs-pack-test.c Modified: subversion/branches/log-addressing/subversion/tests/libsvn_fs_fs/fs-fs-pack-test.c URL: http://svn.apache.org/viewvc/subversion/branches/log-addressing/subversion/tests/libsvn_fs_fs/fs-fs-pack-test.c?rev=1535730&r1=1535729&r2=1535730&view=diff ============================================================================== --- subversion/branches/log-addressing/subversion/tests/libsvn_fs_fs/fs-fs-pack-test.c (original) +++ subversion/branches/log-addressing/subversion/tests/libsvn_fs_fs/fs-fs-pack-test.c Fri Oct 25 13:34:26 2013 @@ -1010,10 +1010,32 @@ upgrade_txn_to_log_addressing(const svn_ SVN_ERR(svn_fs_commit_txn2(NULL, &rev, txn, TRUE, pool)); } - /* verify that our changes got in */ + /* Further changes to fill the shard */ + SVN_ERR(svn_fs_youngest_rev(&rev, fs, pool)); SVN_TEST_ASSERT(rev == SHARD_SIZE + MAX_REV + 1); + while ((rev + 1) % SHARD_SIZE) + { + svn_fs_txn_t *txn; + if (rev % SHARD_SIZE == 0) + break; + + SVN_ERR(svn_fs_begin_txn(&txn, fs, rev, pool)); + SVN_ERR(svn_fs_txn_root(&root, txn, pool)); + SVN_ERR(svn_test__set_file_contents(root, "iota", + get_rev_contents(rev + 1, pool), + pool)); + SVN_ERR(svn_fs_commit_txn(NULL, &rev, txn, pool)); + } + + /* Pack repo to verify that old and new shard get packed according to + their respective addressing mode */ + + SVN_ERR(svn_fs_pack(REPO_NAME, NULL, NULL, NULL, NULL, pool)); + + /* verify that our changes got in */ + SVN_ERR(svn_fs_revision_root(&root, fs, rev, pool)); for (i = 0; i < SHARD_SIZE; ++i) {