libnma.sh 1.0 KB

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/connectivity//libnma.sh.libnma setup ==================="
  16. #ROD apt-get update
  17. ROD nohup apt-get install --allow-unauthenticated -y networkmanager > /opt/out.txt 2>&1
  18. cat /opt/out.txt
  19. ROD nohup apt-get install --allow-unauthenticated -y libnma > /opt/out.txt 2>&1
  20. cat /opt/out.txt
  21. }
  22. test1()
  23. {
  24. strres=`find /usr/lib -name libnma* 2>&1`
  25. if [[ "$strres" == */usr/lib/libnma.so.0.0.0* ]]
  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/connectivity//libnma.sh.libnma cleanup ==================="
  36. #ROD nohup apt-get remove --allow-unauthenticated -y libnma > /opt/out.txt 2>&1
  37. cat /opt/out.txt
  38. }
  39. tst_run