X-Git-Url: https://diplodocus.org/git/nmh/blobdiff_plain/30a9c9b62fa92df289079080eb5ee57d2fda3951..81299194c0afb9c87fbde2970cc0bd8304b8df70:/test/common.sh.in diff --git a/test/common.sh.in b/test/common.sh.in index c121d5db..ae916194 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"