aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMarcel Hollerbach <mail@marcel-hollerbach.de>2019-03-14 17:22:05 +0100
committerMarcel Hollerbach <mail@marcel-hollerbach.de>2019-03-14 17:35:02 +0100
commitc5ef78bf47fe24206e3f45681ed913c7404993c0 (patch)
treed760aa0847087a850c957fc2c741ac94e0a7641b
parentefl_ui: fix headers (diff)
downloadefl-devs/bu5hm4n/travis.tar.gz
elementary: add compile checks for the efl_ui.h headerdevs/bu5hm4n/travis
we should check if the header actaully compiles without the beta defines. Differential Revision: https://phab.enlightenment.org/D8343
-rw-r--r--src/tests/elementary/efl_ui_compile_test.c13
-rw-r--r--src/tests/elementary/meson.build5
2 files changed, 18 insertions, 0 deletions
diff --git a/src/tests/elementary/efl_ui_compile_test.c b/src/tests/elementary/efl_ui_compile_test.c
new file mode 100644
index 0000000000..651295da03
--- /dev/null
+++ b/src/tests/elementary/efl_ui_compile_test.c
@@ -0,0 +1,13 @@
+#undef EFL_BETA_API_SUPPORT
+#undef EFL_EO_API_SUPPORT
+#define EFL_NOLEGACY_API_SUPPORT
+
+#include <Efl_Ui.h>
+
+EAPI_MAIN void
+efl_main(void *data EINA_UNUSED,
+ const Efl_Event *ev EINA_UNUSED)
+{
+}
+
+EFL_MAIN()
diff --git a/src/tests/elementary/meson.build b/src/tests/elementary/meson.build
index e9be0b2a41..5ffbf96789 100644
--- a/src/tests/elementary/meson.build
+++ b/src/tests/elementary/meson.build
@@ -149,6 +149,11 @@ efl_ui_suite = executable('efl_ui_suite',
]
)
+efl_ui_compile_test = executable('efl_ui_compile_test',
+ 'efl_ui_compile_test.c',
+ dependencies: [elementary, eio],
+)
+
test('elementary-suite', elementary_suite,
env : test_env
)