Merge branch 'fix-tests' into 'master'
Use headless init functions to prevent test breakage See merge request Librem5/squeekboard!109
This commit is contained in:
@ -28,4 +28,4 @@ test:
|
|||||||
dependencies:
|
dependencies:
|
||||||
- build_meson
|
- build_meson
|
||||||
script:
|
script:
|
||||||
- xvfb-run -s -noreset ninja -C _build test
|
- ninja -C _build test
|
||||||
|
|||||||
@ -41,7 +41,7 @@ test_create (void)
|
|||||||
int
|
int
|
||||||
main (int argc, char **argv)
|
main (int argc, char **argv)
|
||||||
{
|
{
|
||||||
gtk_test_init (&argc, &argv, NULL);
|
g_test_init (&argc, &argv, NULL);
|
||||||
g_test_add_func ("/eek-simple-test/create", test_create);
|
g_test_add_func ("/eek-simple-test/create", test_create);
|
||||||
return g_test_run ();
|
return g_test_run ();
|
||||||
}
|
}
|
||||||
|
|||||||
@ -47,7 +47,7 @@ test_output_parse (void)
|
|||||||
int
|
int
|
||||||
main (int argc, char **argv)
|
main (int argc, char **argv)
|
||||||
{
|
{
|
||||||
gtk_test_init (&argc, &argv, NULL);
|
g_test_init (&argc, &argv, NULL);
|
||||||
|
|
||||||
g_test_add_func ("/eek-xml-test/output-parse", test_output_parse);
|
g_test_add_func ("/eek-xml-test/output-parse", test_output_parse);
|
||||||
|
|
||||||
|
|||||||
@ -64,7 +64,7 @@ test_check_xkb (void)
|
|||||||
int
|
int
|
||||||
main (int argc, char **argv)
|
main (int argc, char **argv)
|
||||||
{
|
{
|
||||||
gtk_test_init (&argc, &argv, NULL);
|
g_test_init (&argc, &argv, NULL);
|
||||||
|
|
||||||
g_test_add_func ("/test-keymap-generation/check-xkb", test_check_xkb);
|
g_test_add_func ("/test-keymap-generation/check-xkb", test_check_xkb);
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user