]> diplodocus.org Git - nmh/blobdiff - test/common.sh.in
Very close, but it doesn't passes the tests just yet.
[nmh] / test / common.sh.in
index 144a1bed4b1179e0f3edcde367434bbe8df77936..7a4fc7aad0af8d07e52ae9bd1db85cdfef70fc78 100644 (file)
@@ -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"