Skip to content

Commit aa6318b

Browse files
abtinkjwhui
authored andcommitted
[toranj] add option to build script to enable tests (openthread#4257)
1 parent 68d2b8e commit aa6318b

File tree

1 file changed

+8
-2
lines changed

1 file changed

+8
-2
lines changed

tests/toranj/build.sh

+8-2
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,7 @@ display_usage() {
4242
echo ""
4343
echo "Options:"
4444
echo " -c/--enable-coverage Enable code coverage"
45+
echo " -t/--enable-tests Enable tests"
4546
echo ""
4647
}
4748

@@ -51,6 +52,7 @@ die() {
5152
}
5253

5354
coverage=no
55+
tests=no
5456

5557
while [ $# -ge 2 ]
5658
do
@@ -59,6 +61,10 @@ do
5961
coverage=yes
6062
shift
6163
;;
64+
-t|--enable-tests)
65+
tests=yes
66+
shift
67+
;;
6268
*)
6369
echo "Error: Unknown option \"$1\""
6470
display_usage
@@ -76,7 +82,7 @@ build_config=$1
7682

7783
configure_options=" \
7884
--disable-docs \
79-
--disable-tests \
85+
--enable-tests=$tests \
8086
--enable-coverage=$coverage \
8187
--enable-ftd \
8288
--enable-ncp \
@@ -109,7 +115,7 @@ case ${build_config} in
109115
--enable-radio-only \
110116
--with-examples=posix \
111117
--disable-docs \
112-
--disable-tests || die
118+
--enable-tests=$tests || die
113119
make -j 8 || die
114120
;;
115121

0 commit comments

Comments
 (0)