2 #**********************************************************************
3 # Copyright (C) 2024 - The Geeqie Team
7 # This program is free software; you can redistribute it and/or modify
8 # it under the terms of the GNU General Public License as published by
9 # the Free Software Foundation; either version 2 of the License, or
10 # (at your option) any later version.
12 # This program is distributed in the hope that it will be useful,
13 # but WITHOUT ANY WARRANTY; without even the implied warranty of
14 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15 # GNU General Public License for more details.
17 # You should have received a copy of the GNU General Public License along
18 # with this program; if not, write to the Free Software Foundation, Inc.,
19 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
20 #**********************************************************************
23 ## @brief Run all tests
25 ## Run test with all options disabled,
26 ## and then with -Ddevel=enabled and other
29 if [ ! -d "src" ] || [ ! -f "geeqie.1" ]
31 printf '%s\n' "This is not a Geeqie project folder"
35 XDG_CONFIG_HOME=$(mktemp -d "${TMPDIR:-/tmp}/geeqie.XXXXXXXXXX")
36 XDG_CACHE_HOME=$(mktemp -d "${TMPDIR:-/tmp}/geeqie.XXXXXXXXXX")
37 XDG_DATA_HOME=$(mktemp -d "${TMPDIR:-/tmp}/geeqie.XXXXXXXXXX")
38 export XDG_CONFIG_HOME
42 rm --recursive --force build
44 # Check with all options disabled
67 -Dvideothumbnailer=disabled \
69 -Dyelp-build=disabled \
74 tmpdir=$(mktemp -d "${TMPDIR:-/tmp}/geeqie.XXXXXXXXXX")
75 cp ./build/meson-logs/testlog.txt "$tmpdir/testlog-options-disabled.txt"
77 rm --recursive --force build
79 meson setup -Ddevel=enabled build
83 cp ./build/meson-logs/testlog.txt "$tmpdir/testlog-options-enabled.txt"
85 rm -r "$XDG_CONFIG_HOME"
86 rm -r "$XDG_CACHE_HOME"
87 rm -r "$XDG_DATA_HOME"