| 1 |
#!/bin/sh |
| 2 |
|
| 3 |
{ |
| 4 |
fake_control_header "debhelper:all, gcc:$host, libc6:$host" |
| 5 |
|
| 6 |
fake_control_package all-explicit all '${dh-builtusing:debhelper:all}' |
| 7 |
fake_control_package all-implicit all '${dh-builtusing:debhelper}' |
| 8 |
fake_control_package host-explicit-native all "\${dh-builtusing:gcc:$host}" |
| 9 |
fake_control_package host-explicit-same all "\${dh-builtusing:libc6:$host}" |
| 10 |
fake_control_package host-implicit-native all '${dh-builtusing:gcc}' |
| 11 |
fake_control_package host-implicit-same all '${dh-builtusing:libc6}' |
| 12 |
|
| 13 |
} > debian/control |
| 14 |
|
| 15 |
# A deprecation warning is expected on stderr, hide it to autopkgtest. |
| 16 |
$tested_command 2>&1 |
| 17 |
|
| 18 |
check_substvar all-explicit debhelper:all debhelper |
| 19 |
check_substvar all-implicit debhelper debhelper |
| 20 |
check_substvar host-explicit-native gcc:$host gcc-defaults |
| 21 |
check_substvar host-explicit-same libc6:$host glibc |
| 22 |
check_substvar host-implicit-native gcc gcc-defaults |
| 23 |
check_substvar host-implicit-same libc6 glibc |
| 24 |
|
| 25 |
dh_gencontrol |
| 26 |
|
| 27 |
check_control all-explicit debhelper |
| 28 |
check_control all-implicit debhelper |
| 29 |
check_control host-explicit-native gcc-defaults |
| 30 |
check_control host-explicit-same glibc |
| 31 |
check_control host-explicit-native gcc-defaults |
| 32 |
check_control host-explicit-same glibc |