add target board boost library check
PATCH 10/18 add target board boost library check
--- engine/tests/Functional.boost/fuego_test.sh | 13 +++++++++++++ 1 file changed, 13 insertions(+)
engine/tests/Functional.boost/fuego_test.sh +13 -0
@@ -1,5 +1,18 @@ tarball=boost.tar.gz +BOOST_LIBRARY=('libboost_atomic.so' 'libboost_chrono.so' 'libboost_date_time.so' \ + 'libboost_filesystem.so' 'libboost_iostreams.so' 'libboost_log.so' \ + 'libboost_program_options.so' 'libboost_regex.so' 'libboost_serialization.so' \ + 'libboost_system.so' 'libboost_thread.so') + +function pre_check { + for lib in ${BOOST_LIBRARY[@]};do + is_on_target $lib TARGET_BOOST_LIB /lib:/usr/lib:/usr/local/lib + assert_define TARGET_BOOST_LIB + done +} + + function test_build { $CXX boost-chrono.c -lboost_system -lboost_chrono -o boost-chrono $CXX boost-timer.c -o boost-timer
Signature · 1 line
2.9.3.windows.3
PATCH 15/18 avoid inline function not defined problem
gcc default standard is now gnu11 after gcc-5.
Different semantics for inline functions is at here [inline function](https://gcc.gnu.org/gcc-5/porting_to.html) Higher version leads to "inline function not defined" problem.
--- engine/tests/Benchmark.tiobench/fuego_test.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
engine/tests/Benchmark.tiobench/fuego_test.sh +1 -1
@@ -2,7 +2,7 @@ tarball=tiobench-0.3.3.tar.gz function test_build { patch -N -s -p1 < $TEST_HOME/tiobench-fix-conflicting-types.patch - make LINK="$CC" CC="$CC" AR="$AR" RANLIB="$RANLIB" CXX="$CXX" CPP="$CPP" CXXCPP="$CXXCPP" CFLAGS+="${CFLAGS}" + make LINK="$CC" CC="$CC -std=gnu89" AR="$AR" RANLIB="$RANLIB" CXX="$CXX" CPP="$CPP" CXXCPP="$CXXCPP" CFLAGS+="${CFLAGS}" } function test_deploy {
Signature · 1 line
2.9.3.windows.3
Re: [Fuego] [PATCH 15/18] avoid inline function not defined problem
Quoted 34 lines
-----Original Message-----
From: [email protected] [mailto:fuego- [email protected]] On Behalf Of Song Cai
Sent: Friday, October 13, 2017 3:08 AM
To: [email protected]
Subject: [Fuego] [PATCH 15/18] avoid inline function not defined problemgcc default standard is now gnu11 after gcc-5. Different semantics for inline functions is at here [inline function](https://gcc.gnu.org/gcc-5/porting_to.html) Higher version leads to "inline function not defined" problem.
Signed-off-by Song Cai <[email protected]>--- engine/tests/Benchmark.tiobench/fuego_test.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)engine/tests/Benchmark.tiobench/fuego_test.sh +0
-1@@ -2,7 +2,7 @@ tarball=tiobench-0.3.3.tar.gz function test_build { patch -N -s -p1 < $TEST_HOME/tiobench-fix-conflicting-types.patch - make LINK="$CC" CC="$CC" AR="$AR" RANLIB="$RANLIB" CXX="$CXX"CPP="$CPP" CXXCPP="$CXXCPP" CFLAGS+="${CFLAGS}"
+ make LINK="$CC" CC="$CC -std=gnu89" AR="$AR" RANLIB="$RANLIB"
CXX="$CXX" CPP="$CPP" CXXCPP="$CXXCPP" CFLAGS+="${CFLAGS}"
}
Quoted 3 lines
function
test_deploy{
--
2.9.3.windows.3
Very nice fix. Thanks very much. Applied.
-- Tim
PATCH 16/18 add libneon precheck
In reply to Song Cai--- engine/tests/Functional.neon/fuego_test.sh | 5 +++++ 1 file changed, 5 insertions(+)
engine/tests/Functional.neon/fuego_test.sh +5 -0
@@ -2,6 +2,11 @@ tarball=neon-test.tar.bz2 +function pre_check { + is_on_target libneon.so LIB_NEON /lib:/usr/lib:/usr/local/lib + assert_define LIB_NEON +} + function test_build { chmod -R 777 * patch -p0 < gnutls_4.3_fixup.patch
Signature · 1 line
2.9.3.windows.3
Bird, Timothy
AppliedRe: [Fuego] [PATCH 16/18] add libneon precheck
Quoted 18 lines
-----Original Message-----
From: [email protected] [mailto:fuego- [email protected]] On Behalf Of Song Cai
Sent: Friday, October 13, 2017 3:08 AM
To: [email protected]
Subject: [Fuego] [PATCH 16/18] add libneon precheckSigned-off-by Song Cai <[email protected]>--- engine/tests/Functional.neon/fuego_test.sh | 5 +++++ 1 file changed, 5 insertions(+)engine/tests/Functional.neon/fuego_test.sh +0
-0
engine/tests/Functional.neon/fuego_test.sh line 5
Quoted 4 lines
engine/tests/Functional.neon/fuego_test.sh +1
-0@@ -2,6 +2,11 @@ tarball=neon-test.tar.bz2 +function pre_check {
Changed to test_pre_check
Quoted 9 lines
engine/tests/Functional.neon/fuego_test.sh +4
-1+ is_on_target libneon.so LIB_NEON /lib:/usr/lib:/usr/local/lib + assert_define LIB_NEON +} + function test_build { chmod -R 777 * patch -p0 < gnutls_4.3_fixup.patch --2.9.3.windows.3
Applied. Thanks.
-- Tim
PATCH 17/18 solve glib test program failed problem
In reply to Song Cai* TEST-11 dump problem
Avoid the following warning by adding macro #define _XOPEN_SOURCE, the warning cause dump
```plain warning: implicit declaration of function 'crypt' [-Wimplicit-function-declaration] ```
* TEST-14 version mismatch problem
The original specified the version 2.23. Avoid versoin confict by checking link file's realpath
--- engine/tests/Functional.glibc/fuego_test.sh | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-)
engine/tests/Functional.glibc/fuego_test.sh +3 -1
@@ -1,6 +1,8 @@ tarball=glibc_tests.tar.gz function test_build { + sed -i -e '1i\#define _XOPEN_SOURCE' libnss_test/libnss_compat.c + CC="$CC" AR="$AR" RANLIB="$RANLIB" make all
@@ -35,7 +37,7 @@ EOF if ./nss localhost; then echo 'TEST-13 OK'; else echo 'TEST-13 FAIL'; fi; cp nsswitch.conf.bk /etc/nsswitch.conf; - if [ -f /lib/libBrokenLocale-2.23.so ]; + if [ -f $(realpath /lib/libBrokenLocale.so.1) ] then echo 'TEST-14 OK'; else echo 'TEST-14 FAIL'; fi; " > run-tests.sh
Signature · 1 line
2.9.3.windows.3
Re: [Fuego] [PATCH 17/18] solve glib test program failed problem
Cai,
Thanks for these patches!
I took a quick look at these on Friday, but didn't have time to do a thorough review and integration. I didn't see any issues so far, but I plan to review and integrate these patches on Monday (Pacific time). I'll let you know if I have any questions.
-- Tim
Quoted 57 lines
-----Original Message-----
From: [email protected] [mailto:fuego- [email protected]] On Behalf Of Song Cai
Sent: Friday, October 13, 2017 3:08 AM
To: [email protected]
Subject: [Fuego] [PATCH 17/18] solve glib test program failed problem* TEST-11 dump problem
Avoid the following warning by adding macro#define _XOPEN_SOURCE,
the warning cause dump```plain warning: implicit declaration of function 'crypt' [-Wimplicit-function- declaration] ```* TEST-14 version mismatch problem
The original specified the version 2.23. Avoid versoin confict by checking link file's realpathSigned-off-by Song Cai <[email protected]>--- engine/tests/Functional.glibc/fuego_test.sh | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-)engine/tests/Functional.glibc/fuego_test.sh +3
-2@@ -1,6 +1,8 @@ tarball=glibc_tests.tar.gz function test_build { + sed -i -e '1i\#define _XOPEN_SOURCE' libnss_test/libnss_compat.c + CC="$CC" AR="$AR" RANLIB="$RANLIB" make all@@ -35,7 +37,7 @@ EOF if ./nss localhost; then echo 'TEST-13 OK'; else echo 'TEST-13 FAIL'; fi; cp nsswitch.conf.bk /etc/nsswitch.conf; - if [ -f /lib/libBrokenLocale-2.23.so ]; + if [ -f $(realpath /lib/libBrokenLocale.so.1) ] then echo 'TEST-14 OK'; else echo 'TEST-14 FAIL'; fi; " > run-tests.sh --2.9.3.windows.3
_______________________________________________
Fuego mailing list
[email protected]
https://lists.linuxfoundation.org/mailman/listinfo/fuego
Quoted 20 lines
-----Original Message-----
From: [email protected] [mailto:fuego- [email protected]] On Behalf Of Song Cai
Sent: Friday, October 13, 2017 3:08 AM
To: [email protected]
Subject: [Fuego] [PATCH 10/18] add target board boost library checkSigned-off-by Song Cai <[email protected]>--- engine/tests/Functional.boost/fuego_test.sh | 13 +++++++++++++ 1 file changed, 13 insertions(+)engine/tests/Functional.boost/fuego_test.sh +0
-0
engine/tests/Functional.boost/fuego_test.sh line 8
Quoted 8 lines
engine/tests/Functional.boost/fuego_test.sh +4
-0@@ -1,5 +1,18 @@ tarball=boost.tar.gz +BOOST_LIBRARY=('libboost_atomic.so' 'libboost_chrono.so' 'libboost_date_time.so' \ + 'libboost_filesystem.so' 'libboost_iostreams.so' 'libboost_log.so' \ + 'libboost_program_options.so' 'libboost_regex.so' 'libboost_serialization.so' \ + 'libboost_system.so' 'libboost_thread.so')
Does the test really use all these libraries? I suspect not. The test_pre_check should not be used to test the presence of all the libraries (whether they are needed by the test or not), but only for those needed by the test.
If you want to test the presence of all the boot libraries that are expected to be on the system, it would be better to add that to your runtime check, and emit individual testcase results for those.
I suspect that the test programs used here only require a few of these libraries.
But I don't have time to figure this out, and something is better than nothing. So I'm leaving this as is.
engine/tests/Functional.boost/fuego_test.sh line 8
Quoted 1 line
engine/tests/Functional.boost/fuego_test.sh +1
-0+function pre_check {
Should be test_pre_check.
engine/tests/Functional.boost/fuego_test.sh line 11
Quoted 3 lines
engine/tests/Functional.boost/fuego_test.sh +3
-0+ for lib in ${BOOST_LIBRARY[@]};do + is_on_target $lib TARGET_BOOST_LIB /lib:/usr/lib:/usr/local/lib + assert_define TARGET_BOOST_LIB
Using the same variable for all libraries make this uncacheable. I'm accepting it for now, but would prefer it if each library used its own environment variable. I realize this makes it much harder to put into a loop.
Quoted 9 lines
engine/tests/Functional.boost/fuego_test.sh +4
-1+ done +} + + function test_build { $CXX boost-chrono.c -lboost_system -lboost_chrono -o boost-chrono $CXX boost-timer.c -o boost-timer --2.9.3.windows.3
It's a little wonky, for the reasons I give above. However, it does accomplish something useful. So I'm applying it.
Thanks for the patch!
-- Tim