gparted.sh 935 B

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  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_CLEANUP=cleanup
  11. TST_NEEDS_TMPDIR=1
  12. . tst_test.sh
  13. setup()
  14. {
  15. echo "ltp:meta-oe/gnome/extended//gparted.sh.gparted setup ==================="
  16. #ROD apt-get update
  17. ROD nohup apt-get install --allow-unauthenticated -y gparted > /opt/out.txt 2>&1
  18. cat /opt/out.txt
  19. }
  20. test1()
  21. {
  22. export DISPLAY=:0.0
  23. gparted &
  24. strres=`ps -ef|grep gparted 2>&1`
  25. if [[ "$strres" == */usr/bin/gparted* ]]
  26. then
  27. tst_res TPASS "Got correct error message"
  28. else
  29. tst_res TFAIL "Got wrong error message"
  30. echo $strres
  31. fi
  32. }
  33. cleanup()
  34. {
  35. echo "meta-oe/gnome/extended//gparted.sh.gparted cleanup ==================="
  36. #ROD nohup apt-get remove --allow-unauthenticated -y gparted > /opt/out.txt 2>&1
  37. cat /opt/out.txt
  38. }
  39. tst_run