Files
RedBear-OS/recipes/dev/pkg-config/source/check/check-cflags
T

29 lines
601 B
Bash
Executable File

#! /bin/sh
set -e
. ${srcdir}/common
RESULT=""
run_test --cflags simple
RESULT=""
run_test --cflags fields-blank
RESULT="-DOTHER -I/other/include"
run_test --cflags other
RESULT="-I/other/include"
run_test --cflags-only-I other
RESULT="-DOTHER"
run_test --cflags-only-other other
# Try various mixed combinations
RESULT="-DOTHER -I/other/include"
run_test --cflags-only-I --cflags-only-other other
run_test --cflags-only-other --cflags-only-I other
run_test --cflags --cflags-only-I --cflags-only-other other
run_test --cflags --cflags-only-I other
run_test --cflags --cflags-only-other other