tests: Add tests for Origin and Calls

This commit is contained in:
Bob Ham
2018-06-13 14:38:51 +01:00
parent 58c3820f29
commit b727916bc8
12 changed files with 386 additions and 91 deletions

12
tests/common.h Normal file
View File

@@ -0,0 +1,12 @@
/*
* Copyright (C) 2018 Purism SPC
*
* SPDX-License-Identifier: GPL-3.0+
*/
#define add_calls_test(Object,object,name) \
g_test_add ("/Calls/" #Object "/" #name, Object##Fixture, NULL, \
test_dummy_##object##_set_up, \
test_dummy_##object##_##name, \
test_dummy_##object##_tear_down)