File: file-tests

package info (click to toggle)
dbuskit 0.1.1-14
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 3,956 kB
  • sloc: objc: 10,543; sh: 9,463; ansic: 200; makefile: 32
file content (18 lines) | stat: -rwxr-xr-x 413 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
#!/bin/sh

exec 2>&1

set -e
set -u

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

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

test_shared_lib() {
  assertEquals "application/x-sharedlib" "$(file --mime-type --brief /usr/lib/$MULTIARCH/GNUstep/Frameworks/DBusKit.framework/Versions/Current/libDBusKit.so.*.*.*)"
}

. shunit2