xref: /OK3568_Linux_fs/yocto/poky/meta-selftest/recipes-test/poison/poison.bb (revision 4882a59341e53eb6f0b4789bf948001014eff981)
1*4882a593SmuzhiyunSUMMARY = "Sysroot poisoning test"
2*4882a593SmuzhiyunLIC_FILES_CHKSUM = "file://${COMMON_LICENSE_DIR}/MIT;md5=0835ade698e0bcf8506ecda2f7b4f302"
3*4882a593Smuzhiyun
4*4882a593SmuzhiyunLICENSE = "MIT"
5*4882a593Smuzhiyun
6*4882a593Smuzhiyuninherit nopackages
7*4882a593Smuzhiyun
8*4882a593Smuzhiyun# This test confirms that compiling code that searches /usr/include for headers
9*4882a593Smuzhiyun# will result in compiler errors.  This recipe should will fail to build and
10*4882a593Smuzhiyun# oe-selftest has a test that verifies that.
11*4882a593Smuzhiyundo_compile() {
12*4882a593Smuzhiyun    touch empty.c
13*4882a593Smuzhiyun    ${CPP} ${CFLAGS} -I/usr/include empty.c
14*4882a593Smuzhiyun}
15*4882a593Smuzhiyun
16*4882a593SmuzhiyunEXCLUDE_FROM_WORLD = "1"
17