aboutsummaryrefslogtreecommitdiff
path: root/tests/lib.sh
blob: fb50d8a2870c596f8b50b662525b06c30e37b575 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
#!/bin/sh

export XDG_DATA_HOME="$PWD/tests/test-profiles"
OUT=
ERR=
STATUS=
PROFILE=

assert_status() {
	if [ "$STATUS" != "$1" ]; then
		printf 'Bad status.\n\nexpected: %s\ngot: %s\n' "$1" "$STATUS" >&2
		exit 1
	fi
}