gvisor/test/runtimes
Brett Landau f2762e8c60 Create tests for common.Search().
Using the path_test.go file built by the Golang
devs as a base, tests have been created to verify
the functionality of common.Search().

A mock file system is created and fake test files
are generated to see if they get picked up by
common.Search().

Also included in this CL is a bug fix for
proctor-nodejs that was discovered using this test.
proctor-nodejs used to allow multiple "-" in its
test name filter. The regex has been updated to
prevent this.

PiperOrigin-RevId: 262647263
2019-08-09 15:35:58 -07:00
..
common Create tests for common.Search(). 2019-08-09 15:35:58 -07:00
go Alter Dockerfiles to include common.go and use a prebuilt JDK. 2019-08-05 17:20:05 -07:00
java Alter Dockerfiles to include common.go and use a prebuilt JDK. 2019-08-05 17:20:05 -07:00
nodejs Create tests for common.Search(). 2019-08-09 15:35:58 -07:00
php Alter Dockerfiles to include common.go and use a prebuilt JDK. 2019-08-05 17:20:05 -07:00
python Alter Dockerfiles to include common.go and use a prebuilt JDK. 2019-08-05 17:20:05 -07:00
BUILD
README.md Alter Dockerfiles to include common.go and use a prebuilt JDK. 2019-08-05 17:20:05 -07:00
runtimes.go
runtimes_test.go

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 directory:

$ docker build -f $LANG/Dockerfile [-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