From: batt Date: Tue, 2 Dec 2008 15:35:59 +0000 (+0000) Subject: Link tests with unittest library. X-Git-Tag: 2.1.0~722 X-Git-Url: https://codewiz.org/gitweb?a=commitdiff_plain;h=915ec3b152895c592c79c62f709008e1f5ae27ad;p=bertos.git Link tests with unittest library. git-svn-id: https://src.develer.com/svnoss/bertos/trunk@1960 38d2e660-2303-0410-9eaa-f027e97ec537 --- diff --git a/test/run_tests.sh b/test/run_tests.sh index c9c4906c..144beeed 100755 --- a/test/run_tests.sh +++ b/test/run_tests.sh @@ -28,6 +28,9 @@ TESTS=${TESTS:-`find . \ TESTOUT="testout" +#Unit test static library +TESTLIB="images/libunittest.a" + buildout='/dev/null' runout='/dev/null' [ "$VERBOSE" -ge 2 ] && buildout='/dev/stdout' @@ -45,8 +48,8 @@ for src in $TESTS; do exe="./$TESTOUT/$name" case "$src" in - *.cpp) BUILDCMD="$CXX $CXXFLAGS $src -o $exe" ;; - *.c) BUILDCMD="$CC $CXXFLAGS $src -o $exe" ;; + *.cpp) BUILDCMD="$CXX $CXXFLAGS $src $TESTLIB -o $exe" ;; + *.c) BUILDCMD="$CC $CFLAGS $src $TESTLIB -o $exe" ;; esac [ $VERBOSE -gt 0 ] && echo "Building $name..."