3 # error out on undefined variable expansion, useful for debugging
6 # FIXME: get this from automake so we have $(EXEEXT)
7 GEANY
="${top_builddir:-../..}/src/geany"
8 TMPDIR
=$
(mktemp
-d) ||
exit 99
9 CONFDIR
="$TMPDIR/config/"
11 trap 'rm -rf "$TMPDIR"' EXIT
13 # make sure we don't use an old or modified system version of the filetype
14 # related configuration files
15 mkdir
-p "$CONFDIR" ||
exit 99
16 mkdir
-p "$CONFDIR/filedefs/" ||
exit 99
17 cp "${srcdir:-.}"/..
/..
/data
/filetype_extensions.conf
"$CONFDIR" ||
exit 99
18 cp "${srcdir:-.}"/..
/..
/data
/filetypes.
* "$CONFDIR/filedefs/" ||
exit 99
22 tagfile
="$TMPDIR/test.${source##*.}.tags"
24 "$GEANY" -c "$CONFDIR" -P -g "$tagfile" "$source" ||
exit 1
25 diff -u "$result" "$tagfile" ||
exit 2