-
Notifications
You must be signed in to change notification settings - Fork 6
Expand file tree
/
Copy pathcontainer-structure-test.yml
More file actions
36 lines (33 loc) · 1.13 KB
/
Copy pathcontainer-structure-test.yml
File metadata and controls
36 lines (33 loc) · 1.13 KB
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
schemaVersion: 2.0.0
fileExistenceTests:
# libtorrent-rasterbar files
- name: "libtorrent-rasterbar.a"
path: "/usr/lib/libtorrent-rasterbar.a"
shouldExist: true
permissions: "-rw-r--r--"
- name: "libtorrent-rasterbar.so"
path: "/usr/lib/libtorrent-rasterbar.so"
shouldExist: true
permissions: "Lrwxrwxrwx"
commandTests:
- name: "pkgconfig"
setup: [["apk", "add", "pkgconfig"]]
command: "pkg-config"
args: ["--list-all"]
expectedOutput: ["libtorrent-rasterbar"]
excludedError: [".+"]
exitCode: 0
# Python tests (https://dev.deluge-torrent.org/wiki/Building/libtorrent#UbuntuDebian)
- name: "Python 3"
command: "python3"
args: ["-c", "import libtorrent; print(libtorrent.version)"]
expectedOutput: ["1.2"]
excludedError: [".+"]
exitCode: 0
# https://github.com/arvidn/libtorrent/issues/5865
fileContentTests:
- name: "pkgconfig"
path: "/usr/lib/pkgconfig/libtorrent-rasterbar.pc"
expectedContents: ["Libs:.*-ltorrent-rasterbar"]
# No unresolved CMake imported-target names (e.g. -lIconv::Iconv) should leak into the Libs line
excludedContents: ["-l\\S*::"]