Skip to content

Commit ec60e4c

Browse files
committed
Added automatic shared object copy to script.
1 parent 412fd40 commit ec60e4c

File tree

1 file changed

+22
-0
lines changed

1 file changed

+22
-0
lines changed

unittests/UnitTest.sh

+22
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,24 @@
11
#!/bin/sh
2+
3+
IRRLICHT_SO_LIB=libIrrlicht.so
4+
IRRIMGUI_SO_LIB=libIrrIMGUI.so
5+
6+
IRRLICHT_SO_LIB_LONG=`ls ${IRRLICHT_SO_LIB}.*.*.* 2> /dev/null`
7+
if [ "${IRRLICHT_SO_LIB_LONG}" != "" ]; then
8+
IRRLICHT_SO_LIB_SHORT=`ls ${IRRLICHT_SO_LIB}.*.*.* | sed -e "s/\(${IRRLICHT_SO_LIB}\).\([0-9]\+\).\([0-9]\+\).\([0-9]\+\)/\1.\2.\3/g"`
9+
10+
if [ ! -f "${IRRLICHT_SO_LIB_SHORT}" ]; then
11+
cp -v ${IRRLICHT_SO_LIB_LONG} ${IRRLICHT_SO_LIB_SHORT}
12+
fi
13+
fi
14+
15+
IRRIMGUI_SO_LIB_LONG=`ls ${IRRIMGUI_SO_LIB}.*.*.* 2> /dev/null`
16+
if [ "${IRRIMGUI_SO_LIB_LONG}" != "" ]; then
17+
IRRIMGUI_SO_LIB_SHORT=`ls ${IRRIMGUI_SO_LIB}.*.*.* | sed -e "s/\(${IRRIMGUI_SO_LIB}\).\([0-9]\+\).\([0-9]\+\).\([0-9]\+\)/\1.\2.\3/g"`
18+
19+
if [ ! -f "${IRRIMGUI_SO_LIB_SHORT}" ]; then
20+
cp -v ${IRRIMGUI_SO_LIB_LONG} ${IRRIMGUI_SO_LIB_SHORT}
21+
fi
22+
fi
23+
224
export LD_LIBRARY_PATH=. && valgrind --tool=memcheck --leak-check=full --track-origins=yes ./UnitTests -v -c

0 commit comments

Comments
 (0)