blob: 0172c0437da6ac77fa6734e401b97aa9d0ecfa07 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
|
#!/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
}
|