From 69920c6ea89f7c65d5a2d0a0bc573b9c0fec11d0 Mon Sep 17 00:00:00 2001 From: Anthony Maton Date: Wed, 22 Feb 2017 15:12:14 +0100 Subject: [PATCH] Create Octave environment --- tasks/hello-octave.task | 10 ++++++++++ tasks/hello-octave/control | 1 + tasks/hello-octave/hello-octave.oct | 1 + tasks/hello-octave/hello-octave.sh | 2 ++ 4 files changed, 14 insertions(+) create mode 100644 tasks/hello-octave.task create mode 100755 tasks/hello-octave/control create mode 100644 tasks/hello-octave/hello-octave.oct create mode 100755 tasks/hello-octave/hello-octave.sh diff --git a/tasks/hello-octave.task b/tasks/hello-octave.task new file mode 100644 index 0000000..800efa0 --- /dev/null +++ b/tasks/hello-octave.task @@ -0,0 +1,10 @@ +{ + "environment": "octave", + "taskfs": "hello-octave.sfs", + "limits": { + "time": 60, + "memory": 128, + "disk": 50, + "output": 4096 + } +} \ No newline at end of file diff --git a/tasks/hello-octave/control b/tasks/hello-octave/control new file mode 100755 index 0000000..07f0ef7 --- /dev/null +++ b/tasks/hello-octave/control @@ -0,0 +1 @@ +./task/hello-octave.sh diff --git a/tasks/hello-octave/hello-octave.oct b/tasks/hello-octave/hello-octave.oct new file mode 100644 index 0000000..1587579 --- /dev/null +++ b/tasks/hello-octave/hello-octave.oct @@ -0,0 +1 @@ +printf ("Hello, world!\n"); \ No newline at end of file diff --git a/tasks/hello-octave/hello-octave.sh b/tasks/hello-octave/hello-octave.sh new file mode 100755 index 0000000..2db4e5a --- /dev/null +++ b/tasks/hello-octave/hello-octave.sh @@ -0,0 +1,2 @@ +#!/bin/sh +octave-cli -qf /task/hello-octave.oct