1
0

meson.build 877 B

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950
  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. foreach p: progs
  33. exe = executable(p, p + '.c', dependencies: jansson, link_with: libjose)
  34. if p == 'api_b64'
  35. to = 1800
  36. else
  37. to = 30
  38. endif
  39. test(p, exe, timeout: to)
  40. endforeach
  41. foreach s: scripts
  42. exe = find_program('./' + s)
  43. test(s, exe, env: e, timeout: 60)
  44. endforeach
  45. subdir('issue-75')