Add individual test definitions#207
Conversation
9b6f269 to
c712c5c
Compare
c967ff6 to
409519b
Compare
5eccc0f to
cad2f3e
Compare
smuppand
left a comment
There was a problem hiding this comment.
LGTM apart from the typo
| scope: | ||
| - functional | ||
|
|
||
| parames: |
There was a problem hiding this comment.
likely typo instead of params
There was a problem hiding this comment.
good catch. Thanks!
cad2f3e to
9bb35a6
Compare
9bb35a6 to
bef7ce8
Compare
|
I split the big commit into smaller chunks that address individual issues. It's ready for review now |
| log_info "Writing to file $RES_FILE" | ||
| echo "$TESTNAME PASS" >"$RES_FILE" | ||
| else | ||
| log_fail "$TESTNAME PASS" |
There was a problem hiding this comment.
We should display as FAIL.
| [ -n "$MODPATH" ] || log_fail "$MODNAME.ko not found in filesystem" | ||
| load_kernel_module "$MODPATH" || log_fail "Failed to load $MODNAME" | ||
| [ -n "$MODPATH" ] || (log_fail "$MODNAME.ko not found in filesystem"; echo "$TESTNAME FAIL" >"$RES_FILE") | ||
| load_kernel_module "$MODPATH" || (log_fail "Failed to load $MODNAME"; echo "$TESTNAME FAIL" >"$RES_FILE") |
There was a problem hiding this comment.
possible for us to keep multiple lines?
There was a problem hiding this comment.
do you mean to reformat subshell?
|
@mwasilew Does Lava YAML follow any strict linting rules? |
bef7ce8 to
50794b4
Compare
yes, kind of. There is no enforcement in LAVA itself. In test-definitions there is this script: https://github.com/Linaro/test-definitions/blob/master/validate.py#L96. It's probably a bit too strict for the test definitions in this repository. I can add something similar if you would like. |
Thanks. Yes, it may be needed once this PR is merged. At least having the basic structure that the lava test-definition expects would be a good sanity check. |
|
OK, I'll propose a test-definition check workflow in a separate PR. |
smuppand
left a comment
There was a problem hiding this comment.
There are a few minor updates to the video yaml.
|
|
||
| params: | ||
| APP_PATH: "/usr/bin/iris_v4l2_test" | ||
| CONFIG_PATH: "./h264Decoder.json" |
There was a problem hiding this comment.
CONFIG_PATH can refer to CWD, and the script will process all *.json files within it.
There was a problem hiding this comment.
ah, so if I leave it with "./" it will run use all JSON files?
There was a problem hiding this comment.
ah, so if I leave it with
"./"it will run use all JSON files?
Yes, this should be fine.
| params: | ||
| APP_PATH: "/usr/bin/iris_v4l2_test" | ||
| CONFIG_PATH: "./h264Decoder.json" | ||
| PLATFORM: "kodiak" |
There was a problem hiding this comment.
This field can remain blank since we automatically detect the platform and apply the required configurations. Otherwise, the target name must be provided from the lava job.
There was a problem hiding this comment.
ACK. I'll leave it blank and add the comments to explain.
There was a problem hiding this comment.
ACK. I'll leave it blank and add the comments to explain.
Yes, this should be fine.
50794b4 to
7902117
Compare
When saving LAVA results logfile is sometimes in a wrong path. This patch adds more logging to make sure results are written to the proper file. Signed-off-by: Milosz Wasilewski <milosz.wasilewski@oss.qualcomm.com>
Print debug log to stdout. This helps debugging issues when running tests in LAVA as the debug log is saved to the LAVA job log. Signed-off-by: Milosz Wasilewski <milosz.wasilewski@oss.qualcomm.com>
Save test result to the log file in case module is not found. This condition was missing when running the test in LAVA. Signed-off-by: Milosz Wasilewski <milosz.wasilewski@oss.qualcomm.com>
Save test result to the results file that is later exported in a LAVA job. This feature was missing and when running a job in LAVA no results were recorded. Signed-off-by: Milosz Wasilewski <milosz.wasilewski@oss.qualcomm.com>
Add a test-definitions YAML file for each test script. This allows to compose more flexible test plans and test each script separately in LAVA. Signed-off-by: Milosz Wasilewski <milosz.wasilewski@oss.qualcomm.com>
7902117 to
65db227
Compare
|
I rebased on top of main branch |
Individual test definitions are meant to be used for debugging the test scripts running in LAVA.