consolekit.sh 583 B

1234567891011121314151617181920212223242526272829303132333435
  1. #!/bin/sh
  2. # SPDX-License-Identifier: GPL-2.0-or-later
  3. # Copyright (c) International Business Machines Corp., 2001
  4. # Author: Manoj Iyer <manjo@mail.utexas.edu>
  5. #
  6. # Basic mkdir tests
  7. TST_CNT=1
  8. TST_SETUP=setup
  9. TST_TESTFUNC=test
  10. TST_NEEDS_TMPDIR=1
  11. . tst_test.sh
  12. setup()
  13. {
  14. #ROD apt-get update
  15. ROD ls "/"
  16. }
  17. test1()
  18. {
  19. console-kit-daemon
  20. strres=`ps -ef|grep cons`
  21. if [[ "$strres" == "*console-kit-daemon*" ]]
  22. then
  23. tst_res TPASS "Got correct error message"
  24. tst_res TCONF "Library name XXX Skipped"
  25. else
  26. tst_res TFAIL "Got wrong error message"
  27. echo $strres
  28. fi
  29. }
  30. tst_run