Changes

Jump to: navigation, search

Import sqlite test suite

1,563 bytes added, 00:14, 13 November 2008
Releases
***<b>make test_js_file:</b> it tests a specific file in the unit folder
****ex)make test_js_file f=test_like.js
{|
|width="15px"|
|
 
{|class="collapsible collapsed" style="border-style:solid;border-width:thin;border-color:black"
!align="left" style="background-color:#ffffff; font-weight:bold;border-style:solid;border-width:thin;padding: 2px 2px 2px 2px;"|new codes in Makefile (/src/storage/test/)
|-
|
<pre>
#######################################################################
# SQLite Test Code
# C++ code test param : test_c++ or test_sqlite or TEST_SQLIITE
# .js code test :
test_js : testing all .js file in the unit folder
ex) make test_js
 
test_js_file: testing specific .js file in the unit folder
ex) make test_js_file f=test_like.js
#######################################################################
 
TEST_C_URL = $(DEPTH)/../$(OBJ_SUFFIX)-$(target)/dist/bin
TEST_JS_URL = $(DEPTH)/../$(OBJ_SUFFIX)-$(target)/storage/test
TEST_JS_SINGLE_URL = $(DEPTH)/../src/storage/test/unit
 
# C++ code test
# label the same names: test_c++ / test_sqlite / TEST_SQLIITE
# it calls a sqlite test file in the "obj/dist/bin" folder
 
TEST_SQLIITE:
$(TEST_C_URL)/$(PROGRAM)
 
test_c++: TEST_SQLIITE
test_sqlite:TEST_SQLIITE
 
#
# .js code test
# TEST_JS: test all .js files in the test folder
#
 
TEST_JS:
make -C $(TEST_JS_URL) check
 
test_js: TEST_JS
 
 
#
# specific .js code test
# TEST_JS_FILE f=js_file_name_dot_js
# ex) make test_js_file f=js_file_name_dot_js
#
 
TEST_JS_FILE:
make SOLO_FILE="test_like.js" -C $(TEST_JS_URL) check-interactive
 
test_js_file:TEST_JS_FILE
</pre>
|}
 
 
|}
 
*Releases 0.3
1
edit

Navigation menu