File: version.sh

package info (click to toggle)
pkgconf 2.5.1-3
  • links: PTS, VCS
  • area: main
  • in suites: sid
  • size: 2,900 kB
  • sloc: ansic: 8,117; sh: 6,689; makefile: 247; python: 157
file content (38 lines) | stat: -rwxr-xr-x 600 bytes parent folder | download | duplicates (6)
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
}