nareshkamboju

LTP SU test

Jul 17th, 2017
85
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.44 KB | None | 0 0
  1. root@hikey:/opt/ltp# ./runltp -f admin_tools -q -p
  2. INFO: creating /opt/ltp/output directory
  3. INFO: creating /opt/ltp/results directory
  4. Checking for required user/group ids
  5.  
  6. 'nobody' user id and group found.
  7. 'bin' user id and group found.
  8. 'daemon' user id and group found.
  9. Users group found.
  10. Sys group found.
  11. Required users/groups exist.
  12. no big block device was specified on commandline.
  13. Tests which require a big block device are disabled.
  14. You can specify it with option -z
  15. INFO: Test start time: Mon Jul 17 15:37:51 UTC 2017
  16. COMMAND: /opt/ltp/bin/ltp-pan -q -e -S -a 2693 -n 2693 -p -f /tmp/ltp-bDwYjqGgq4/alltests -l /opt/ltp/results/LTP_RUN_ON-2017_07_17-15h_37m_48s.log -C /opt
  17. /ltp/output/LTP_RUN_ON-2017_07_17-15h_37m_48s.failed -T /opt/ltp/output/LTP_RUN_ON-2017_07_17-15h_37m_48s.tconf
  18. LOG File: /opt/ltp/results/LTP_RUN_ON-2017_07_17-15h_37m_48s.log
  19. FAILED COMMAND File: /opt/ltp/output/LTP_RUN_ON-2017_07_17-15h_37m_48s.failed
  20. TCONF COMMAND File: /opt/ltp/output/LTP_RUN_ON-2017_07_17-15h_37m_48s.tconf
  21. Running tests.......
  22. This script contains bashism that needs to be fixed!
  23. Machine type is: linaro-linux
  24.  
  25. usermod: group 'trusted' does not exist
  26. usermod: group 'trusted' does not exist
  27. Starting 'su' Testing
  28.  
  29. TEST: su with no parameters and correct password
  30. spawn /bin/su -c whoami
  31. Password:
  32. root
  33. spawn su -c /bin/su root -c "echo \$TEST_LINE > /tmp/TEST_ENV_FILE_ROOT"
  34. Password:
  35. /bin/su with correct password & enviroment check ( PASSED )
  36.  
  37. TEST: su with no parameters and incorrect password
  38. spawn /bin/su -c whoami
  39. Password:
  40. su: Authentication failure
  41.  
  42. displayed_error=1
  43. exit_code=0
  44. pid=2797
  45. /bin/su with incorrect password ( FAILED )
  46.  
  47. TEST: su to root using name parameter and correct password.
  48. spawn /bin/su -l root -c whoami
  49. Password:
  50. root
  51. spawn /bin/sh -c /bin/su -l root -c "echo "\$TEST_LINE > /tmp/TEST_ENV_FILE_ROOT2""
  52. Password: /bin/su -l root with correct password & enviroment check ( PASSED )
  53.  
  54. TEST: su to root with name parameter and incorrect password.
  55. spawn /bin/su -l root -c whoami
  56. Password:
  57. su: Authentication failure
  58. /bin/su -l root with incorrect password ( FAILED )
  59. TEST: su to user1 with name parameter and correct password.
  60. spawn /bin/su -l su_usr2 -c whoami
  61. Password:
  62. mesg: cannot open /dev/pts/1: Permission denied
  63. su_usr2
  64. spawn /bin/sh -c /bin/su -l su_usr2 -c "echo "\$TEST_LINE > /tmp/TEST_ENV_FILE_USER""
  65. Password: /bin/su -l su_usr2 with correct password & enviroment check ( PASSED )
  66. TEST: su to user1 with name parameter and incorrect password.
  67. spawn /bin/su -l su_usr2 -c whoami
  68. Password:
  69. su: Authentication failure
  70. /bin/su -l su_usr2 with incorrect password ( FAILED )
  71. TEST: su to user1 with the user1 password expired.
  72. spawn /bin/su -l root -c passwd -e su_usr2
  73. Password:
  74. passwd: password expiry information changed.
  75. spawn /bin/su -l su_usr2 -c whoami
  76. Password:
  77. You are required to change your password immediately (administrator enforced)
  78. su: Authentication token manipulation error
  79. /bin/su -l su_usr2 with expired correct password ( FAILED )
  80. spawn /bin/su -l root -c passwd su_usr2
  81. Password:
  82. New password: INFO: ltp-pan reported some tests FAIL
  83. LTP Version: 20170516
  84. INFO: Test end time: Mon Jul 17 15:38:12 UTC 2017
  85.  
  86. ###############################################################
  87.  
  88. Done executing testcases.
  89. LTP Version: 20170516
  90. ###############################################################
  91.  
  92. root@hikey:/opt/ltp#
Add Comment
Please, Sign In to add comment