27 lines
609 B
Vala
27 lines
609 B
Vala
|
|
/*
|
||
|
|
* Copyright © 2020 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) {
|
||
|
|
Test.init(ref args);
|
||
|
|
|
||
|
|
TestSuite root = TestSuite.get_root();
|
||
|
|
root.add_suite(new TestAssertions().suite);
|
||
|
|
root.add_suite(new CollectionAssertions().suite);
|
||
|
|
|
||
|
|
MainLoop loop = new MainLoop ();
|
||
|
|
|
||
|
|
int ret = -1;
|
||
|
|
Idle.add(() => {
|
||
|
|
ret = Test.run();
|
||
|
|
loop.quit();
|
||
|
|
return false;
|
||
|
|
});
|
||
|
|
|
||
|
|
loop.run();
|
||
|
|
return ret;
|
||
|
|
}
|