Index: build/unittest.sh =================================================================== diff -u -r4221e195297452930cc636e283f8e74b5457e8fe -rac81cfae5a04bcfe5f1c5c79520d776411dd0e91 --- build/unittest.sh (.../unittest.sh) (revision 4221e195297452930cc636e283f8e74b5457e8fe) +++ build/unittest.sh (.../unittest.sh) (revision ac81cfae5a04bcfe5f1c5c79520d776411dd0e91) @@ -71,7 +71,7 @@ if [ -z "$RUN_QTTEST" ]; then echo " ------------------------------ QtTest : Configure The Project for Coverage" # Coco Build - Instrumentation -$QT_DIR/bin/qmake ../application/denali.pro -spec linux-g++ CONFIG+=qtquickcompiler CONFIG+=testcase CONFIG+=CodeCoverage TARGET=$DENALI_QTTEST +$QT_DIR/bin/qmake ../application/denali.pro -spec linux-g++ CONFIG+=qtquickcompiler CONFIG+=tst_canbus CONFIG+=CodeCoverage TARGET=$DENALI_QTTEST /usr/bin/make LINK=csg++ AR=csar CXX=csg++ CC=csgcc -j4 1>../$REPORT/$LOG/build_for_QtTest.log 2>../$REPORT/$LOG/build_for_QtTest.err /usr/bin/make clean ./$DENALI_QTTEST -o -,txt 1>../$REPORT/$LOG/QtTest.log 2>../$REPORT/$LOG/QtTest.err Index: setupCAN/canSend.sh =================================================================== diff -u --- setupCAN/canSend.sh (revision 0) +++ setupCAN/canSend.sh (revision ac81cfae5a04bcfe5f1c5c79520d776411dd0e91) @@ -0,0 +1,13 @@ +#!/bin/bash +input="candata" +if [ "$1" == "" ]; then + echo "Please specify a channel" + exit 1 +fi + +while IFS= read -r line +do + if [ "$line" != "" ]; then + cansend can0 $1#"$line" + fi +done < "$input"