| 1 |
#!/bin/sh |
| 2 |
|
| 3 |
{ |
| 4 |
fake_control_header 'dpkg-dev, gcc, red-herring' |
| 5 |
|
| 6 |
fake_control_package foo all ' |
| 7 |
unrelated, |
| 8 |
${dh-builtusing:gcc}, |
| 9 |
# ${dh-builtusing:red-herring}, |
| 10 |
${dh-builtusing:dpkg-dev}, |
| 11 |
also-unrelated' |
| 12 |
|
| 13 |
fake_control_package static-built-using all ' |
| 14 |
Static-Built-Using: ${dh-staticbuiltusing:gcc}' |
| 15 |
|
| 16 |
} > debian/control |
| 17 |
|
| 18 |
$tested_command |
| 19 |
|
| 20 |
check_substvar foo dpkg-dev dpkg |
| 21 |
check_substvar foo gcc gcc-defaults |
| 22 |
check_substvars_absent foo red-herring |
| 23 |
check_substvar static-built-using gcc gcc-defaults static |
| 24 |
|
| 25 |
dh_gencontrol |
| 26 |
|
| 27 |
check_control foo dpkg |
| 28 |
check_control foo gcc-defaults |