Skip to content

Commit 60dc0d0

Browse files
author
Ruben Ayrapetyan
committed
Small enhancement of unit tests implementation style and fix of the tests' modules naming style.
- introducing TEST_RANDOMIZE macro for randomization of source data used in unit tests; - replacing assert with JERRY_ASSERT; - renaming test_* to test-*. JerryScript-DCO-1.0-Signed-off-by: Ruben Ayrapetyan r.ayrapetyan@samsung.com
1 parent 53801e3 commit 60dc0d0

14 files changed

+194
-229
lines changed

CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -421,7 +421,7 @@ project (Jerry CXX C ASM)
421421

422422
foreach(SOURCE_UNIT_TEST_MAIN ${SOURCE_UNIT_TEST_MAIN_MODULES})
423423
get_filename_component(TARGET_NAME ${SOURCE_UNIT_TEST_MAIN} NAME_WE)
424-
set(TARGET_NAME unit_${TARGET_NAME})
424+
set(TARGET_NAME unit-${TARGET_NAME})
425425

426426
set(CORE_TARGET_NAME unittests.jerry-core)
427427
set(FDLIBM_TARGET_NAME unittests.jerry-fdlibm${SUFFIX_THIRD_PARTY_LIB})

Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -207,7 +207,7 @@ unittests: $(BUILD_DIR)/native
207207
(echo "cppcheck run failed. See $(OUT_DIR)/$@/cppcheck.log for details."; exit 1;)
208208
@ $(MAKE) -C $(BUILD_DIR)/native VERBOSE=1 $@ &>$(OUT_DIR)/$@/make.log || \
209209
(echo "Build failed. See $(OUT_DIR)/$@/make.log for details."; exit 1;)
210-
@ cp $(BUILD_DIR)/native/unit_test_* $(OUT_DIR)/$@
210+
@ cp $(BUILD_DIR)/native/unit-test-* $(OUT_DIR)/$@
211211

212212
$(BUILD_ALL)_native: $(BUILD_DIRS_NATIVE)
213213
@ mkdir -p $(OUT_DIR)/$@

tests/unit/common.h

Lines changed: 0 additions & 63 deletions
This file was deleted.

0 commit comments

Comments
 (0)