ocitools icon indicating copy to clipboard operation
ocitools copied to clipboard

Support test cases

Open mrunalp opened this issue 10 years ago • 3 comments

We can support test cases by making test_runtime.sh take in bundle path and test case json (arguments to generate) as arguments.

mrunalp avatar Nov 12 '15 20:11 mrunalp

@zenlinTechnofreak @liangchenye

mrunalp avatar Nov 12 '15 20:11 mrunalp

Agree, we could provide several test cases as the 'official test case' to cover different configurations.

In OCT, we make it an easier way: use a certain parameter. For example, if we want to test 'terminal = false', we just need to add "--rootfs=rootfs --terminal=false" , and the generator will fill the left configs by using the default setting.

liangchenye avatar Nov 13 '15 13:11 liangchenye

The testing logic is the same.

if the test case is the test config, it is: ./runtime bundleURL configURL if the test case is the certain parameters, it is: ./generater configParams -o configURL ./runtime bundleURL configURL

liangchenye avatar Nov 13 '15 13:11 liangchenye