run_zxingcpp_tests.sh 1.9 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152
  1. #!/bin/bash
  2. # Copyright (C) 2021-2024 Robin Stuart <rstuart114@gmail.com>
  3. # SPDX-License-Identifier: BSD-3-Clause
  4. # vim: set ts=4 sw=4 et :
  5. set -e
  6. function run_zxingcpp_test() {
  7. if [ -z "$2" ]; then
  8. echo -e "\n$1"
  9. backend/tests/$1 -d $(expr 512 + 16 + 32) || exit 1
  10. else
  11. echo -e "\n$1 -f $2"
  12. backend/tests/$1 -f "$2" -d $(expr 512 + 16 + 32) || exit 1
  13. fi
  14. }
  15. run_zxingcpp_test "test_2of5" "encode"
  16. run_zxingcpp_test "test_aztec" "large"
  17. run_zxingcpp_test "test_aztec" "encode"
  18. run_zxingcpp_test "test_aztec" "encode_segs"
  19. run_zxingcpp_test "test_aztec" "fuzz"
  20. run_zxingcpp_test "test_codablock" "input"
  21. run_zxingcpp_test "test_codablock" "encode"
  22. run_zxingcpp_test "test_codablock" "fuzz"
  23. run_zxingcpp_test "test_code" "encode"
  24. run_zxingcpp_test "test_code128"
  25. run_zxingcpp_test "test_code16k" "input"
  26. run_zxingcpp_test "test_code16k" "encode"
  27. run_zxingcpp_test "test_dmatrix" "input"
  28. run_zxingcpp_test "test_dmatrix" "encode"
  29. run_zxingcpp_test "test_dmatrix" "encode_segs"
  30. run_zxingcpp_test "test_dotcode" "input"
  31. run_zxingcpp_test "test_dotcode" "encode"
  32. run_zxingcpp_test "test_dotcode" "encode_segs"
  33. run_zxingcpp_test "test_hanxin"
  34. run_zxingcpp_test "test_mailmark" "2d_encode"
  35. run_zxingcpp_test "test_maxicode" "large"
  36. run_zxingcpp_test "test_maxicode" "input"
  37. run_zxingcpp_test "test_maxicode" "encode"
  38. run_zxingcpp_test "test_maxicode" "encode_segs"
  39. run_zxingcpp_test "test_maxicode" "best_supported_set"
  40. run_zxingcpp_test "test_medical" "encode"
  41. run_zxingcpp_test "test_pdf417" "reader_init"
  42. run_zxingcpp_test "test_pdf417" "input"
  43. run_zxingcpp_test "test_pdf417" "encode"
  44. run_zxingcpp_test "test_pdf417" "encode_segs"
  45. run_zxingcpp_test "test_pdf417" "fuzz"
  46. run_zxingcpp_test "test_qr"
  47. run_zxingcpp_test "test_rss" "binary_div_modulo_divisor"
  48. run_zxingcpp_test "test_rss" "examples"
  49. run_zxingcpp_test "test_upcean" "upce_input"
  50. run_zxingcpp_test "test_upcean" "encode"