Return-Path: From: Song Cai Date: Fri, 13 Oct 2017 18:05:54 +0800 Message-ID: <20171013100554.8640-1-cais.fnst@cn.fujitsu.com> MIME-Version: 1.0 Content-Type: text/plain Subject: [Fuego] [PATCH 04/18] repair build script and add target lib check List-Id: Mailing list for the Fuego test framework List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: fuego@lists.linuxfoundation.org repair lwip build script and add pre_check of library lwip Signed-off-by: Song Cai --- engine/tests/Functional.lwip/fuego_test.sh | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/engine/tests/Functional.lwip/fuego_test.sh b/engine/tests/Functional.lwip/fuego_test.sh index 17d15af..bf7ff1a 100755 --- a/engine/tests/Functional.lwip/fuego_test.sh +++ b/engine/tests/Functional.lwip/fuego_test.sh @@ -1,6 +1,15 @@ tarball=lwip.tar.gz +function pre_check { + is_on_target liblwip.so LIB_LWIP /lib:/usr/lib:/usr/local/lib + assert_define LIB_LWIP +} + function test_build { + [ -d build ] || mkdir build + cd build + cmake .. && make + cd - cd contrib/apps/func_tests make cd - @@ -32,7 +41,8 @@ function test_build { } function test_deploy { - put run-tests.sh contrib/apps/func_tests/*_test $BOARD_TESTDIR/fuego.$TESTDIR/; + put build/lib/liblwip.a build/lib/liblwip.so build/lib/liblwip.so.2.0.0 \ + run-tests.sh contrib/apps/func_tests/*_test $BOARD_TESTDIR/fuego.$TESTDIR/; } function test_run { -- 2.9.3.windows.3