summaryrefslogtreecommitdiffhomepage
path: root/test/runtimes/README.md
diff options
context:
space:
mode:
authorSamantha Sample <samsample@google.com>2019-07-29 14:15:51 -0700
committergVisor bot <gvisor-bot@google.com>2019-07-29 14:17:11 -0700
commit8e8b6096116eb490b438a53061195f737d4eca8b (patch)
treeee0af6ddec5c18483fe2bc783382b62760e751ee /test/runtimes/README.md
parent09be87bbee1e4338b488f22199d0f079ffec8d0e (diff)
Move runtimes tests to appropriate directory.
PiperOrigin-RevId: 260577765
Diffstat (limited to 'test/runtimes/README.md')
-rw-r--r--test/runtimes/README.md40
1 files changed, 40 insertions, 0 deletions
diff --git a/test/runtimes/README.md b/test/runtimes/README.md
new file mode 100644
index 000000000..4e5a950bc
--- /dev/null
+++ b/test/runtimes/README.md
@@ -0,0 +1,40 @@
+# 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](https://docs.docker.com/install/)
+
+2) Build each Docker container:
+
+```bash
+$ docker build -f $LANG/Dockerfile [-t $NAME] .
+```
+
+### Testing:
+
+If the prerequisites have been fulfilled, you can run the tests with the
+following command:
+
+```bash
+$ 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 &lt;name&gt;: Run a single test from the list of available tests
+- --v: Print the language version