1
0
mirror of https://github.com/containers/youki synced 2024-11-24 01:44:17 +01:00
youki/youki_integration_test
Yashodhan Joshi afd546bc26 Move sleep after sending kill signal to test itself
Sleeping is necessary only when running all lifecycle tests,
as otherwise container is still running when we try to delete, and delete test fails.
But keeping sleep in kill function slows all other test where we do not try deleting immidiately afterwards.
Thus moved the sleep in the kill test itself, so only happend when testing lifecycle functions.
2021-09-19 21:01:02 +05:30
..
src Move sleep after sending kill signal to test itself 2021-09-19 21:01:02 +05:30
.gitignore Impl original integration test tool 2021-07-16 04:55:46 +09:00
build.sh Impl original integration test tool 2021-07-16 04:55:46 +09:00
bundle.tar.gz Impl original integration test tool 2021-07-16 04:55:46 +09:00
Cargo.lock Convert hard-coded word youki to more generic runtime 2021-09-19 20:38:20 +05:30
Cargo.toml Convert hard-coded word youki to more generic runtime 2021-09-19 20:38:20 +05:30
README.md Add Readme for integration tests 2021-08-30 10:31:35 +05:30

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