nareshkamboju

LTP su test after patch applied

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