From d65ca519d9f22640f9953713e02bac460013f460 Mon Sep 17 00:00:00 2001 From: Karanbir Singh Date: Jul 22 2012 11:18:10 +0000 Subject: Merge branch 'master' of https://nazar.karan.org/git/deopsdaysindia --- diff --git a/tests/p_0-file/00_file_package.sh b/tests/p_0-file/00_file_package.sh new file mode 100644 index 0000000..fecdcb0 --- /dev/null +++ b/tests/p_0-file/00_file_package.sh @@ -0,0 +1,7 @@ +#!/bin/bash + +t_Log "Running $0 - checking if file package is installed" + +rpm -q file > /dev/null 2>&1 + +t_CheckExitStatus $? diff --git a/tests/p_0-file/01_file_mime_application.sh b/tests/p_0-file/01_file_mime_application.sh new file mode 100644 index 0000000..6645fa5 --- /dev/null +++ b/tests/p_0-file/01_file_mime_application.sh @@ -0,0 +1,7 @@ +#!/bin/bash + +t_Log "Running $0 - checking if file can recognixe mime executable type " + +file /bin/bash --mime-type | grep "application/x-executable" + +t_CheckExitStatus $? diff --git a/tests/p_0-file/02_file_mime_image.sh b/tests/p_0-file/02_file_mime_image.sh new file mode 100644 index 0000000..bae423e --- /dev/null +++ b/tests/p_0-file/02_file_mime_image.sh @@ -0,0 +1,8 @@ +#!/bin/bash + +t_Log "Running $0 - checking if file can recognize image mime file type " + +file /usr/lib/anaconda-runtime/boot/syslinux-splash.png --mime-type | grep 'image/png' + +t_CheckExitStatus $? + diff --git a/tests/p_0-file/03_file_mime_symlink.sh b/tests/p_0-file/03_file_mime_symlink.sh new file mode 100644 index 0000000..e8c3211 --- /dev/null +++ b/tests/p_0-file/03_file_mime_symlink.sh @@ -0,0 +1,7 @@ +#!/bin/bash + +t_Log "Running $0 - checking if file can recognize symlink mime file type " + +file /etc/favicon.png --mime-type | grep 'application/x-symlink' + +t_CheckExitStatus $?