Bug 709198 - Add regression test for contacts database migrations
authorTristan Van Berkom <tristanvb@openismus.com>
Wed, 25 Sep 2013 17:54:07 +0000 (19:54 +0200)
committerTristan Van Berkom <tristanvb@openismus.com>
Wed, 2 Oct 2013 20:48:10 +0000 (22:48 +0200)
commitca64872e132770264f59b49418f5304c8c89e832
tree30cb223ca48bbf3e97fcb806b8a8a5784a546fe6
parent50eeffb5c026d0e88fd31a6fddbf34289adf1072
Bug 709198 - Add regression test for contacts database migrations

The migration tests come with a few components:

  o tests/book-migration/vcards/*.vcf:
    The vcards which the test case expects to find in the migrated
    databases.

  o tests/book-migration/db/[various versions]/[File backend files]:
    Various sandboxes created from the vcards, each one created
    with a different stable version of EDS

  o tests/book-migration/test-migration.c:
    The actual test, this automatically loops over the available
    test directories and runs the migration suite for each version

  o tests/book-migration/setup-migration-test.c:
    A simple program used to inject the test contacts into EDS,
    this program can be used to generate the test sandbox from
    EDS version 3.0 onward.

  o The makefile also contains a 'setup-migration' target which
    can be used to generate a new repository automatically in
    the tests/book-migration/db/ directory with the current version,
    this can only be used to generate the sandbox from 3.10 and
    above.
36 files changed:
Makefile.am
configure.ac
tests/Makefile.am
tests/book-migration/Makefile.am [new file with mode: 0644]
tests/book-migration/db/3.0/addressbook.db.summary [new file with mode: 0644]
tests/book-migration/db/3.0/addressbook.dump [new file with mode: 0644]
tests/book-migration/db/3.2/addressbook.dump [new file with mode: 0644]
tests/book-migration/db/3.2/contacts.db [new file with mode: 0644]
tests/book-migration/db/3.4/addressbook.dump [new file with mode: 0644]
tests/book-migration/db/3.4/contacts.db [new file with mode: 0644]
tests/book-migration/db/3.6/addressbook.dump [new file with mode: 0644]
tests/book-migration/db/3.6/contacts.db [new file with mode: 0644]
tests/book-migration/db/3.8/contacts.db [new file with mode: 0644]
tests/book-migration/db/Makefile.am [new file with mode: 0644]
tests/book-migration/setup-migration-test.c [new file with mode: 0644]
tests/book-migration/test-migration.c [new file with mode: 0644]
tests/book-migration/vcards/migrate-1.vcf [new file with mode: 0644]
tests/book-migration/vcards/migrate-10.vcf [new file with mode: 0644]
tests/book-migration/vcards/migrate-11.vcf [new file with mode: 0644]
tests/book-migration/vcards/migrate-12.vcf [new file with mode: 0644]
tests/book-migration/vcards/migrate-13.vcf [new file with mode: 0644]
tests/book-migration/vcards/migrate-14.vcf [new file with mode: 0644]
tests/book-migration/vcards/migrate-15.vcf [new file with mode: 0644]
tests/book-migration/vcards/migrate-16.vcf [new file with mode: 0644]
tests/book-migration/vcards/migrate-17.vcf [new file with mode: 0644]
tests/book-migration/vcards/migrate-18.vcf [new file with mode: 0644]
tests/book-migration/vcards/migrate-19.vcf [new file with mode: 0644]
tests/book-migration/vcards/migrate-2.vcf [new file with mode: 0644]
tests/book-migration/vcards/migrate-20.vcf [new file with mode: 0644]
tests/book-migration/vcards/migrate-3.vcf [new file with mode: 0644]
tests/book-migration/vcards/migrate-4.vcf [new file with mode: 0644]
tests/book-migration/vcards/migrate-5.vcf [new file with mode: 0644]
tests/book-migration/vcards/migrate-6.vcf [new file with mode: 0644]
tests/book-migration/vcards/migrate-7.vcf [new file with mode: 0644]
tests/book-migration/vcards/migrate-8.vcf [new file with mode: 0644]
tests/book-migration/vcards/migrate-9.vcf [new file with mode: 0644]