unit-tests/20binary-arch
raw| 1 | #!/bin/sh |
| 2 | |
| 3 | { |
| 4 | fake_control_header ' |
| 5 | Build-Depends-Arch: dpkg-dev |
| 6 | Build-Depends-Indep: red-herring' |
| 7 | |
| 8 | fake_control_package foo any '${dh-builtusing:dpkg-dev}' |
| 9 | fake_control_package not-processed all '${dh-builtusing:red-herring}' |
| 10 | |
| 11 | } > debian/control |
| 12 | |
| 13 | $tested_command --arch |
| 14 | |
| 15 | check_substvar foo dpkg-dev dpkg |
| 16 | check_substvars_absent foo red-herring |
| 17 | check_substvars_absent not-processed dpkg-dev red-herring |
| 18 | |
| 19 | dh_gencontrol --arch |
| 20 | |
| 21 | check_control foo dpkg |