#!/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
