From d1531584c9436d4fbd6d86471b67e9a63306036b Mon Sep 17 00:00:00 2001 From: Athmane Madjoudj Date: Sep 10 2011 13:06:19 +0000 Subject: Add tmpwatch test --- diff --git a/tests/p_tmpwatch/0-install_tmpwatch.sh b/tests/p_tmpwatch/0-install_tmpwatch.sh new file mode 100755 index 0000000..e41da59 --- /dev/null +++ b/tests/p_tmpwatch/0-install_tmpwatch.sh @@ -0,0 +1,6 @@ +#!/bin/bash +# Author: Athmane Madjoudj + +t_Log "$0 - Installing tmpwatch" +t_InstallPackage tmpwatch + diff --git a/tests/p_tmpwatch/tmpwatch_test.sh b/tests/p_tmpwatch/tmpwatch_test.sh new file mode 100755 index 0000000..01dc7dc --- /dev/null +++ b/tests/p_tmpwatch/tmpwatch_test.sh @@ -0,0 +1,13 @@ +#!/bin/sh +# Author: Athmane Madjoudj + +t_Log "Running $0 - tmpwatch test." + +# create a junk file +touch -t '200001010000' /tmp/tf_test + +tmpwatch 24 /tmp + +[ ! -f /tmp/tf_test ] + +t_CheckExitStatus $?