gspell.sh 900 B

12345678910111213141516171819202122232425262728293031323334353637383940414243
  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/gnome//gspell.sh.gspell setup ==================="
  16. #ROD apt-get update
  17. ROD nohup apt-get install --allow-unauthenticated -y gspell > /opt/out.txt 2>&1
  18. cat /opt/out.txt
  19. }
  20. test1()
  21. {
  22. gspell-app1 &
  23. strres=`ps -ef|grep gspell 2>&1`
  24. if [[ "$strres" == *gspell-app1* ]]
  25. then
  26. tst_res TPASS "Got correct error message"
  27. else
  28. tst_res TFAIL "Got wrong error message"
  29. echo $strres
  30. fi
  31. }
  32. cleanup()
  33. {
  34. echo "meta-oe/gnome/gnome//gspell.sh.gspell cleanup ==================="
  35. #ROD nohup apt-get remove --allow-unauthenticated -y gspell > /opt/out.txt 2>&1
  36. cat /opt/out.txt
  37. }
  38. tst_run