From 125d8da8ae36493bbbb6422e68b850503341d90d Mon Sep 17 00:00:00 2001 From: Karanbir Singh Date: Jul 22 2012 14:54:54 +0000 Subject: move file tests into place --- diff --git a/tests/p_0-file/00_file_package.sh b/tests/p_0-file/00_file_package.sh deleted file mode 100755 index 402649c..0000000 --- a/tests/p_0-file/00_file_package.sh +++ /dev/null @@ -1,5 +0,0 @@ -#!/bin/bash - -t_Log "Running $0 - checking if file package is installed" - -t_Assert "rpm -q file" diff --git a/tests/p_0-file/01_file_mime_application.sh b/tests/p_0-file/01_file_mime_application.sh deleted file mode 100755 index 6645fa5..0000000 --- a/tests/p_0-file/01_file_mime_application.sh +++ /dev/null @@ -1,7 +0,0 @@ -#!/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 deleted file mode 100755 index bae423e..0000000 --- a/tests/p_0-file/02_file_mime_image.sh +++ /dev/null @@ -1,8 +0,0 @@ -#!/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 deleted file mode 100755 index e8c3211..0000000 --- a/tests/p_0-file/03_file_mime_symlink.sh +++ /dev/null @@ -1,7 +0,0 @@ -#!/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 $? diff --git a/tests/p_file/00_file_package.sh b/tests/p_file/00_file_package.sh new file mode 100755 index 0000000..402649c --- /dev/null +++ b/tests/p_file/00_file_package.sh @@ -0,0 +1,5 @@ +#!/bin/bash + +t_Log "Running $0 - checking if file package is installed" + +t_Assert "rpm -q file" diff --git a/tests/p_file/01_file_mime_application.sh b/tests/p_file/01_file_mime_application.sh new file mode 100755 index 0000000..6645fa5 --- /dev/null +++ b/tests/p_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_file/02_file_mime_image.sh b/tests/p_file/02_file_mime_image.sh new file mode 100755 index 0000000..bae423e --- /dev/null +++ b/tests/p_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_file/03_file_mime_symlink.sh b/tests/p_file/03_file_mime_symlink.sh new file mode 100755 index 0000000..e8c3211 --- /dev/null +++ b/tests/p_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 $?