aboutsummaryrefslogtreecommitdiffstats
path: root/test/test.sh
diff options
context:
space:
mode:
Diffstat (limited to 'test/test.sh')
-rw-r--r--test/test.sh9
1 files changed, 9 insertions, 0 deletions
diff --git a/test/test.sh b/test/test.sh
new file mode 100644
index 0000000..62d6edf
--- /dev/null
+++ b/test/test.sh
@@ -0,0 +1,9 @@
+#!/bin/sh
+TEST_DIR=.
+JID=$(echo $@ | sed 's/ /_/g')
+
+touch "$TEST_DIR/logs/log[$JID]"
+sh ./core_script.sh $@ | tee "$TEST_DIR/logs/log[$JID]"
+tail ./times/normal/* -q -n 1 | cut -f 2 -d " " | awk 'BEGIN{printf "a=c(";cnt=1}{if(cnt!=1){printf ","}printf "%s",$1; ++cnt}END{print ")"}' > $TEST_DIR/Rstuff/[$JID].R
+echo "plot(1:length(a),col='red',type='l');points(1:length(a),col='red');points(a/a[1],col='green');lines(a/a[1],col='green');" >> $TEST_DIR/Rstuff/[$JID].R
+