Edit

kc3-lang/pkgconf/tests/sysroot.sh

Branch :

  • Show log

    Commit

  • Author : William Pitcock
    Date : 2017-02-07 10:11:12
    Hash : 2dcd7496
    Message : main: remove whitespace added for compatibility with older pkg-config (closes #113)

  • tests/sysroot.sh
  • #!/usr/bin/env atf-sh
    
    . $(atf_get_srcdir)/test_env.sh
    
    tests_init \
    	cflags \
    	variable
    
    cflags_body()
    {
    	export PKG_CONFIG_PATH="${selfdir}/lib1"
    	export PKG_CONFIG_SYSROOT_DIR="${SYSROOT_DIR}"
    	atf_check \
    		-o inline:"-fPIC -I${SYSROOT_DIR}/test/include/foo \n" \
    		pkgconf --cflags baz
    }
    
    variable_body()
    {
    	export PKG_CONFIG_PATH="${selfdir}/lib1"
    	export PKG_CONFIG_SYSROOT_DIR="${SYSROOT_DIR}"
    	atf_check \
    		-o inline:"${SYSROOT_DIR}/test\n" \
    		pkgconf --variable=prefix foo
    	atf_check \
    		-o inline:"${SYSROOT_DIR}/test/include\n" \
    		pkgconf --variable=includedir foo
    }