Edit

kc3-lang/pkgconf/tests/version.sh

Branch :

  • Show log

    Commit

  • Author : Baptiste Daroussin
    Date : 2016-09-18 22:48:13
    Hash : 5c2bee67
    Message : Add Kyua tests

  • tests/version.sh
  • #!/usr/bin/env atf-sh
    
    . $(atf_get_srcdir)/test_env.sh
    
    tests_init \
    	atleast \
    	exact \
    	max
    
    atleast_body()
    {
    	export PKG_CONFIG_PATH="${selfdir}/lib1"
    	atf_check \
    		pkgconf --atleast-version 1.0 foo
    	atf_check \
    		-s exit:1 \
    		pkgconf --atleast-version 2.0 foo
    }
    
    exact_body()
    {
    	export PKG_CONFIG_PATH="${selfdir}/lib1"
    	atf_check \
    		-s exit:1 \
    		pkgconf --exact-version 1.0 foo
    	atf_check \
    		pkgconf --exact-version 1.2.3 foo
    }
    
    max_body()
    {
    	export PKG_CONFIG_PATH="${selfdir}/lib1"
    	atf_check \
    		-s exit:1 \
    		pkgconf --max-version 1.0 foo
    	atf_check \
    		pkgconf --max-version 2.0 foo
    }