Add support of cross-compilation for linux-based targets.
Usage: - Cross compile: make debug.linux TOOLCHAIN=./build/configs/toolchain_linux_armv7l-el.cmake - Build unittests make unittests TOOLCHAIN=./build/configs/toolchain_linux_armv7l-el.cmake - Run unittests on target board ./tools/runners/run-unittests-remote.sh <ip> <login> <pass> - Run JavaScript test on target board ./tools/runners/run-tests-remote.sh debug.linux <ip> <login> <pass> JerryScript-DCO-1.0-Signed-off-by: Evgeny Gavrin e.gavrin@samsung.com
This commit is contained in:
+1
-35
@@ -57,38 +57,4 @@ echo -e "All targets were built successfully. Starting unit tests' run.\n"
|
||||
$MAKE unittests_run || exit 1
|
||||
echo -e "\nUnit tests completed successfully. Starting full testing.\n"
|
||||
|
||||
RUN_IDS=""
|
||||
|
||||
for TARGET in $TARGETS
|
||||
do
|
||||
ENGINE=$OUT_DIR/$TARGET/jerry
|
||||
LOGS_PATH_PARSE_ONLY=$OUT_DIR/$TARGET/check_parse_only
|
||||
LOGS_PATH_FULL=$OUT_DIR/$TARGET/check
|
||||
|
||||
# Parse-only testing
|
||||
INDEX=0
|
||||
for TESTS_PATH in "./tests/benchmarks/jerry"
|
||||
do
|
||||
./tools/runners/run-precommit-check-for-target.sh $ENGINE $LOGS_PATH_PARSE_ONLY/$INDEX $TESTS_PATH --parse-only &
|
||||
RUN_IDS="$RUN_IDS $!";
|
||||
INDEX=$((INDEX + 1))
|
||||
done
|
||||
|
||||
# Full testing
|
||||
INDEX=0
|
||||
for TESTS_PATH in "./tests/jerry" "./tests/jerry-test-suite/precommit_test_list"
|
||||
do
|
||||
./tools/runners/run-precommit-check-for-target.sh $ENGINE $LOGS_PATH_FULL/$INDEX $TESTS_PATH &
|
||||
RUN_IDS="$RUN_IDS $!";
|
||||
INDEX=$((INDEX + 1))
|
||||
done
|
||||
done
|
||||
|
||||
RESULT_OK=1
|
||||
for RUN_ID in $RUN_IDS
|
||||
do
|
||||
wait $RUN_ID || RESULT_OK=0
|
||||
done;
|
||||
[ $RESULT_OK -eq 1 ] || exit 1
|
||||
|
||||
echo -e "Full testing completed successfully\n\n================\n\n"
|
||||
./tools/precommit-full-testing.sh "${OUT_DIR}" "${TARGETS}" || exit 1
|
||||
|
||||
Reference in New Issue
Block a user