aboutsummaryrefslogtreecommitdiffstats
path: root/test/tests/filter-directory-visited-tags.success
blob: 527ee5a56821f435ad15cbd27c4b84a4261e881a (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
#!/bin/sh

. "$(cd -- "$(dirname -- "$0")" && pwd -P)/../bootstrap.sh"

initializeRepositories

"${BIN_MAIN}" "${DIR_SOURCE}" '--prune-empty --subdirectory-filter subdir' "${DIR_DESTINATION}"

echo 'Fetching tags'
tags=$(getTagList "${DIR_DESTINATION}")
if itemInList 'tag-01' "${tags}"
then
	printf '%s should not be in tag list:\n%s\n' 'tag-01' "${tags}" >&2
	exit 1
fi
if itemNotInList 'tag-02' "${tags}"
then
	printf '%s should be in tag list:\n%s\n' 'tag-02' "${tags}" >&2
	exit 1
fi
if itemInList 'tag-03' "${tags}"
then
	printf '%s should not be in tag list:\n%s\n' 'tag-02' "${tags}" >&2
	exit 1
fi

© 2014-2024 Faster IT GmbH | imprint | privacy policy