testme.sh 1.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152
  1. #!/bin/bash
  2. # date
  3. echo "date="`date`
  4. # output version
  5. echo "Testing verion" `grep "^VERSION=" makefile | sed "s/.*=//"`
  6. #grep "VERSION=" makefile | perl -e "@a = split('=', <>); print @a[1];"`
  7. # get uname
  8. echo "uname="`uname -a`
  9. echo
  10. # stock build
  11. bash run.sh "STOCK" " " $1 || exit 1
  12. # SMALL code
  13. bash run.sh "SMALL" "-DLTC_SMALL_CODE" $1 || exit 1
  14. # NOTABLES
  15. bash run.sh "NOTABLES" "-DLTC_NO_TABLES" $1 || exit 1
  16. # SMALL+NOTABLES
  17. bash run.sh "SMALL+NOTABLES" "-DLTC_SMALL_CODE -DLTC_NO_TABLES" $1 || exit 1
  18. # CLEANSTACK
  19. bash run.sh "CLEANSTACK" "-DLTC_CLEAN_STACK" $1 || exit 1
  20. # CLEANSTACK + SMALL
  21. bash run.sh "CLEANSTACK+SMALL" "-DLTC_SMALL_CODE -DLTC_CLEAN_STACK" $1 || exit 1
  22. # CLEANSTACK + NOTABLES
  23. bash run.sh "CLEANSTACK+NOTABLES" "-DLTC_NO_TABLES -DLTC_CLEAN_STACK" $1 || exit 1
  24. # CLEANSTACK + NOTABLES + SMALL
  25. bash run.sh "CLEANSTACK+NOTABLES+SMALL" "-DLTC_NO_TABLES -DLTC_CLEAN_STACK -DLTC_SMALL_CODE" $1 || exit 1
  26. # NO_FAST
  27. bash run.sh "NO_FAST" "-DLTC_NO_FAST" $1 || exit 1
  28. # NO_ASM
  29. bash run.sh "NO_ASM" "-DLTC_NO_ASM" $1 || exit 1
  30. # test build with no testing
  31. bash testbuild.sh "NOTEST" "-DLTC_NO_TEST" $1 || exit 1
  32. # test build with no file routines
  33. bash testbuild.sh "NOFILE" "-DLTC_NO_FILE" $1 || exit 1
  34. # $Source: /cvs/libtom/libtomcrypt/testme.sh,v $
  35. # $Revision: 1.16 $
  36. # $Date: 2005/05/11 18:59:53 $