summaryrefslogtreecommitdiffstats
path: root/debian/tests/icudatfileTest.sh
blob: 8e3ec999167d4a3f1a1c4140568ae6f16214ab89 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
#!/bin/sh

set -e

TESTFILE=$(basename $0 .sh)
ICUDATFILE=$(basename /usr/lib/thunderbird/icud*.dat)

if [ -f "/usr/lib/thunderbird/${ICUDATFILE}" ]; then
    echo "Running tests in ${TESTFILE}"

    echo -n "Test1: Check if /usr/lib/thunderbird/${ICUDATFILE} is linked to /usr/share/thunderbird/${ICUDATFILE}..."
    if [ "$(readlink -e "/usr/share/thunderbird/${ICUDATFILE}")" = "/usr/lib/thunderbird/${ICUDATFILE}" ]; then
        echo "done"
    else
        echo "No!"
        exit 1
    fi
else
    echo "Nothing to be done here."
fi

echo "All Tests in ${TESTFILE} finished succesfully."