File: run-simple-test.sh

package info (click to toggle)
gitless 0.8.6-4
  • links: PTS, VCS
  • area: main
  • in suites: buster
  • size: 476 kB
  • sloc: python: 3,796; sh: 76; makefile: 14
file content (21 lines) | stat: -rwxr-xr-x 437 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
#!/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

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

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

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