1#!/usr/bin/env atf-sh 2 3. $(atf_get_srcdir)/test_env.sh 4 5tests_init \ 6 atleast \ 7 exact \ 8 max 9 10atleast_body() 11{ 12 export PKG_CONFIG_PATH="${selfdir}/lib1" 13 atf_check \ 14 pkgconf --atleast-version 1.0 foo 15 atf_check \ 16 -s exit:1 \ 17 pkgconf --atleast-version 2.0 foo 18} 19 20exact_body() 21{ 22 export PKG_CONFIG_PATH="${selfdir}/lib1" 23 atf_check \ 24 -s exit:1 \ 25 pkgconf --exact-version 1.0 foo 26 atf_check \ 27 pkgconf --exact-version 1.2.3 foo 28} 29 30max_body() 31{ 32 export PKG_CONFIG_PATH="${selfdir}/lib1" 33 atf_check \ 34 -s exit:1 \ 35 pkgconf --max-version 1.0 foo 36 atf_check \ 37 pkgconf --max-version 2.0 foo 38} 39