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 $?