File: run-simple-test.sh

package info (click to toggle)
gitless 0.8.8-7
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 456 kB
  • sloc: python: 3,811; sh: 81; makefile: 7
file content (24 lines) | stat: -rwxr-xr-x 493 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
#!/bin/sh

set -e

pwd="$(pwd)"

testf="$pwd/debian/test-home/.gitconfig"
if [ ! -f "$testf" ]; then
	echo "No '$testf' file; are you in the Debian package source directory?" 1>&2
	exit 1
fi

HOME="$pwd/debian/test-home"
LC_ALL='C.UTF-8'
LANGUAGE='C'
PYTHON3="$(py3versions -d)"
export HOME LC_ALL LANGUAGE PYTHON3

dir="$(mktemp -d -t gitless-test.XXXXXX)"
# shellcheck disable=SC2064
trap "rm -rf -- '$dir'" EXIT HUP INT QUIT TERM

echo "Using directory $dir"
./debian/test-gl-simple "$dir"