tests: shunit2: make it working under CMake
[oweals/uci.git] / tests / shunit2 / tests.sh
old mode 100644 (file)
new mode 100755 (executable)
index ee72c31..a7c6d90
@@ -6,7 +6,7 @@ CHANGES_DIR="/tmp/.uci"
 TMP_DIR=${TESTS_DIR}"/tmp"
 FULL_SUITE=${TESTS_DIR}"/full_suite.sh"
 
-UCI_BIN="../uci"
+UCI_BIN=${UCI_BIN:-"../uci"}
 [ -x $UCI_BIN ] || {
        echo "uci is not present." >&2
        return 1