From f05837a442ec4072afed9373edd2961b6df03525 Mon Sep 17 00:00:00 2001 From: Simon Michael Date: Fri, 3 Sep 2010 17:44:57 +0000 Subject: [PATCH] make file include test more robust (#21) - space prefix to deter shelltest --with usage - use the just-built hledger binary, not whatever's in PATH - more post-test cleanup --- tests/include.test | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tests/include.test b/tests/include.test index fa088b39a..5729b79c4 100644 --- a/tests/include.test +++ b/tests/include.test @@ -1,5 +1,5 @@ # nested includes in subdirectories -mkdir -p b/c/d ; printf '2010/1/1\n (D) 1\n' >b/c/d/d.journal ; printf '2010/1/1\n (C) 1\n!include d/d.journal\n' >b/c/c.journal ; printf '2010/1/1\n (B) 1\n!include c/c.journal\n' >b/b.journal ; printf '2010/1/1\n (A) 1\n!include b/b.journal\n' >a.journal ; hledger -f a.journal print; rm -rf b + mkdir -p b/c/d ; printf '2010/1/1\n (D) 1\n' >b/c/d/d.journal ; printf '2010/1/1\n (C) 1\n!include d/d.journal\n' >b/c/c.journal ; printf '2010/1/1\n (B) 1\n!include c/c.journal\n' >b/b.journal ; printf '2010/1/1\n (A) 1\n!include b/b.journal\n' >a.journal ; bin/hledger -f a.journal print; rm -rf a.journal b >>> 2010/01/01 (A) 1 @@ -13,3 +13,4 @@ mkdir -p b/c/d ; printf '2010/1/1\n (D) 1\n' >b/c/d/d.journal ; printf '2010/1/ 2010/01/01 (D) 1 +>>>2