1/* 2 * Copyright © 2020 Michael Gratton <mike@vee.net> 3 * 4 * This software is licensed under the GNU Lesser General Public License 5 * (version 2.1 or later). See the COPYING file in this distribution. 6 */ 7 8 9int main(string[] args) { 10 GLib.Test.init(ref args); 11 Geary.RFC822.init(); 12 Geary.HTML.init(); 13 Geary.Logging.init(); 14 if (GLib.Test.verbose()) { 15 GLib.Log.set_writer_func(Geary.Logging.default_log_writer); 16 Geary.Logging.log_to(GLib.stdout); 17 } 18 19 GLib.TestSuite root = GLib.TestSuite.get_root(); 20 root.add_suite(new MailMerge.TestReader().suite); 21 root.add_suite(new MailMerge.TestProcessor().suite); 22 23 GLib.MainLoop loop = new GLib.MainLoop(); 24 int ret = -1; 25 GLib.Idle.add(() => { 26 ret = Test.run(); 27 loop.quit(); 28 return false; 29 }); 30 31 loop.run(); 32 return ret; 33} 34