File: run_tests

package info (click to toggle)
git-filter-repo 2.47.0-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 1,280 kB
  • sloc: sh: 4,887; python: 4,856; makefile: 114
file content (27 lines) | stat: -rwxr-xr-x 580 bytes parent folder | download | duplicates (2)
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
26
27
#!/bin/bash
set -eu

cd $(dirname $0)

# Put git_filter_repo.py on the front of PYTHONPATH
export PYTHONPATH="$PWD/..${PYTHONPATH:+:$PYTHONPATH}"

# We pretend filenames are unicode for two reasons: (1) because it exercises
# more code, and (2) this setting will detect accidental use of unicode strings
# for file/directory names when it should always be bytestrings.
export PRETEND_UNICODE_ARGS=1

export TEST_SHELL_PATH=/bin/sh

failed=0

for t in t[0-9]*.sh
do
  printf '\n\n== %s ==\n' "$t"
  bash $t "$@" || failed=$(($failed+1))
done

if [ 0 -lt $failed ]
then
  exit 1
fi