aboutsummaryrefslogtreecommitdiffstats
path: root/contrib/libs/libjpeg-turbo/ut/tjunittest.py
blob: 972e069b29f71de4c8c35626c555c357145cdc3d (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
#!/usr/bin/python

import yatest.common

_TJUNITTEST = "contrib/libs/libjpeg-turbo/tjunittest/tjunittest"

def run_unit(args=None):
    binary = yatest.common.binary_path(_TJUNITTEST)
    return yatest.common.canonical_execute(binary, args)

def test_tjunittest():
    return run_unit()

def test_tjunittest_alloc():
    return run_unit(["-alloc"])

def test_tjunittest_yuv():
    return run_unit(["-yuv"])

def test_tjunittest_yuv_alloc():
    return run_unit(["-yuv", "-alloc"])

def test_tjunittest_yuv_noyuvpad():
    return run_unit(["-yuv", "-noyuvpad"])