Added tests to ensure that localized data is properly migrated.
authorTristan Van Berkom <tristanvb@openismus.com>
Fri, 19 Apr 2013 10:49:38 +0000 (19:49 +0900)
committerTristan Van Berkom <tristanvb@openismus.com>
Mon, 27 May 2013 13:34:26 +0000 (22:34 +0900)
commit6e04d315250850292cc11cd627a454689040b2b2
tree057a67a9ac234d4df53ee46bc6b3cfcaa266099a
parentb9f8937930af218946f7750a719c7f147c7afa2f
Added tests to ensure that localized data is properly migrated.

The added tests must run in the order specified in the Makefile:
  o test-sqlite-cursor-posix-initial

    Creates an addressbook sorted in POSIX locale and asserts that
    contacts are sorted in basic POSIX locale

  o test-sqlite-cursor-en-US-migrated

    Loads the existing address book in en_US-UTF-8 locale and asserts
    that contacts are sorted in the en_US-UTF-8 locale

  o test-sqlite-cursor-posix-migrated

    Loads the existing address book in POSIX locale again and asserts
    that contacts are sorted in the POSIX locale
tests/libedata-book/Makefile.am
tests/libedata-book/data-test-utils.c
tests/libedata-book/data-test-utils.h
tests/libedata-book/test-sqlite-cursor-en-US-migrated.c [new file with mode: 0644]
tests/libedata-book/test-sqlite-cursor-posix-initial.c [new file with mode: 0644]
tests/libedata-book/test-sqlite-cursor-posix-migrated.c [new file with mode: 0644]