meson.build 936 B

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152
  1. scripts = [
  2. 'jose-alg',
  3. 'jose-fmt',
  4. 'jose-b64-enc',
  5. 'jose-b64-dec',
  6. 'jose-jwk-eql',
  7. 'jose-jwk-exc',
  8. 'jose-jwk-gen',
  9. 'jose-jwk-pub',
  10. 'jose-jwk-use',
  11. 'jose-jwk-thp',
  12. 'jose-jws-fmt',
  13. 'jose-jws-ver',
  14. 'jose-jws-sig',
  15. 'jose-jwe-fmt',
  16. 'jose-jwe-dec',
  17. 'jose-jwe-enc',
  18. ]
  19. progs = [
  20. 'alg_hash',
  21. 'alg_sign',
  22. 'alg_encr',
  23. 'alg_wrap',
  24. 'alg_comp',
  25. 'api_b64',
  26. 'api_jws',
  27. 'api_jwe',
  28. ]
  29. e = environment()
  30. e.prepend('PATH', meson.current_build_dir() + '/../cmd', separator: ':')
  31. e.set('VECTORS', meson.current_source_dir() + '/vectors')
  32. e.set('CVE_2023_50967', meson.current_source_dir() + '/cve-2023-50967')
  33. foreach p: progs
  34. exe = executable(p, p + '.c', dependencies: libjose_dep)
  35. if p == 'api_b64'
  36. to = 1800
  37. else
  38. to = 180
  39. endif
  40. test(p, exe, timeout: to)
  41. endforeach
  42. foreach s: scripts
  43. exe = find_program('./' + s)
  44. test(s, exe, env: e, timeout: 900)
  45. endforeach
  46. subdir('issue-75')