From b422323650c6b50a749dd112e4a34cb69754d167 Mon Sep 17 00:00:00 2001 From: Christoph Galuschka Date: Nov 15 2012 19:19:20 +0000 Subject: moved user.sh to production as jenkins setup should be fixed --- diff --git a/test_incomplete/user.sh b/test_incomplete/user.sh deleted file mode 100755 index d9cf342..0000000 --- a/test_incomplete/user.sh +++ /dev/null @@ -1,17 +0,0 @@ -#!/bin/bash -# Author: Alice Kaerast - -t_Log "$0 - test various user commands from coreutils" -who -echo $? -who | grep -q "$LOGNAME" && who mom likes -echo $? -who | grep -q "$LOGNAME" && who mom likes | grep -q "$LOGNAME" && users -echo $? -who | grep -q "$LOGNAME" && who mom likes | grep -q "$LOGNAME" && users | grep -q "$LOGNAME" && id -echo $? -who | grep -q "$LOGNAME" && who mom likes | grep -q "$LOGNAME" && users | grep -q "$LOGNAME" && id | grep -q "$LOGNAME" && logname -echo $? -who | grep -q "$LOGNAME" && who mom likes | grep -q "$LOGNAME" && users | grep -q "$LOGNAME" && id | grep -q "$LOGNAME" && logname | grep -q "$LOGNAME" - -t_CheckExitStatus $? diff --git a/tests/p_coreutils/user.sh b/tests/p_coreutils/user.sh new file mode 100755 index 0000000..d9cf342 --- /dev/null +++ b/tests/p_coreutils/user.sh @@ -0,0 +1,17 @@ +#!/bin/bash +# Author: Alice Kaerast + +t_Log "$0 - test various user commands from coreutils" +who +echo $? +who | grep -q "$LOGNAME" && who mom likes +echo $? +who | grep -q "$LOGNAME" && who mom likes | grep -q "$LOGNAME" && users +echo $? +who | grep -q "$LOGNAME" && who mom likes | grep -q "$LOGNAME" && users | grep -q "$LOGNAME" && id +echo $? +who | grep -q "$LOGNAME" && who mom likes | grep -q "$LOGNAME" && users | grep -q "$LOGNAME" && id | grep -q "$LOGNAME" && logname +echo $? +who | grep -q "$LOGNAME" && who mom likes | grep -q "$LOGNAME" && users | grep -q "$LOGNAME" && id | grep -q "$LOGNAME" && logname | grep -q "$LOGNAME" + +t_CheckExitStatus $?