[wip] testground/hello_codex/

This commit is contained in:
Michael Bradley, Jr 2022-08-16 09:25:02 -05:00 committed by Dmitriy Ryajov
parent 75af9ee41f
commit 2a76583c57
No known key found for this signature in database
GPG Key ID: DA8C680CE7C657A4
3 changed files with 41 additions and 0 deletions

View File

@ -0,0 +1,14 @@
FROM nimlang/nim as builder
RUN apt update -qq && \
DEBIAN_FRONTEND="noninteractive" apt install -yq cmake curl make
FROM builder
COPY . .
RUN cd /extra/scratch/nim-codex && make USE_SYSTEM_NIM=1 V=1 update
RUN cd /extra/scratch/nim-codex && make USE_SYSTEM_NIM=1 V=1 hello_codex
ENTRYPOINT ["/extra/scratch/nim-codex/build/hello_codex"]

View File

@ -0,0 +1,3 @@
echo "HELLO FROM CODEX"
echo "HELLO FROM CODEX"
echo "HELLO FROM CODEX"

View File

@ -0,0 +1,24 @@
name = "hello_codex"
[defaults]
builder = "docker:generic"
runner = "local:docker"
[builders."docker:generic"]
enabled = true
[runners."local:docker"]
enabled = true
[[testcases]]
name= "hello_codex"
instances = { min = 2, default = 2, max = 2 }
# [testcases.params]
# payload = { type = "string", default = "Hello!" }
# count = { type = "int", default = 2 }
# printResult = { type = "bool", default = true }
[extra_sources]
docker_generic = [
"../../scratch"
]