From e9f85c4eeec544da1990b1e3a439b109bae15b3c Mon Sep 17 00:00:00 2001 From: Vrganj Date: Sat, 23 Jan 2021 22:09:00 +0100 Subject: [PATCH] Add dash --- lxc/executors/dash | 4 ++++ lxc/test_all_lxc | 2 ++ lxc/tests/dash.sh | 1 + lxc/versions | 4 ++++ shared/languages.json | 6 ++++++ 5 files changed, 17 insertions(+) create mode 100644 lxc/executors/dash create mode 100644 lxc/tests/dash.sh diff --git a/lxc/executors/dash b/lxc/executors/dash new file mode 100644 index 0000000..cf20c38 --- /dev/null +++ b/lxc/executors/dash @@ -0,0 +1,4 @@ +#!/bin/bash + +cd /tmp/$2 +xargs -a args.args -d '\n' timeout -s KILL 3 dash code.code < stdin.stdin diff --git a/lxc/test_all_lxc b/lxc/test_all_lxc index ba64572..3b9f545 100755 --- a/lxc/test_all_lxc +++ b/lxc/test_all_lxc @@ -11,6 +11,8 @@ echo -n 'testing cpp = ' ../../cli/execute cpp cpp.cpp echo -n 'testing csharp = ' ../../cli/execute csharp csharp.cs +echo -n 'testing dash = ' +../../cli/execute dash dash.sh echo -n 'testing deno = ' ../../cli/execute deno deno.ts echo -n 'testing elixir = ' diff --git a/lxc/tests/dash.sh b/lxc/tests/dash.sh new file mode 100644 index 0000000..f2f0102 --- /dev/null +++ b/lxc/tests/dash.sh @@ -0,0 +1 @@ +echo 'good' diff --git a/lxc/versions b/lxc/versions index 098cb92..7684fbf 100755 --- a/lxc/versions +++ b/lxc/versions @@ -29,6 +29,10 @@ echo "elixir" lxc-attach --clear-env -n piston -- /bin/bash -l -c "elixir --version" echo '---' +echo 'dash' +lxc-attach --clear-env -n piston -- /bin/bash -l -c "dpkg -s dash" +echo '---' + echo 'deno' lxc-attach --clear-env -n piston -- /bin/bash -l -c "deno --version" echo '---' diff --git a/shared/languages.json b/shared/languages.json index b158de2..a191b67 100644 --- a/shared/languages.json +++ b/shared/languages.json @@ -63,6 +63,12 @@ "denots" ] }, + { + "name": "dash", + "aliases": [ + "dash" + ] + }, { "name": "ruby", "aliases": [