#include #include #include #include #include #include int main(int argc, char **argv) { (void)argc, (void)argv; unsetenv("BEMENU_RENDERER"); setenv("BEMENU_RENDERERS", "../renderers", true); if (!bm_init()) return EXIT_FAILURE; // TEST: Instance bmMenu with all possible draw modes. { uint32_t count; const struct bm_renderer **renderers = bm_get_renderers(&count); for (int32_t i = 0; i < count; ++i) { struct bm_menu *menu = bm_menu_new(bm_renderer_get_name(renderers[i]), BM_PRIO_ANY); if (!strcmp(bm_renderer_get_name(renderers[i]), "curses") && !isatty(STDIN_FILENO)) { // do not test continue; } else if (!strcmp(bm_renderer_get_name(renderers[i]), "wayland") && !getenv("WAYLAND_DISPLAY")) { // do not test continue; } assert(menu); bm_menu_render(menu); bm_menu_free(menu); } } return EXIT_SUCCESS; } /* vim: set ts=8 sw=4 tw=0 :*/