geary/test/main.vala
Michael James Gratton 325232bad7 Add client lib to the test build.
* test/CMakeLists.txt: Add client lib and dependent packages to the
  build.

* test/main.vala (main): Add test suites  for both client and engine
  tests to allow some more fine-grained control when running them. Also
  add some sectioning doc comments.
2016-12-26 13:18:51 +10:30

40 lines
1,014 B
Vala

/*
* Copyright 2016 Michael Gratton <mike@vee.net>
*
* This software is licensed under the GNU Lesser General Public License
* (version 2.1 or later). See the COPYING file in this distribution.
*/
int main(string[] args) {
/*
* Initialise all the things.
*/
Test.init(ref args);
Geary.RFC822.init();
Geary.HTML.init();
/*
* Hook up all tests into appropriate suites
*/
TestSuite engine = new TestSuite("engine");
engine.add_suite(new Geary.HTML.UtilTest().get_suite());
engine.add_suite(new Geary.RFC822.MailboxAddressTest().get_suite());
engine.add_suite(new Geary.RFC822.MessageTest().get_suite());
engine.add_suite(new Geary.RFC822.MessageDataTest().get_suite());
engine.add_suite(new Geary.RFC822.Utils.Test().get_suite());
TestSuite client = new TestSuite("client");
/*
* Run the tests
*/
TestSuite root = TestSuite.get_root();
root.add_suite(engine);
root.add_suite(client);
return Test.run();
}