You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

27 lines
753 B

#!/bin/bash -x
echo "Тест наличия файлов пакета ${TEST_PACKAGE_NAME}"
source ../../library/sh_lib.sh
if [[ "${TEST_PACKAGE_NAME}" != "grub2-efi-x64" ]] && [[ "${TEST_PACKAGE_NAME}" != "grub2-efi-x64-cdboot" ]]; then
echo "ERROR: Неверное имя пакета - '${TEST_PACKAGE_NAME}'. Этот тест предназначен для пакетов grub2-efi-x64 и grub2-efi-x64-cdboot"
exit 1
fi
if [[ "${TEST_PACKAGE_NAME}" == "grub2-efi-x64" ]]; then
_FILE1='/boot/efi/EFI/msvsphere/grubx64.efi'
else
_FILE1='/boot/efi/EFI/msvsphere/gcdx64.efi'
fi
check=0
if [[ ! -f "${_FILE1}" ]]; then
echo "ERROR: File ${_FILE1} absent!"
let check+=1
fi
check_test_status ${check} "$0"
exit ${check}