#!/bin/sh
#
# Test if etckeeper is working.

set -e

. /usr/share/debian-edu-config/testsuite-lib.sh

# Only test if xfs is installed
if deb_installed etckeeper ; then
    if [ -d /etc/.git ] ; then
        echo "success: $0: etckeeper is installed and initialized"
    else
        echo "error: $0: etckeeper is installed but not initialized"
    fi
else
    echo "error: $0: etckeeper is not installed"
fi

exit 0
