-
Notifications
You must be signed in to change notification settings - Fork 2
/
QAHelper.sh
executable file
·30 lines (23 loc) · 1.54 KB
/
QAHelper.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
#!/bin/bash
#Execute the QAHelper with the most common parameters for the MARTe components
#Run $MARTe2_DIR/Resources/QA/QAHelper.py -h to see all available options.
if [ -z ${MARTe2_DIR+x} ]; then echo "Please set the MARTe2_DIR environment variable"; exit; fi
export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:.:$MARTe2_DIR/Build/x86-linux/Core/:
#Pass directly any extra args to the command to be executed. To skip the actual execution of the tests use -le -ge.
EXTRA_ARGS=""
#Consume input arguments
while [[ $# -ge 1 ]]
do
EXTRA_ARGS="$EXTRA_ARGS ""$1"
shift
done
GTEST_FILTER="*"
USERNAME=`whoami`
USER_RECORD="$(getent passwd $USERNAME)"
USER_GECOS_FIELD="$(echo "$USER_RECORD" | cut -d ':' -f 5)"
USER_FULL_NAME="$(echo "$USER_GECOS_FIELD" | cut -d ',' -f 1)"
REMOTE_MARTe2_DIR=~/MARTe2-dev
LINTER_IGNORE="EPICSPVAHelper.cpp DANAPI.cpp NI9157MemoryOperationsHelper.cpp SDNLoggerCallback.cpp ProfinetToMARTeLogAdapter.cpp ProfinetDataSourceAdapter.cpp MARTeChannel.cpp MARTePv.cpp MARTeCommonPv.cpp MARTePvField.cpp MARTeIocServer.cpp"
TEST_EXCEPTIONS="SimulinkClasses.h"
CMD="$MARTe2_DIR/Resources/QA/QAHelper.py"
$CMD -g Test/Components -lf *:-EPICS*:*PVA*:*MDS*:*OPCUA* PVA* EPICS* MDS* *OPCUA* -gf *:-EPICS*:*PVA*:*MDS*:*OPCUA* PVA* EPICS* MDS* *OPCUA* -if Lint/marte_components_flint_files.lnt Lint/marte_components_flint_files_2.lnt -xr . $MARTe2_DIR -xt MARTe2-components MARTe2-dev -xd MARTe2-components -xi /opt/FlexeLint/supp/lnt Lint $REMOTE_MARTe2_DIR/MakeDefaults/Lint -xf marte_components_flint_eclipse.lnt -ii $LINTER_IGNORE -fe $TEST_EXCEPTIONS $EXTRA_ARGS