diff --git a/testground/hello_codex/Dockerfile b/testground/hello_codex/Dockerfile new file mode 100644 index 00000000..57e979be --- /dev/null +++ b/testground/hello_codex/Dockerfile @@ -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"] diff --git a/testground/hello_codex/hello_codex.nim b/testground/hello_codex/hello_codex.nim new file mode 100644 index 00000000..f47eae10 --- /dev/null +++ b/testground/hello_codex/hello_codex.nim @@ -0,0 +1,3 @@ +echo "HELLO FROM CODEX" +echo "HELLO FROM CODEX" +echo "HELLO FROM CODEX" diff --git a/testground/hello_codex/manifest.toml b/testground/hello_codex/manifest.toml new file mode 100644 index 00000000..013ab6a7 --- /dev/null +++ b/testground/hello_codex/manifest.toml @@ -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" + ]