Skip to content

Commit 352bb22

Browse files
committed
Replace two names of variables in test/test_examples.sh
Replace names of the following variables: - WORKSPACE with SOURCE_DIR - workspace_dir with source_dir Signed-off-by: Lukasz Dorau <[email protected]>
1 parent 4f57234 commit 352bb22

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

test/test_examples.sh

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -5,15 +5,15 @@
55

66
set -e
77

8-
WORKSPACE=$1
8+
SOURCE_DIR=$1
99
BUILD_DIR=$2
1010
INSTALL_DIR=$3
1111

1212
echo "Running: $0 $*"
1313

1414
function print_usage() {
1515
echo "$(basename $0) - test all examples standalone"
16-
echo "Usage: $(basename $0) <workspace_dir> <build_dir> <install_dir> <list-of-examples-to-run>"
16+
echo "Usage: $(basename $0) <source_dir> <build_dir> <install_dir> <list-of-examples-to-run>"
1717
}
1818

1919
if [ "$3" == "" ]; then
@@ -28,13 +28,13 @@ if [ "$4" == "" ]; then
2828
exit 0
2929
fi
3030

31-
if [ ! -f $WORKSPACE/README.md ]; then
32-
echo -e "error: incorrect <workspace_dir>: $WORKSPACE\n"
31+
if [ ! -f $SOURCE_DIR/README.md ]; then
32+
echo -e "error: incorrect <source_dir>: $SOURCE_DIR\n"
3333
print_usage
3434
exit 1
3535
fi
3636

37-
WORKSPACE=$(realpath $WORKSPACE)
37+
SOURCE_DIR=$(realpath $SOURCE_DIR)
3838
BUILD_DIR=$(realpath $BUILD_DIR)
3939
INSTALL_DIR=$(realpath $INSTALL_DIR)
4040

@@ -51,7 +51,7 @@ make -j$(nproc) install
5151
set +x
5252

5353
for ex in $EXAMPLES; do
54-
SRC_DIR="${WORKSPACE}/examples/$ex"
54+
SRC_DIR="${SOURCE_DIR}/examples/$ex"
5555
BLD_DIR="${BUILD_DIR}/examples-standalone/$ex"
5656

5757
if [ ! -d $SRC_DIR ]; then

0 commit comments

Comments
 (0)