desktop: add a desktop file test with desktop-file-validate
utils.
This commit is contained in:
14
configure.ac
14
configure.ac
@ -2300,6 +2300,19 @@ if test "x$have_appstream_util" = "xyes"; then
|
|||||||
fi
|
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
|
# Checks for gtk-doc and docbook-tools
|
||||||
######################################
|
######################################
|
||||||
@ -2815,6 +2828,7 @@ Optional Modules:
|
|||||||
Tests:
|
Tests:
|
||||||
Use xvfb-run $have_xvfb_run
|
Use xvfb-run $have_xvfb_run
|
||||||
Test appdata $have_appstream_util
|
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"
|
$have_recommended_xgettext$have_recommended_gtk$warning_vector_icons_windows$warning_glib_networking$warning_gcc"
|
||||||
|
|
||||||
if test "x$required_deps" = "x"; then
|
if test "x$required_deps" = "x"; then
|
||||||
|
@ -74,7 +74,13 @@ validate: gimp.desktop
|
|||||||
|
|
||||||
dist-hook: validate
|
dist-hook: validate
|
||||||
|
|
||||||
if HAVE_APPSTREAM_UTIL
|
|
||||||
TESTS_ENVIRONMENT = GIMP_TESTING_ABS_TOP_BUILDDIR=@abs_top_builddir@
|
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
|
endif
|
||||||
|
3
desktop/test-desktop.sh
Executable file
3
desktop/test-desktop.sh
Executable file
@ -0,0 +1,3 @@
|
|||||||
|
#!/bin/sh
|
||||||
|
|
||||||
|
desktop-file-validate ${GIMP_TESTING_ABS_TOP_BUILDDIR}/desktop/gimp.desktop
|
Reference in New Issue
Block a user