dconf.sh 873 B

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