From 1b1c733146759c547577533a2e87dd44bfb7a63d Mon Sep 17 00:00:00 2001 From: Li Cao Date: Tue, 9 Feb 2021 03:40:11 +0800 Subject: [PATCH] [script] support to specify cmake build directory in script/test (#6153) This commit makes the cmake output directory configurable in script/test. By default the build directory is still ./build. --- script/test | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/script/test b/script/test index c25730e8c..66c9073d6 100755 --- a/script/test +++ b/script/test @@ -32,7 +32,7 @@ set -euo pipefail -readonly OT_BUILDDIR="${PWD}/build" +readonly OT_BUILDDIR="${OT_BUILDDIR:-${PWD}/build}" readonly OT_SRCDIR="${PWD}" readonly COLOR_PASS='\033[0;32m' @@ -365,6 +365,8 @@ ENVIRONMENTS: 'rcp-ncp' for NCP on POSIX platform. The default is 'cli'. OT_NATIVE_IP 1 to enable platform UDP and netif on POSIX platform. The default is 0. + OT_BUILDDIR The output directory for cmake build. By default the directory is './build'. For example, + 'OT_BUILDDIR=\${PWD}/my_awesome_build ./script/test clean build'. VERBOSE 1 to build or test verbosely. The default is 0. VIRTUAL_TIME 1 for virtual time, otherwise real time. The default value is 0 when running expect tests, otherwise default value is 1.