diff options
| author | Antonio Terceiro <[email protected]> | 2025-02-23 09:48:22 -0300 |
|---|---|---|
| committer | Quentin Carbonneaux <[email protected]> | 2025-03-15 14:43:00 +0100 |
| commit | f7ab20680b84ff16936bff17def5f9a849ff57cb (patch) | |
| tree | 08d0fd2273d53f85171d46e8cb1c162c24c28322 /alias.c | |
| parent | 789e38fdb238cfb0b09589e3cf361ca6df55d996 (diff) | |
tools/test.sh: allow running against installed package
If $bin is set in the environment, use it instead of using `qbe` from
the source tree. The same for $binref. This supports the following use
cases:
- I have a qbe package installed, and I want to test my local changes
with the installed packages as a reference:
$ binref=/usr/bin/qbe ./tools/test.sh all
- I want to test the installed qbe against new tests that I have
written, to reproduce a bug:
$ bin=/usr/bin/qbe ./tools/test.sh test/newtest.ssa
In Debian, we also run tests against the installed package when
dependencies change, etc. We will also run on several architectures
where the necessary cross compilers might not be available. So make
tests that cannot be run because of a missing compiler exit with 77,
signaling to Debian's autopkgtest that the test is skipped.
Diffstat (limited to 'alias.c')
0 files changed, 0 insertions, 0 deletions
