gvisor/runsc/test
Samantha Sample a0a86bbb82 Prototype integration of runtime language tests for Node.js into gVisor.
This is the first version of a testing program to be used by gVisor for
including language testing into their presubmits.  It works when ran in
the same manor the image and integration tests are ran in as described in
their README file.

PiperOrigin-RevId: 259392416
2019-07-22 13:19:50 -07:00
..
image Use new location of python-hello image in tests. 2019-07-01 17:01:17 -07:00
integration test/integration: wait a background process 2019-07-16 15:06:17 -07:00
root Update canonical repository. 2019-06-13 16:50:15 -07:00
runtimes Prototype integration of runtime language tests for Node.js into gVisor. 2019-07-22 13:19:50 -07:00
testutil Avoid importing platforms from many source files 2019-07-03 22:51:26 -07:00
BUILD gvisor/kokoro: don't modify tests names in the BUILD file 2019-06-18 01:41:29 -07:00
README.md netstack: reduce MSS from SYN to account tcp options 2019-03-19 17:33:20 -07:00
build_defs.bzl gvisor/kokoro: don't modify tests names in the BUILD file 2019-06-18 01:41:29 -07:00
install.sh Fix runsc restore to be compatible with docker start --checkpoint ... 2019-05-03 21:41:45 -07:00

README.md

Tests

The tests defined under this path are verifying functionality beyond what unit tests can cover, e.g. integration and end to end tests. Due to their nature, they may need extra setup in the test machine and extra configuration to run.

  • integration: defines integration tests that uses docker run to test functionality.
  • image: basic end to end test for popular images.
  • root: tests that require to be run as root.
  • testutil: utilities library to support the tests.

The following setup steps are required in order to run these tests:

 `./runsc/test/install.sh [--runtime <name>]`

The tests expect the runtime name to be provided in the RUNSC_RUNTIME environment variable (default: runsc-test). To run the tests execute:

bazel test --test_env=RUNSC_RUNTIME=runsc-test \
  //runsc/test/image:image_test \
  //runsc/test/integration:integration_test