summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorJari Vetoniemi <mailroxas@gmail.com>2015-01-20 18:49:35 +0200
committerJari Vetoniemi <mailroxas@gmail.com>2015-01-20 18:49:35 +0200
commitf76cb71688d20e593eab4a29077105ab82b230e6 (patch)
tree8ebddc0f65d4e97fcc61650e453dab1e77322098 /test
parente53e77bf050067a44055892ae6b3afb1652c51ef (diff)
downloadbemenu-f76cb71688d20e593eab4a29077105ab82b230e6.tar.gz
bemenu-f76cb71688d20e593eab4a29077105ab82b230e6.tar.bz2
bemenu-f76cb71688d20e593eab4a29077105ab82b230e6.zip
Remove the useless test, need actual tests.
Diffstat (limited to 'test')
-rw-r--r--test/CMakeLists.txt1
-rw-r--r--test/bm_menu_new.c41
2 files changed, 0 insertions, 42 deletions
diff --git a/test/CMakeLists.txt b/test/CMakeLists.txt
index 556df6a..b8be78f 100644
--- a/test/CMakeLists.txt
+++ b/test/CMakeLists.txt
@@ -1,5 +1,4 @@
SET(TESTS
- "bm_menu_new"
)
INCLUDE_DIRECTORIES("${CMAKE_CURRENT_SOURCE_DIR}/../lib")
diff --git a/test/bm_menu_new.c b/test/bm_menu_new.c
deleted file mode 100644
index e35d279..0000000
--- a/test/bm_menu_new.c
+++ /dev/null
@@ -1,41 +0,0 @@
-#include <stdlib.h>
-#include <unistd.h>
-#include <stdio.h>
-#include <string.h>
-#include <assert.h>
-#include <bemenu.h>
-
-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]));
- 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 :*/