Check for diff's availability
authorEmmanuele Bassi <ebassi@gnome.org>
Fri, 1 Nov 2019 15:20:47 +0000 (15:20 +0000)
committerEmmanuele Bassi <ebassi@gnome.org>
Fri, 1 Nov 2019 15:20:47 +0000 (15:20 +0000)
The tests suite calls `diff` in various places, which means we need to
check if it's installed.

testsuite/meson.build

index 10dabd81527412bb09887bbe7e5e458016d80907..bb7c8160f4deb337444e6cfed1e1b963ddf902e6 100644 (file)
@@ -2,6 +2,10 @@ gtk_libexecdir = join_paths(gtk_prefix, get_option('libexecdir'))
 installed_test_bindir = join_paths(gtk_libexecdir, 'installed-tests', 'gtk-4.0')
 installed_test_datadir = join_paths(gtk_datadir, 'installed-tests', 'gtk-4.0')
 
+# We call diff in various tests, so we need to check it's available,
+# otherwise we're going to have failures down the line
+diff = find_program('diff', required: true)
+
 subdir('gdk')
 subdir('gsk')
 subdir('gtk')