Return-Path: From: Song Cai Date: Fri, 13 Oct 2017 18:06:31 +0800 Message-ID: <20171013100631.7864-1-cais.fnst@cn.fujitsu.com> MIME-Version: 1.0 Content-Type: text/plain Subject: [Fuego] [PATCH 07/18] repair test program build script List-Id: Mailing list for the Fuego test framework List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: fuego@lists.linuxfoundation.org The program CppServer and CppClient depend on the header file config.h, which is generate in thrift configure prin thrift process. So add the step to build thrift library, generating config.h file. Signed-off-by: Song Cai --- engine/tests/Functional.thrift/fuego_test.sh | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/engine/tests/Functional.thrift/fuego_test.sh b/engine/tests/Functional.thrift/fuego_test.sh index 3b52b4a..da41535 100755 --- a/engine/tests/Functional.thrift/fuego_test.sh +++ b/engine/tests/Functional.thrift/fuego_test.sh @@ -1,6 +1,10 @@ tarball=thrift-0.9.3.tar.gz function test_build { + cd git/build + cmake -DBUILD_COMPILER=OFF -DBUILD_LIBRARIES=ON -DBUILD_TESTING=OFF -DBUILD_EXAMPLES=OFF -DWITH_QT4=NO -DWITH_QT5=NO .. + make + cd - echo "#!/bin/bash tar zxf git.tar.gz cd git/tutorial @@ -128,8 +132,8 @@ function test_run { tar zxf gen-cpp.tar.gz -C git/tutorial/; cd git/tutorial/cpp CPPFILES="../gen-cpp/shared_types.cpp ../gen-cpp/tutorial_types.cpp ../gen-cpp/tutorial_constants.cpp ../gen-cpp/Calculator.cpp ../gen-cpp/SharedService.cpp" - ${CXX} CppServer.cpp ${CPPFILES} -o CppServer -I../../lib/cpp/src/ -lthrift - ${CXX} CppClient.cpp ${CPPFILES} -o CppClient -I../../lib/cpp/src/ -lthrift + ${CXX} CppServer.cpp ${CPPFILES} -o CppServer -I../../lib/cpp/src/ -I../../build -L../../build/lib -lthrift + ${CXX} CppClient.cpp ${CPPFILES} -o CppClient -I../../lib/cpp/src/ -I../../build -L../../build/lib -lthrift put CppServer CppClient $BOARD_TESTDIR/fuego.$TESTDIR/ report "cd $BOARD_TESTDIR/fuego.$TESTDIR; \ sh -v run-tests.sh 2>&1" -- 2.9.3.windows.3