Skip to content

Commit

Permalink
Small enhancement of unit tests implementation style and fix of the t…
Browse files Browse the repository at this point in the history
…ests' modules naming style.

 - introducing TEST_RANDOMIZE macro for randomization of source data used in unit tests;
 - renaming test_* to test-*.

JerryScript-DCO-1.0-Signed-off-by: Ruben Ayrapetyan [email protected]
  • Loading branch information
ruben-ayrapetyan committed Jun 11, 2015
1 parent 53801e3 commit e68b4f8
Show file tree
Hide file tree
Showing 14 changed files with 192 additions and 229 deletions.
2 changes: 1 addition & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -421,7 +421,7 @@ project (Jerry CXX C ASM)

foreach(SOURCE_UNIT_TEST_MAIN ${SOURCE_UNIT_TEST_MAIN_MODULES})
get_filename_component(TARGET_NAME ${SOURCE_UNIT_TEST_MAIN} NAME_WE)
set(TARGET_NAME unit_${TARGET_NAME})
set(TARGET_NAME unit-${TARGET_NAME})

set(CORE_TARGET_NAME unittests.jerry-core)
set(FDLIBM_TARGET_NAME unittests.jerry-fdlibm${SUFFIX_THIRD_PARTY_LIB})
Expand Down
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -207,7 +207,7 @@ unittests: $(BUILD_DIR)/native
(echo "cppcheck run failed. See $(OUT_DIR)/$@/cppcheck.log for details."; exit 1;)
@ $(MAKE) -C $(BUILD_DIR)/native VERBOSE=1 $@ &>$(OUT_DIR)/$@/make.log || \
(echo "Build failed. See $(OUT_DIR)/$@/make.log for details."; exit 1;)
@ cp $(BUILD_DIR)/native/unit_test_* $(OUT_DIR)/$@
@ cp $(BUILD_DIR)/native/unit-test-* $(OUT_DIR)/$@

$(BUILD_ALL)_native: $(BUILD_DIRS_NATIVE)
@ mkdir -p $(OUT_DIR)/$@
Expand Down
63 changes: 0 additions & 63 deletions tests/unit/common.h

This file was deleted.

Loading

0 comments on commit e68b4f8

Please sign in to comment.