created project with cmake
This commit is contained in:
parent
c4b3d8ac5f
commit
5f6abf300e
54 changed files with 412 additions and 310 deletions
35
CMake/CMake.1.6.0/AutoBuild/RunUnitTest.sh
Normal file
35
CMake/CMake.1.6.0/AutoBuild/RunUnitTest.sh
Normal file
|
@ -0,0 +1,35 @@
|
|||
#//========================================================================
|
||||
#// Copyright (c) Technische Software Entwicklung Plazotta © 2021
|
||||
#//
|
||||
#// DESCRIPTION:
|
||||
#// Shell Script to Build a cmake project under linux, running the Unittest and finally start teh install step
|
||||
#//
|
||||
#// HISTORY:
|
||||
#// 09.04.2021 / PP
|
||||
#// Module created.
|
||||
#//========================================================================
|
||||
#!/bin/bash
|
||||
#
|
||||
#=======================================================================
|
||||
# Check Parameter
|
||||
#=======================================================================
|
||||
if [ -z "$1" ]
|
||||
then
|
||||
echo "usage: RunUnitTest [UnitTestExe]"
|
||||
exit 2
|
||||
fi
|
||||
#=======================================================================
|
||||
# Run Unit Test
|
||||
#=======================================================================
|
||||
|
||||
#- Get the RUNPATH and setup the LD_LIBRARY_PATH------------------------
|
||||
|
||||
USED_LD_PATH=$(readelf -d $1 | grep RUNPATH | awk 'NR > 1 {print $1}' RS='[' FS=']')
|
||||
export LD_LIBRARY_PATH=$USED_LD_PATH
|
||||
|
||||
./$1
|
||||
if [ $? -ne 0 ]; then
|
||||
exit 1
|
||||
fi
|
||||
#
|
||||
exit 0
|
Loading…
Add table
Add a link
Reference in a new issue