| 1 |
#!/bin/sh |
| 2 |
|
| 3 |
{ |
| 4 |
fake_control_header '' |
| 5 |
|
| 6 |
fake_control_package exact all '${dh-builtusing:gcc}' |
| 7 |
fake_control_package encoding all '${dh-builtusing:gPP}' |
| 8 |
fake_control_package pattern all '${dh-builtusing:dpkg-devS}' |
| 9 |
|
| 10 |
} > debian/control |
| 11 |
|
| 12 |
# A deprecation warning is expected on stderr, hide it to autopkgtest. |
| 13 |
$tested_command 2>&1 |
| 14 |
|
| 15 |
check_substvar exact gcc gcc-defaults |
| 16 |
check_substvar encoding gPP gcc-defaults |
| 17 |
check_substvar pattern dpkg-devS dpkg |
| 18 |
|
| 19 |
dh_gencontrol |
| 20 |
|
| 21 |
check_control exact gcc-defaults |
| 22 |
check_control encoding gcc-defaults |
| 23 |
check_control pattern dpkg |