File: file-tests

package info (click to toggle)
gnustep-gui 0.32.0-4
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 15,348 kB
  • sloc: objc: 178,763; ansic: 24,089; cpp: 664; yacc: 464; sh: 90; makefile: 72
file content (22 lines) | stat: -rwxr-xr-x 496 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
#!/bin/sh

exec 2>&1

set -e
set -u

MULTIARCH=$(dpkg-architecture --query DEB_HOST_MULTIARCH)

test_static_lib() {
  assertEquals "application/x-archive" "$(file --mime-type --brief /usr/lib/$MULTIARCH/libgnustep-gui.a)"
}

test_dev_symlink() {
  assertEquals "inode/symlink" "$(file --mime-type --brief /usr/lib/$MULTIARCH/libgnustep-gui.so)"
}

test_shared_lib() {
  assertEquals "application/x-sharedlib" "$(file --mime-type --brief /usr/lib/$MULTIARCH/libgnustep-gui.so.*.*.*)"
}

. shunit2