File tree Expand file tree Collapse file tree 3 files changed +13
-9
lines changed Expand file tree Collapse file tree 3 files changed +13
-9
lines changed Original file line number Diff line number Diff line change @@ -54,7 +54,7 @@ PRINT_USAGE() {
54
54
echo " --sanitize=CHECKS Build with clang -fsanitize checks,"
55
55
echo " e.g. undefined,signed-integer-overflow."
56
56
echo " -t, --test-build Test build. Enables test flags on a release build."
57
- echo " --target-os [=S] Target OS"
57
+ echo " --target[=S] Target OS"
58
58
echo " --target-path[=S] Output path for compiled binaries. Default: out/"
59
59
echo " --trace Enables experimental built-in trace."
60
60
echo " --xcode Generate XCode project."
@@ -79,7 +79,9 @@ script (at your own risk)"
79
79
echo " "
80
80
}
81
81
82
- CHAKRACORE_DIR=` dirname $0 `
82
+ pushd ` dirname $0 ` > /dev/null
83
+ CHAKRACORE_DIR=` pwd -P`
84
+ popd > /dev/null
83
85
_CXX=" "
84
86
_CC=" "
85
87
_VERBOSE=" "
Original file line number Diff line number Diff line change 8
8
# This script is mainly for CI only. In case you have ChakraCore is compiled for multiple
9
9
# targets, this script may fail to test all of them. Use runtests.py instead.
10
10
11
- test_path=` dirname " $0 " `
12
-
11
+ pushd ` dirname $0 ` > /dev/null
12
+ test_path=` pwd -P`
13
+ popd > /dev/null
13
14
build_type=
14
15
binary_path=
15
16
release_build=0
52
53
fi
53
54
fi
54
55
55
- RES=$( pwd)
56
- CH_ABSOLUTE_PATH=" $RES /${test_path} /../out/${binary_path} /ch"
57
- RES=$( cd $RES /$test_path /native-tests; ./test_native.sh ${CH_ABSOLUTE_PATH} ${binary_path} 2>&1 )
56
+ CH_ABSOLUTE_PATH=" ${test_path} /../out/${binary_path} /ch"
57
+ RES=$( cd $test_path /native-tests; ./test_native.sh ${CH_ABSOLUTE_PATH} ${binary_path} 2>&1 )
58
58
if [[ $? != 0 ]]; then
59
59
echo " Error: Native tests failed"
60
60
echo -e " $RES "
Original file line number Diff line number Diff line change @@ -17,7 +17,9 @@ echo " --llvm-config=PATH llvm-config executable"
17
17
echo " "
18
18
}
19
19
20
- SCRIPT_DIR=` dirname $0 `
20
+ pushd ` dirname $0 ` > /dev/null
21
+ SCRIPT_DIR=` pwd -P`
22
+ popd > /dev/null
21
23
CLANG_INC=
22
24
CXX_COMPILER=
23
25
LLVM_CONFIG=
@@ -80,4 +82,4 @@ cmake \
80
82
_RET=$?
81
83
82
84
popd > /dev/null
83
- exit $_RET
85
+ exit $_RET
You can’t perform that action at this time.
0 commit comments