find correct object code

This commit is contained in:
zimoch
2015-08-17 13:33:35 +00:00
parent cc5948ad0b
commit cefa460a0d

View File

@ -53,13 +53,22 @@ int main () {
} }
EOF EOF
g++ -I ../../src ../../src/O.$EPICS_HOST_ARCH/StreamBuffer.o test.cc -o test.exe if [ "$1" = "-sls" ]
test.exe
if [ $? != 0 ]
then then
echo -e "\033[31;7mTest failed.\033[0m" O=../../O.*_$EPICS_HOST_ARCH/StreamBuffer.o
exit 1 else
O=../../src/O.$EPICS_HOST_ARCH/StreamBuffer.o
fi fi
for o in $O
do
g++ -I ../../src $o test.cc -o test.exe
test.exe
if [ $? != 0 ]
then
echo -e "\033[31;7mTest failed.\033[0m"
exit 1
fi
done
rm test.* rm test.*
echo -e "\033[32mTest passed.\033[0m" echo -e "\033[32mTest passed.\033[0m"