From: David Levine Date: Mon, 15 Aug 2016 14:58:33 +0000 (-0400) Subject: Create $MH_OBJ_DIR/test/testdir if it doesn't already exist. This X-Git-Url: https://diplodocus.org/git/nmh/commitdiff_plain/a864175a7ed93144db072ea647468df0fa79628f?ds=inline;hp=-c Create $MH_OBJ_DIR/test/testdir if it doesn't already exist. This allows a test to be run standalone, now that said directory must exist before defining $MH_TEST_DIR. (cherry picked from commit 0f53d91688c0fab28b900ad27a1610a755dea526) --- a864175a7ed93144db072ea647468df0fa79628f diff --git a/test/common.sh.in b/test/common.sh.in index 144a1bed..7a4fc7aa 100644 --- a/test/common.sh.in +++ b/test/common.sh.in @@ -7,6 +7,7 @@ #### outside of make. Requires that MH_OBJ_DIR be set on entry. #### Use the result of cd and pwd -P so that the result will agree #### with what getcwd(3) returns. +test -d "$MH_OBJ_DIR/test/testdir" || mkdir -p "$MH_OBJ_DIR/test/testdir" test -z "$MH_TEST_DIR" && MH_TEST_DIR=`cd "$MH_OBJ_DIR/test/testdir" && pwd -P` export MH_TEST_DIR test -z "$MH_INST_DIR" && MH_INST_DIR="${MH_TEST_DIR}/inst"