Break the actual test runner into its own script

So that we don't have to run with coverage if we don't want to.

Additionally, don't require being in the t directory to run tests

Signed-off-by: Stefano Rivera <stefano@rivera.za.net>
pull/205/head
Stefano Rivera 3 years ago
parent 75e67bcd44
commit 34b26f4026

@ -12,7 +12,7 @@ build:
@echo Nothing to do: filter-repo is a script which needs no compilation.
test:
cd t && time ./run_coverage
time t/run_coverage
# fixup_locale might matter once we actually have translations, but right now
# we don't. It might not even matter then, because python has a fallback podir.

@ -16,12 +16,8 @@ EOF
export COVERAGE_PROCESS_START=$tmpdir/.coveragerc
export PYTHONPATH=$tmpdir:
# 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
ls t939*.sh | xargs -n 1 bash
$orig_dir/run_tests
cd $tmpdir
coverage3 combine

@ -0,0 +1,10 @@
#!/bin/bash
cd $(dirname $0)
# 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
ls t939*.sh | xargs -n 1 bash
Loading…
Cancel
Save