From 315d50271a23ab0d771c5f0189b77a6de79cfae8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Matthias=20Kr=C3=BCger?= Date: Thu, 17 Dec 2015 14:25:24 +0100 Subject: [PATCH] add small script which converts code to a format for testrunner testcases. --- tools/testrunnerify_code.sh | 3 +++ 1 file changed, 3 insertions(+) create mode 100755 tools/testrunnerify_code.sh diff --git a/tools/testrunnerify_code.sh b/tools/testrunnerify_code.sh new file mode 100755 index 000000000..ade3bb4a1 --- /dev/null +++ b/tools/testrunnerify_code.sh @@ -0,0 +1,3 @@ +#!/bin/bash + +cat $1 | sed s@\"@\\\\\"@g | sed s@^@\"@ | sed s@\$@\\\\n\"@ | sed 's@\t@ @g'