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.
QA/tests/p_file/02_file_mime_image.sh

18 lines
411 B

#!/bin/bash
# Author: ???
# Christoph Galuschka <christoph.galuschka@chello.at>
# Rene Diepstraten <rene@renediepstraten.nl>
t_Log "Running $0 - checking if file can recognize image mime file type "
pngfile="$(find /usr/share/ -type f -name '*.png' -print -quit)"
if [ -z "$pngfile" ];then
t_Log "No png file found => SKIP"
exit 0
fi
file $pngfile -i | grep -q 'image/png'
t_CheckExitStatus $?