aboutsummaryrefslogtreecommitdiff
path: root/test cases
diff options
context:
space:
mode:
authorMichael Hirsch, Ph.D <scivision@users.noreply.github.com>2020-01-05 23:26:28 -0500
committerMichael Hirsch, Ph.D <10931741+scivision@users.noreply.github.com>2020-01-14 13:33:52 -0500
commitc7cc7341322f23b8bad801c09328efd32f586387 (patch)
treeff8832c9004639068542cf33154ef4a0853abf1a /test cases
parent4e41acb0224d851f2fc4610d7c8a84c5d6c88a9e (diff)
downloadmeson-c7cc7341322f23b8bad801c09328efd32f586387.zip
meson-c7cc7341322f23b8bad801c09328efd32f586387.tar.gz
meson-c7cc7341322f23b8bad801c09328efd32f586387.tar.bz2
dependency: add curses
fixes #6096. Didn't use CMake because Curses is a real corner-case for CMake that would require Curses-specific enhancements to Meson's CMake interface.
Diffstat (limited to 'test cases')
-rw-r--r--test cases/frameworks/31 curses/main.c7
-rw-r--r--test cases/frameworks/31 curses/meson.build9
2 files changed, 16 insertions, 0 deletions
diff --git a/test cases/frameworks/31 curses/main.c b/test cases/frameworks/31 curses/main.c
new file mode 100644
index 0000000..07d73f5
--- /dev/null
+++ b/test cases/frameworks/31 curses/main.c
@@ -0,0 +1,7 @@
+#include "curses.h"
+
+int main(void) {
+initscr();
+endwin();
+return 0;
+} \ No newline at end of file
diff --git a/test cases/frameworks/31 curses/meson.build b/test cases/frameworks/31 curses/meson.build
new file mode 100644
index 0000000..21483fb
--- /dev/null
+++ b/test cases/frameworks/31 curses/meson.build
@@ -0,0 +1,9 @@
+project('curses', 'c')
+
+curses = dependency('curses', required: false)
+if not curses.found()
+ error('MESON_SKIP_TEST: Curses library not found')
+endif
+
+exec = executable('basic', 'main.c', dependencies: curses)
+# didn't run the test because in general graphics fail on CI