Title: [2001] trunk/buildscript/BuildToolChain: [#2424] Make sure if we have a lib
, and are testing it, it is on the target
- Revision
- 2001
- Author
- rgetz
- Date
- 2007-11-22 20:47:51 -0600 (Thu, 22 Nov 2007)
Log Message
[#2424] Make sure if we have a lib, and are testing it, it is on the target
Diffstat
BuildToolChain | 20 ++++++++++++++++++++
1 files changed, 20 insertions(+)
Modified Paths
Diff
Modified: trunk/buildscript/BuildToolChain (2000 => 2001)
--- trunk/buildscript/BuildToolChain 2007-11-23 01:07:42 UTC (rev 2000)
+++ trunk/buildscript/BuildToolChain 2007-11-23 02:47:51 UTC (rev 2001)
@@ -1404,6 +1404,26 @@
clean_hardware $2 libs
change_dir $DIR_GCC_BUILD
echo_date "Running tests on libs"
+ # Make sure all the libs are actually on the target,
+ # if we are testing on the hardware
+ RUN=`echo $2 | grep hardware`
+
+ if [ -n "$RUN" ] ; then
+ for LIB in $(find ./ -name "*.so") $(find ./ -name "*.so.*")
+ do
+ link=`file ${LIB} | grep "symbolic link"`
+ if [ -n "$link" ] ; then
+ continue
+ fi
+ LIB1=`basename $LIB | sed 's/\..*$//'`
+ RUN=`rsh -l root $TARGET_IPADDR "find /lib/ -name \"${LIB1}*\""`
+ if [ -z "$RUN" ] ; then
+ echo " ** Could not find a version of $LIB on target - some tests may fail"
+ fi
+ done
+ fi
+
+ # start the tests
RUN="$MAKE -k -j 1 check-target"
(echo "echo -e '###\n$RUN\n' $LOGFILE" ) | sh
(echo $RUN $LOGFILE ; ) | sh &
_______________________________________________
Toolchain-commits mailing list
Toolchain-commits@blackfin.uclinux.org
http://blackfin.uclinux.org/mailman/listinfo/toolchain-commits