~mmach/netext73/pkgconf

« back to all changes in this revision

Viewing changes to tests/version.sh

  • Committer: mmach
  • Date: 2024-02-21 19:22:23 UTC
  • Revision ID: netbit73@gmail.com-20240221192223-5l809fiqh21udwrd
1.8.1

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
#!/usr/bin/env atf-sh
 
2
 
 
3
. $(atf_get_srcdir)/test_env.sh
 
4
 
 
5
tests_init \
 
6
        atleast \
 
7
        exact \
 
8
        max
 
9
 
 
10
atleast_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
 
 
20
exact_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
 
 
30
max_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
}