From 340692299ed834f962b83b1bc0eb6f49471ca556 Mon Sep 17 00:00:00 2001 From: Phil Jones Date: Tue, 18 Oct 2022 19:33:47 +0100 Subject: Add beginnings of test framework. Just contains a couple of very simple UTF-8 tests for now. --- meson.build | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'meson.build') diff --git a/meson.build b/meson.build index 97f8eae..5ec1c1f 100644 --- a/meson.build +++ b/meson.build @@ -91,8 +91,7 @@ add_project_arguments( language: 'c' ) -tofi_sources = files( - 'src/main.c', +common_sources = files( 'src/color.c', 'src/compgen.c', 'src/config.c', @@ -175,9 +174,11 @@ foreach proto : wl_proto_xml command: [wayland_scanner, 'private-code', '@INPUT@', '@OUTPUT@']) endforeach +subdir('test') + executable( 'tofi', - tofi_sources, wl_proto_src, wl_proto_headers, + files('src/main.c'), common_sources, wl_proto_src, wl_proto_headers, dependencies: [librt, libm, freetype, harfbuzz, cairo, pangocairo, wayland_client, xkbcommon, glib, gio_unix], install: true ) -- cgit v1.2.3