This commit is contained in:
Brian Seymour 2021-01-23 15:08:14 -06:00
parent 673d6f93a3
commit d07e563cb4
4 changed files with 3 additions and 3 deletions

View File

@ -1,5 +1,5 @@
#!/bin/bash
cd /tmp/$2
g++ -std=c++17 -o binary -x c++ code.code
timeout -s KILL 10 g++ -std=c++17 -o binary -x c++ code.code
timeout -s KILL 3 xargs -a args.args -d '\n' ./binary < stdin.stdin

View File

@ -1,5 +1,5 @@
#!/bin/bash
cd /tmp/$2
crystal build code.code
timeout -s KILL 10 crystal build code.code
timeout -s KILL 3 xargs -a args.args -d '\n' ./code < stdin.stdin

View File

@ -3,4 +3,4 @@
cd /tmp/$2
cp code.code code.d
timeout -s KILL 10 dmd code.d
xtimeout -s KILL 3 args -a args.args -d '\n' ./code
timeout -s KILL 3 args -a args.args -d '\n' ./code