nettle.sh 566 B

12345678910111213141516171819202122232425262728293031323334
  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 update
  15. ROD ls "/"
  16. }
  17. test1()
  18. {
  19. strres=`nettle-hash -V`
  20. if [[ "$strres" == "*nettle-hash (nettle 3.6)*" ]]
  21. then
  22. tst_res TPASS "Got correct error message"
  23. tst_res TCONF "Library name XXX Skipped"
  24. else
  25. tst_res TFAIL "Got wrong error message"
  26. echo $strres
  27. fi
  28. }
  29. tst_run