gvisor/test/runtimes
Kevin Krakauer 1e1f5ce082 Allow all runtime tests for a language to be run via a single command.
This was intended behavior per the README, but running tests without the --test
flag caused an error. Users can now omit the --test flag to run every test for a
runtime.

PiperOrigin-RevId: 280522025
2019-11-14 15:06:04 -08:00
..
images Allow all runtime tests for a language to be run via a single command. 2019-11-14 15:06:04 -08:00
BUILD Add Kokoro config for new runtime tests 2019-10-30 16:16:15 -07:00
README.md Refactor and clean up image tests. 2019-09-16 17:51:22 -07:00
blacklist_go1.12.csv Add blacklists for remaining runtime tests, and test that they parse correctly. 2019-10-09 11:22:53 -07:00
blacklist_java11.csv Add blacklists for remaining runtime tests, and test that they parse correctly. 2019-10-09 11:22:53 -07:00
blacklist_nodejs12.4.0.csv Add blacklists for remaining runtime tests, and test that they parse correctly. 2019-10-09 11:22:53 -07:00
blacklist_php7.3.6.csv Add blacklists for remaining runtime tests, and test that they parse correctly. 2019-10-09 11:22:53 -07:00
blacklist_python3.7.3.csv Add blacklists for remaining runtime tests, and test that they parse correctly. 2019-10-09 11:22:53 -07:00
blacklist_test.go Add blacklists for remaining runtime tests, and test that they parse correctly. 2019-10-09 11:22:53 -07:00
build_defs.bzl Add "manual" tag back to runtime tests. 2019-11-01 11:53:47 -07:00
runner.go Add blacklist support to the runtime test runner. 2019-10-01 12:49:12 -07:00
runner.sh Shard the runtime tests. 2019-09-18 17:04:53 -07:00

README.md

Runtimes Tests Dockerfiles

The Dockerfiles defined under this path are configured to host the execution of the runtimes language tests. Each Dockerfile can support the language indicated by its directory.

The following runtimes are currently supported:

  • Go 1.12
  • Java 11
  • Node.js 12
  • PHP 7.3
  • Python 3.7

Prerequisites:

  1. Install and configure Docker

  2. Build each Docker container from the runtimes/images directory:

$ cd images
$ docker build -f Dockerfile_$LANG [-t $NAME] .

Testing:

If the prerequisites have been fulfilled, you can run the tests with the following command:

$ docker run --rm -it $NAME [FLAG]

Running the command with no flags will cause all the available tests to execute.

Flags can be added for additional functionality:

  • --list: Print a list of all available tests
  • --test <name>: Run a single test from the list of available tests
  • --v: Print the language version