Skip to content

Commit

Permalink
make auto-test script generate during the compiling stage
Browse files Browse the repository at this point in the history
  • Loading branch information
Oneplus committed Mar 21, 2013
1 parent 9e33cff commit ba5cd5e
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 4 deletions.
5 changes: 5 additions & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ set (INCLUDE_OUTPUT_PATH ${PROJECT_SOURCE_DIR}/include)
# -- config source directories
set (SOURCE_DIR ${PROJECT_SOURCE_DIR}/src)
set (THIRDPARTY_DIR ${PROJECT_SOURCE_DIR}/thirdparty)
set (SCRIPT_DIR ${PROJECT_SOURCE_DIR}/script)

# -- config resource directories
set (CONFIGURE_DIR ${PROJECT_SOURCE_DIR}/conf)
Expand All @@ -31,6 +32,10 @@ configure_file (
${CONFIGURE_DIR}/ltp_all_modules.conf.in
${EXECUTABLE_OUTPUT_PATH}/ltp_all_modules.conf)

configure_file (
${SCRIPT_DIR}/auto-test.sh.in
${EXECUTABLE_OUTPUT_PATH}/auto-test.sh)

# enable test
enable_testing()

Expand Down
7 changes: 3 additions & 4 deletions script/auto-test.sh → tools/auto-test.sh.in
Original file line number Diff line number Diff line change
@@ -1,9 +1,8 @@
#!/bin/sh

SCRIPT_DIR=`pwd`
ROOT_DIR=$SCRIPT_DIR/..
BIN_DIR=$ROOT_DIR/bin
DATA_DIR=$ROOT_DIR/test_data
ROOT_DIR=${PROJECT_SOURCE_DIR}
BIN_DIR=${EXECUTABLE_OUTPUT_PATH}
DATA_DIR=${DATA_DIR}

EXE=./ltp_test
OPT=all
Expand Down

0 comments on commit ba5cd5e

Please sign in to comment.