+#!/bin/bash
+
+# Check the report type change in the config file
+
+if [ -z "${CRASH_WORKER_SYSTEM_TESTS}" ]; then
+ CRASH_WORKER_SYSTEM_TESTS="@CRASH_SYSTEM_TESTS_PATH@"
+fi
+
+. ${CRASH_WORKER_SYSTEM_TESTS}/utils/minicore-utils.sh
+
+CRASH_MANAGER_CONF=/etc/crash-manager.conf
+
+clean_crash_dump
+clean_temp
+
+sleep 777 &
+sleep 2
+kill -6 $!
+
+wait_for_app crash-manager
+
+pushd ${CRASH_DUMP_PATH}
+name=$(echo *)
+name=${name%.zip}
+
+test -f ${name}.zip || exit_with_code "FAIL: crash report not found" 1
+unzip ${name}.zip || exit_with_code "FAIL: unable to extract archive" 1
+
+# assumes default configuration - with coredump
+test -s ${name}/${name}.coredump.tar || test -f ${name}/${name}.coredump || exit_with_code "FAIL: coredump corrupt or not found" 1
+
+test -s ${name}/${name}.log || exit_with_code "FAIL: log corrupt or not found" 1
+test -s ${name}/${name}.so_info || exit_with_code "FAIL: info corrupt or not found" 1
+test -s ${name}/${name}.info || exit_with_code "FAIL: info corrupt or not found" 1
+
+for i in ${CRASH_TEMP_PATH}/*; do
+ test -a "${i}" && exit_with_code "FAIL: temp directory not cleaned up" 1
+done
+
+exit_with_code "SUCCESS" 0