mirror of https://github.com/GNOME/gimp.git
desktop: add a desktop file test with `desktop-file-validate` utils.
This commit is contained in:
parent
0492157dd2
commit
660926eb3d
14
configure.ac
14
configure.ac
|
@ -2300,6 +2300,19 @@ if test "x$have_appstream_util" = "xyes"; then
|
|||
fi
|
||||
|
||||
|
||||
#################################
|
||||
# Check for desktop-file-validate
|
||||
#################################
|
||||
|
||||
AC_PATH_PROG(DESKTOP_FILE_VALIDATE, desktop-file-validate, no)
|
||||
if test "x$APPSTREAM_UTIL" != "xno"; then
|
||||
have_desktop_file_validate="yes"
|
||||
else
|
||||
have_desktop_file_validate="no (desktop-file-validate not found)"
|
||||
fi
|
||||
AM_CONDITIONAL(HAVE_DESKTOP_FILE_VALIDATE, test "x$DESKTOP_FILE_VALIDATE" != "xno")
|
||||
|
||||
|
||||
######################################
|
||||
# Checks for gtk-doc and docbook-tools
|
||||
######################################
|
||||
|
@ -2815,6 +2828,7 @@ Optional Modules:
|
|||
Tests:
|
||||
Use xvfb-run $have_xvfb_run
|
||||
Test appdata $have_appstream_util
|
||||
Test desktop file $have_desktop_file_validate
|
||||
$have_recommended_xgettext$have_recommended_gtk$warning_vector_icons_windows$warning_glib_networking$warning_gcc"
|
||||
|
||||
if test "x$required_deps" = "x"; then
|
||||
|
|
|
@ -74,7 +74,13 @@ validate: gimp.desktop
|
|||
|
||||
dist-hook: validate
|
||||
|
||||
if HAVE_APPSTREAM_UTIL
|
||||
TESTS_ENVIRONMENT = GIMP_TESTING_ABS_TOP_BUILDDIR=@abs_top_builddir@
|
||||
TESTS = test-appdata.sh
|
||||
TESTS =
|
||||
|
||||
if HAVE_APPSTREAM_UTIL
|
||||
TESTS += test-appdata.sh
|
||||
endif
|
||||
|
||||
if HAVE_APPSTREAM_UTIL
|
||||
TESTS += test-desktop.sh
|
||||
endif
|
||||
|
|
|
@ -0,0 +1,3 @@
|
|||
#!/bin/sh
|
||||
|
||||
desktop-file-validate ${GIMP_TESTING_ABS_TOP_BUILDDIR}/desktop/gimp.desktop
|
Loading…
Reference in New Issue