1 586 B

123456789101112131415161718192021222324252627282930
  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 install xdg-utils
  15. echo "ltp:oe-core.extended testcase: xdg-utils"
  16. }
  17. test1()
  18. {
  19. xdg-open > /opt/oe-core-extended.out
  20. if grep -q "Use 'man xdg-open' or 'xdg-open" /opt/oe-core-extended.out; then
  21. tst_res TPASS "Got correct error message"
  22. else
  23. tst_res TFAIL "Got wrong error message"
  24. fi
  25. }
  26. tst_run