Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

test script robustness and flexibility #20

Open
wants to merge 5 commits into
base: master
Choose a base branch
from
Open

Conversation

barak
Copy link

@barak barak commented Apr 18, 2021

Debian and other distributions like to be able to run tests both at built time, against the built package, and at a separate test time, where they're run against an installed binary package. To simplify this, the test script here needs to allow an external argument to tell it where the executable to be tested lives, and to write files to a temp directory instead of in the source tree.

With these patches it seems to work fine both at build time and for testing an out-of-tree binary.

barak added 5 commits April 18, 2021 14:23
Match fish{1,2}.png instead of fish[12].png since it's an error if the
file is not found.

Gbp-Pq: Name 0001-test-robust-expansion.patch
Optionally pass executable to test to test/run_tests.bash in $pdiff

Gbp-Pq: Name 0002-test-executable.patch
Optionally pass ${script_directory} where test data files live.

Gbp-Pq: Name 0003-test-script_directory.patch
Optionally pass ${tmpdir} where files are written.

Gbp-Pq: Name 0004-test-tmpdir.patch
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant