diff options
Diffstat (limited to 'test cases/common/154 test profiles/test.c')
-rw-r--r-- | test cases/common/154 test profiles/test.c | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/test cases/common/154 test profiles/test.c b/test cases/common/154 test profiles/test.c new file mode 100644 index 0000000..72704c0 --- /dev/null +++ b/test cases/common/154 test profiles/test.c @@ -0,0 +1,23 @@ +#include <glib.h> + +static void test_source (void) +{ + const char *in_file = g_test_get_filename (G_TEST_DIST, "file.in", NULL); + g_assert_true (g_file_test (in_file, G_FILE_TEST_EXISTS)); +} + +static void test_build (void) +{ + const char *out_file = g_test_get_filename (G_TEST_BUILT, "file.out", NULL); + g_assert_true (g_file_test (out_file, G_FILE_TEST_EXISTS)); +} + +int main(int argc, char **argv) +{ + g_test_init (&argc, &argv, NULL); + + g_test_add_func ("/test_srcdir", test_source); + g_test_add_func ("/test_builddir", test_build); + + return g_test_run (); +} |