[Fuego] [PATCH 04/18] repair build script and add target lib check
Song Cai
cais.fnst at cn.fujitsu.com
Fri Oct 13 09:45:11 UTC 2017
repair lwip build script
and add pre_check of library lwip
Signed-off-by: Song Cai <cais.fnst at cn.fujitsu.com>
---
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
More information about the Fuego
mailing list