tjunittest.py 561 B

123456789101112131415161718192021222324
  1. #!/usr/bin/python
  2. import yatest.common
  3. _TJUNITTEST = "contrib/libs/libjpeg-turbo/tjunittest/tjunittest"
  4. def run_unit(args=None):
  5. binary = yatest.common.binary_path(_TJUNITTEST)
  6. return yatest.common.canonical_execute(binary, args)
  7. def test_tjunittest():
  8. return run_unit()
  9. def test_tjunittest_alloc():
  10. return run_unit(["-alloc"])
  11. def test_tjunittest_yuv():
  12. return run_unit(["-yuv"])
  13. def test_tjunittest_yuv_alloc():
  14. return run_unit(["-yuv", "-alloc"])
  15. def test_tjunittest_yuv_noyuvpad():
  16. return run_unit(["-yuv", "-noyuvpad"])