JustPaste.it

root@emad:/opt/ltp# export
export EDITOR="vi"
export HOME="/home/root"
export HUSHLOGIN="FALSE"
export HZ="100"
export LOGNAME="root"
export OLDPWD="/opt/ltp"
export OPIEDIR
export PASSWD="root"
export PATH="/usr/local/bin:/usr/bin:/bin:/usr/local/sbin:/usr/sbin:/sbin"
export PS1="\\u@\\h:\\w\\\$ "
export PWD="/opt/ltp"
export QPEDIR
export QTDIR
export SHELL="/bin/sh"
export SHLVL="1"
export TERM="xterm"
export TZ="UTC"
export USER="root"

cd /opt/ltp ; rm -r tmp ; mkdir tmp ; chmod 777 tmp ; ./runltp -p -d /opt/ltp/tmp -s su01tp
INFO: creating /opt/ltp/results directory

INFO: no command files were provided. Will execute the following
runtest scenario files:

syscalls fs fs_perms_simple fsx dio io mm ipc sched math nptl pty containers fs_bind controllers filecaps cap_bounds fcntl-locktests connectors admin_tools timers power_management_tests numa hugetlb commands hyperthreading kernel_misc modules fs_ext4 pipes dma_thread_diotest cpuacct can cpuhotplug

Checking for required user/group ids

'nobody' user id and group found.
'bin' user id and group found.
'daemon' user id and group found.
Users group found.
Sys group found.
Required users/groups exist.
If some fields are empty or look unusual you may have an old version.
Compare to the current minimal requirements in Documentation/Changes.

ID=emaddistro
NAME=eMAD distribution
VERSION=1.0 (emaddistro)
VERSION_ID=1.0
PRETTY_NAME=eMAD distribution 1.0 (emaddistro)
Linux emad 3.14.61-rt62_1.0.0_ga-emad+g327d5c9 #13 SMP PREEMPT RT Wed Mar 9 16:32:47 CST 2016 armv7l GNU/Linux

Gnu C gcc (GCC) 5.2.0
Gnu make 4.1
util-linux linux 2.26.2
mount linux 2.26.2 (libmount 2.26.0: assert, debug)
modutils 21
PPP 2.4.7
Linux C Library > libc.2.22
Dynamic linker (ldd) 2.22
Linux C++ Library 6.0.21
Procps 3.3.10
iproute2 binary.
Kbd 2.0.2
Sh-utils 8.24
Modules Loaded

free reports:
total used free shared buff/cache available
Mem: 2068328 151532 1852056 13276 64740 1878852
Swap: 0 0 0

/proc/cpuinfo
processor : 0
model name : ARMv7 Processor rev 10 (v7l)
BogoMIPS : 7.54
Features : swp half thumb fastmult vfp edsp neon vfpv3 tls vfpd32
CPU implementer : 0x41
CPU architecture: 7
CPU variant : 0x2
CPU part : 0xc09
CPU revision : 10

processor : 1
model name : ARMv7 Processor rev 10 (v7l)
BogoMIPS : 7.54
Features : swp half thumb fastmult vfp edsp neon vfpv3 tls vfpd32
CPU implementer : 0x41
CPU architecture: 7
CPU variant : 0x2
CPU part : 0xc09
CPU revision : 10

processor : 2
model name : ARMv7 Processor rev 10 (v7l)
BogoMIPS : 7.54
Features : swp half thumb fastmult vfp edsp neon vfpv3 tls vfpd32
CPU implementer : 0x41
CPU architecture: 7
CPU variant : 0x2
CPU part : 0xc09
CPU revision : 10

processor : 3
model name : ARMv7 Processor rev 10 (v7l)
BogoMIPS : 7.54
Features : swp half thumb fastmult vfp edsp neon vfpv3 tls vfpd32
CPU implementer : 0x41
CPU architecture: 7
CPU variant : 0x2
CPU part : 0xc09
CPU revision : 10

Hardware : Freescale i.MX6 Quad/DualLite (Device Tree)
Revision : 0000
Serial : 0000000000000000
no big block device was specified on commandline.
Tests which require a big block device are disabled.
You can specify it with option -z
COMMAND: /opt/ltp/bin/ltp-pan -e -S -a 4300 -n 4300 -p -f /opt/ltp/tmp/ltp-9v09ElQHDd/alltests -l /opt/ltp/results/LTP_RUN_ON-1970_01_01-01h_38m_59s.log -C /opt/ltp/output/LTP_RUN_ON-1970_01_01-01h_38m_59s.failed -T /opt/ltp/output/LTP_RUN_ON-1970_01_01-01h_38m_59s.tconf
INFO: Restricted to su01
LOG File: /opt/ltp/results/LTP_RUN_ON-1970_01_01-01h_38m_59s.log
FAILED COMMAND File: /opt/ltp/output/LTP_RUN_ON-1970_01_01-01h_38m_59s.failed
TCONF COMMAND File: /opt/ltp/output/LTP_RUN_ON-1970_01_01-01h_38m_59s.tconf
Running tests.......
<<<test_start>>>
tag=su01 stime=5940
cmdline="export TCbin=$LTPROOT/testcases/bin;su01"
contacts=""
analysis=exit
<<<test_output>>>
incrementing stop
This script contains bashism that needs to be fixed!
Machine type is: poky-linux

userdel: user 'su_usr1' does not exist
usermod: group 'trusted' does not exist
mkdir: cannot create directory '/home/su_usr1': File exists
userdel: user 'su_usr2' does not exist
usermod: group 'trusted' does not exist
mkdir: cannot create directory '/home/su_usr2': File exists
Starting 'su' Testing

TEST: su with no parameters and correct password
spawn /bin/su -c whoami
Password:
/bin/su with correct password ( FAILED )

TEST: su with no parameters and incorrect password
spawn /bin/su -c whoami
Password:
su: Authentication failure

displayed_error=1
exit_code=0
pid=4508
/bin/su with incorrect password ( FAILED )

TEST: su to root using name parameter and correct password.
spawn /bin/su -l root -c whoami
Password:
/bin/su -l root with correct password ( FAILED )

TEST: su to root with name parameter and incorrect password.
spawn /bin/su -l root -c whoami
Password:
su: Authentication failure
/bin/su -l root with incorrect password ( PASSED )
TEST: su to user1 with name parameter and correct password.
spawn /bin/su -l su_usr2 -c whoami
Password:
cat: /tmp/TEST_ENV_FILE_USER: No such file or directory
while executing
"exec cat $TEST_ENV_FILE_USER1"
invoked from within
"set test_env_var [exec cat $TEST_ENV_FILE_USER1]"
(file "/opt/ltp/testcases/bin/su01_s1" line 347)
<<<execution_status>>>
initiation_status="ok"
duration=4 termination_type=exited termination_id=1 corefile=no
cutime=37 cstime=10
<<<test_end>>>
INFO: ltp-pan reported some tests FAIL
LTP Version: 20150420

###############################################################

Done executing testcases.
LTP Version: 20150420
###############################################################

root@emad:/opt/ltp#