1
0
mirror of https://github.com/containers/youki synced 2024-11-23 17:32:15 +01:00
youki/youki_integration_test
Yashodhan Joshi 28ce007066 Add resolution of runtime path using which crate
Now it is not required to give complete path of the runtime, if it exists in $PATH
previously needed to provide /usr/bin/run, now only runc resolves to it
2021-09-20 20:48:10 +05:30
..
src
.gitignore
build.sh
bundle.tar.gz
Cargo.lock
Cargo.toml
README.md

Integration test

This provides a test suite to test low level OCI spec compliant container runtime

Usage

# in root folder
$ ./build.sh
$ cd youki_integration_test
$ cp ../youki .
$ ./build.sh
# currently root access is required
$ sudo ./youki_integration_test -r ./youki

This provides following commandline options :

  • --runtime (-r) : Required. Takes path of runtime executable to be tested. If the path is not valid, the program exits.
  • --tests (-t) : Optional. Takes list of tests to be run, and runs only those tests. Format for it is : test-grp-1::test-1,test-2 <space> test-grp-2 <space> test-grp-3::test-3 .... The test groups with no specific tests specified, (test-grp-2 in the example) , will run all of its tests, and in other cases, only selected tests will be run. Test groups not mentioned will be ignored.

Currently, there are following test groups and tests :

  • lifecycle
    • create
    • start
    • kill
    • state
    • delete
  • create
    • empty_id
    • valid_id
    • duplicate_id