From 109feaaf2fccc15bb046726c8879844ad6fd78ff Mon Sep 17 00:00:00 2001 From: Kamil Shakirov Date: Fri, 15 May 2020 16:03:34 +0600 Subject: [PATCH] Fix tests/chez/chez017 test --- tests/chez/chez017/.gitignore | 2 ++ tests/chez/chez017/{expected => expected.in} | 2 +- tests/chez/chez017/gen_expected.sh | 3 +++ tests/chez/chez017/run | 1 + 4 files changed, 7 insertions(+), 1 deletion(-) create mode 100644 tests/chez/chez017/.gitignore rename tests/chez/chez017/{expected => expected.in} (56%) create mode 100755 tests/chez/chez017/gen_expected.sh diff --git a/tests/chez/chez017/.gitignore b/tests/chez/chez017/.gitignore new file mode 100644 index 0000000..062cbdb --- /dev/null +++ b/tests/chez/chez017/.gitignore @@ -0,0 +1,2 @@ +/expected + diff --git a/tests/chez/chez017/expected b/tests/chez/chez017/expected.in similarity index 56% rename from tests/chez/chez017/expected rename to tests/chez/chez017/expected.in index a1d382e..6039096 100644 --- a/tests/chez/chez017/expected +++ b/tests/chez/chez017/expected.in @@ -1,7 +1,7 @@ File Exists False True -Just "/home/edwin/Research/Yaffle/tests/chez/chez017/testdir" +Just "__PWD__/testdir" 1/1: Building dir (dir.idr) Main> Main> Bye for now! hello diff --git a/tests/chez/chez017/gen_expected.sh b/tests/chez/chez017/gen_expected.sh new file mode 100755 index 0000000..0328b22 --- /dev/null +++ b/tests/chez/chez017/gen_expected.sh @@ -0,0 +1,3 @@ +#!/usr/bin/env sh + +sed -e "s|__PWD__|$(pwd)|g" expected.in > expected diff --git a/tests/chez/chez017/run b/tests/chez/chez017/run index 7d19274..7d0c0da 100755 --- a/tests/chez/chez017/run +++ b/tests/chez/chez017/run @@ -1,3 +1,4 @@ +./gen_expected.sh $1 --no-banner dir.idr < input cat testdir/test.txt rm -rf build testdir