Show
Ignore:
Timestamp:
11/15/07 04:57:12 (6 years ago)
Author:
gyuque
Message:

lang/javascript/javascript-xpath: generate functional test without XMLHttpRequest

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • lang/javascript/javascript-xpath/trunk/Makefile

    r1482 r1538  
    33SRC_DIR = src 
    44 
    5 TEST_DIR = test 
     5TEST_DIR = ${PREFIX}/test 
     6FUNC_TEST_DIR = ${TEST_DIR}/functional 
     7FUNC_TEST_DATA_DIR = ${FUNC_TEST_DIR}/data 
     8RAW_DATAS = $(wildcard ${FUNC_TEST_DATA_DIR}/0*) 
    69 
    710DIST_DIR = ${PREFIX}/dist 
     
    4346VER = ${shell cat ${VERSION_FILE}} 
    4447 
     48TESTDATA_LOCALJS = ${FUNC_TEST_DIR}/testdatas.js 
     49FUNCTEST_ORIGINAL = ${FUNC_TEST_DIR}/index.html 
     50FUNCTEST_NOXHR = ${FUNC_TEST_DIR}/index-no-xhr.html 
    4551JSXPATH     = ${DIST_DIR}/javascript-xpath-${VER}.js 
    4652JSXPATH_CMP = ${DIST_DIR}/javascript-xpath-${VER}-cmp.js 
     
    4955        @@echo "JavaScript-XPath build complete" 
    5056 
    51 jsxpath: ${JSXPATH_CMP} 
     57jsxpath: ${JSXPATH_CMP} ${TESTDATA_LOCALJS} ${FUNCTEST_NOXHR} 
    5258 
    5359${DIST_DIR}: 
    5460        @@mkdir -p $@ 
     61 
     62${TESTDATA_LOCALJS}: 
     63        @@sh ${TOOLS_DIR}/make-testdata-string.sh ${RAW_DATAS} 
     64        @@mv ${TOOLS_DIR}/dtmp.js ${TESTDATA_LOCALJS} 
     65 
     66${FUNCTEST_NOXHR}: 
     67        @@sed -e "s/<!--LOCAL_DATA_HERE-->/<script type=\"text\/javascript\" src=\"\.\/testdatas.js\"><\/script>/g" ${FUNCTEST_ORIGINAL} > ${FUNCTEST_NOXHR} 
    5568 
    5669${JSXPATH}: ${DIST_DIR} ${VERSION_FILE} ${SRC_FILES} Makefile 
     
    7891        @@rm ${DIST_DIR}/* 
    7992 
     93