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
|