regen_makefile.sh: set executable name explicitly
Set the executable name in each regen_makefile.sh explicitly with -e, instead of having it set indirectly from the first .ttcn file. Make it consistent by placing the name on top of each of these files. Fix for warning: ttcn3_makefilegen: warning: File `BSC_Tests.ttcn' was given more than once for the Makefile. Related: OS#5252 Change-Id: I5ed03f8f3ed905483620dc7bae33b617bbb8507f
This commit is contained in:
parent
f92ccad16b
commit
f8fe1329e2
|
@ -1,6 +1,6 @@
|
||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
|
|
||||||
MAIN=SCCP_Testcases.ttcn
|
NAME=SCCP_Testcases
|
||||||
|
|
||||||
FILES="
|
FILES="
|
||||||
*.ttcn
|
*.ttcn
|
||||||
|
@ -10,4 +10,4 @@ FILES="
|
||||||
export CPPFLAGS_TTCN3="
|
export CPPFLAGS_TTCN3="
|
||||||
"
|
"
|
||||||
|
|
||||||
../regen-makefile.sh $MAIN $FILES
|
../regen-makefile.sh -e $NAME $FILES
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
|
|
||||||
MAIN=BSCNAT_Tests.ttcn
|
NAME=BSCNAT_Tests
|
||||||
|
|
||||||
FILES="
|
FILES="
|
||||||
*.c
|
*.c
|
||||||
|
@ -29,4 +29,4 @@ export CPPFLAGS_TTCN3="
|
||||||
-DUSE_MTP3_DISTRIBUTOR
|
-DUSE_MTP3_DISTRIBUTOR
|
||||||
"
|
"
|
||||||
|
|
||||||
../regen-makefile.sh $MAIN $FILES
|
../regen-makefile.sh -e $NAME $FILES
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
|
|
||||||
MAIN=BSC_Tests.ttcn
|
NAME=BSC_Tests
|
||||||
|
|
||||||
FILES="
|
FILES="
|
||||||
*.c
|
*.c
|
||||||
|
@ -34,4 +34,4 @@ export CPPFLAGS_TTCN3="
|
||||||
-DUSE_MTP3_DISTRIBUTOR
|
-DUSE_MTP3_DISTRIBUTOR
|
||||||
"
|
"
|
||||||
|
|
||||||
../regen-makefile.sh $MAIN $FILES
|
../regen-makefile.sh -e $NAME $FILES
|
||||||
|
|
|
@ -1,5 +1,7 @@
|
||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
|
|
||||||
|
NAME=BTS_Tests
|
||||||
|
|
||||||
FILES="
|
FILES="
|
||||||
*.ttcn
|
*.ttcn
|
||||||
*.ttcnpp
|
*.ttcnpp
|
||||||
|
@ -26,4 +28,4 @@ export CPPFLAGS_TTCN3="
|
||||||
-DIPA_EMULATION_RSL
|
-DIPA_EMULATION_RSL
|
||||||
"
|
"
|
||||||
|
|
||||||
../regen-makefile.sh BTS_Tests.ttcn $FILES
|
../regen-makefile.sh -e $NAME $FILES
|
||||||
|
|
|
@ -1,5 +1,7 @@
|
||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
|
||||||
|
NAME=CBC_Tests
|
||||||
|
|
||||||
FILES="
|
FILES="
|
||||||
*.asn
|
*.asn
|
||||||
*.ttcn
|
*.ttcn
|
||||||
|
@ -23,6 +25,6 @@ FILES="
|
||||||
export CPPFLAGS_TTCN3="
|
export CPPFLAGS_TTCN3="
|
||||||
"
|
"
|
||||||
|
|
||||||
../regen-makefile.sh CBC_Tests.ttcn $FILES
|
../regen-makefile.sh -e $NAME $FILES
|
||||||
|
|
||||||
sed -i -e 's/^LINUX_LIBS = -lxml2/LINUX_LIBS = -lxml2 -lfftranscode/' Makefile
|
sed -i -e 's/^LINUX_LIBS = -lxml2/LINUX_LIBS = -lxml2 -lfftranscode/' Makefile
|
||||||
|
|
|
@ -1,5 +1,7 @@
|
||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
|
|
||||||
|
NAME=CCID_Tests
|
||||||
|
|
||||||
FILES="
|
FILES="
|
||||||
*.ttcn
|
*.ttcn
|
||||||
Native_FunctionDefs.cc
|
Native_FunctionDefs.cc
|
||||||
|
@ -9,7 +11,7 @@ FILES="
|
||||||
export CPPFLAGS_TTCN3="
|
export CPPFLAGS_TTCN3="
|
||||||
"
|
"
|
||||||
|
|
||||||
../regen-makefile.sh CCID_Tests.ttcn $FILES
|
../regen-makefile.sh -e $NAME $FILES
|
||||||
|
|
||||||
#sed -i -e 's/^LINUX_LIBS = -lxml2/LINUX_LIBS = -lxml2 -lusb/' Makefile
|
#sed -i -e 's/^LINUX_LIBS = -lxml2/LINUX_LIBS = -lxml2 -lusb/' Makefile
|
||||||
sed -i -e '/^LINUX_LIBS/ s/$/ `pkg-config --libs libusb-1.0`/' Makefile
|
sed -i -e '/^LINUX_LIBS/ s/$/ `pkg-config --libs libusb-1.0`/' Makefile
|
||||||
|
|
|
@ -1,5 +1,7 @@
|
||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
|
||||||
|
NAME=FRNET_Tests
|
||||||
|
|
||||||
FILES="
|
FILES="
|
||||||
*.ttcn
|
*.ttcn
|
||||||
*.ttcnpp
|
*.ttcnpp
|
||||||
|
@ -18,4 +20,4 @@ export CPPFLAGS_TTCN3="
|
||||||
-DNS_EMULATION_FR
|
-DNS_EMULATION_FR
|
||||||
"
|
"
|
||||||
|
|
||||||
../regen-makefile.sh FRNET_Tests.ttcn $FILES
|
../regen-makefile.sh -e $NAME $FILES
|
||||||
|
|
|
@ -1,5 +1,7 @@
|
||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
|
||||||
|
NAME=FR_Tests
|
||||||
|
|
||||||
FILES="
|
FILES="
|
||||||
*.ttcn
|
*.ttcn
|
||||||
*.ttcnpp
|
*.ttcnpp
|
||||||
|
@ -19,4 +21,4 @@ export CPPFLAGS_TTCN3="
|
||||||
-DNS_EMULATION_FR
|
-DNS_EMULATION_FR
|
||||||
"
|
"
|
||||||
|
|
||||||
../regen-makefile.sh FR_Tests.ttcn $FILES
|
../regen-makefile.sh -e $NAME $FILES
|
||||||
|
|
|
@ -1,5 +1,7 @@
|
||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
|
||||||
|
NAME=GBProxy_Tests
|
||||||
|
|
||||||
FILES="
|
FILES="
|
||||||
*.ttcn
|
*.ttcn
|
||||||
*.ttcnpp
|
*.ttcnpp
|
||||||
|
@ -30,6 +32,6 @@ export CPPFLAGS_TTCN3="
|
||||||
-DUSE_MTP3_DISTRIBUTOR
|
-DUSE_MTP3_DISTRIBUTOR
|
||||||
"
|
"
|
||||||
|
|
||||||
../regen-makefile.sh GBProxy_Tests.ttcn $FILES
|
../regen-makefile.sh -e $NAME $FILES
|
||||||
|
|
||||||
sed -i -i 's/^LINUX_LIBS = -lxml2/LINUX_LIBS = -lxml2 -lsctp/' Makefile
|
sed -i -i 's/^LINUX_LIBS = -lxml2/LINUX_LIBS = -lxml2 -lsctp/' Makefile
|
||||||
|
|
|
@ -1,5 +1,7 @@
|
||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
|
|
||||||
|
NAME=GGSN_Tests
|
||||||
|
|
||||||
FILES="
|
FILES="
|
||||||
*.ttcn
|
*.ttcn
|
||||||
BSSGP_EncDec.cc
|
BSSGP_EncDec.cc
|
||||||
|
@ -21,4 +23,4 @@ FILES="
|
||||||
export CPPFLAGS_TTCN3="
|
export CPPFLAGS_TTCN3="
|
||||||
"
|
"
|
||||||
|
|
||||||
../regen-makefile.sh GGSN_Tests.ttcn $FILES
|
../regen-makefile.sh -e $NAME $FILES
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
|
|
||||||
MAIN="HLR_Tests.ttcn"
|
NAME=HLR_Tests
|
||||||
|
|
||||||
FILES="
|
FILES="
|
||||||
*.asn
|
*.asn
|
||||||
|
@ -24,4 +24,4 @@ export CPPFLAGS_TTCN3="
|
||||||
-DIPA_EMULATION_CTRL
|
-DIPA_EMULATION_CTRL
|
||||||
"
|
"
|
||||||
|
|
||||||
../regen-makefile.sh $MAIN $FILES
|
../regen-makefile.sh -e $NAME $FILES
|
||||||
|
|
|
@ -1,5 +1,7 @@
|
||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
|
|
||||||
|
NAME=L1CTL_Test
|
||||||
|
|
||||||
FILES="
|
FILES="
|
||||||
*.ttcn
|
*.ttcn
|
||||||
L1CTL_PortType_CtrlFunctDef.cc
|
L1CTL_PortType_CtrlFunctDef.cc
|
||||||
|
@ -11,4 +13,4 @@ FILES="
|
||||||
export CPPFLAGS_TTCN3="
|
export CPPFLAGS_TTCN3="
|
||||||
"
|
"
|
||||||
|
|
||||||
../regen-makefile.sh L1CTL_Test.ttcn $FILES
|
../regen-makefile.sh -e $NAME $FILES
|
||||||
|
|
|
@ -1,5 +1,7 @@
|
||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
|
|
||||||
|
NAME=MGCP_Test
|
||||||
|
|
||||||
FILES="
|
FILES="
|
||||||
*.c
|
*.c
|
||||||
*.ttcn
|
*.ttcn
|
||||||
|
@ -25,4 +27,4 @@ export CPPFLAGS_TTCN3="
|
||||||
-DIPA_EMULATION_CTRL
|
-DIPA_EMULATION_CTRL
|
||||||
"
|
"
|
||||||
|
|
||||||
../regen-makefile.sh MGCP_Test.ttcn $FILES
|
../regen-makefile.sh -e $NAME $FILES
|
||||||
|
|
|
@ -1,5 +1,7 @@
|
||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
|
|
||||||
|
NAME=MME_Tests
|
||||||
|
|
||||||
FILES="
|
FILES="
|
||||||
*.asn
|
*.asn
|
||||||
*.c
|
*.c
|
||||||
|
@ -24,6 +26,6 @@ FILES="
|
||||||
export CPPFLAGS_TTCN3="
|
export CPPFLAGS_TTCN3="
|
||||||
"
|
"
|
||||||
|
|
||||||
../regen-makefile.sh MME_Tests.ttcn $FILES
|
../regen-makefile.sh -e $NAME $FILES
|
||||||
|
|
||||||
sed -i -e 's/^LINUX_LIBS = -lxml2 -lsctp/LINUX_LIBS = -lxml2 -lsctp -lfftranscode -lgnutls/' Makefile
|
sed -i -e 's/^LINUX_LIBS = -lxml2 -lsctp/LINUX_LIBS = -lxml2 -lsctp -lfftranscode -lgnutls/' Makefile
|
||||||
|
|
|
@ -1,5 +1,7 @@
|
||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
|
|
||||||
|
NAME=MSC_Tests
|
||||||
|
|
||||||
FILES="
|
FILES="
|
||||||
*.asn
|
*.asn
|
||||||
*.c
|
*.c
|
||||||
|
@ -42,6 +44,6 @@ export CPPFLAGS_TTCN3="
|
||||||
-DUSE_MTP3_DISTRIBUTOR
|
-DUSE_MTP3_DISTRIBUTOR
|
||||||
"
|
"
|
||||||
|
|
||||||
../regen-makefile.sh MSC_Tests.ttcn $FILES
|
../regen-makefile.sh -e $NAME $FILES
|
||||||
|
|
||||||
sed -i -e 's/^LINUX_LIBS = -lxml2 -lsctp/LINUX_LIBS = -lxml2 -lsctp -lfftranscode -lssl/' Makefile
|
sed -i -e 's/^LINUX_LIBS = -lxml2 -lsctp/LINUX_LIBS = -lxml2 -lsctp -lfftranscode -lssl/' Makefile
|
||||||
|
|
|
@ -1,5 +1,7 @@
|
||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
|
||||||
|
NAME=NS_Tests
|
||||||
|
|
||||||
FILES="
|
FILES="
|
||||||
*.ttcn
|
*.ttcn
|
||||||
*.ttcnpp
|
*.ttcnpp
|
||||||
|
@ -23,4 +25,4 @@ export CPPFLAGS_TTCN3="
|
||||||
-DNS_EMULATION_FR
|
-DNS_EMULATION_FR
|
||||||
"
|
"
|
||||||
|
|
||||||
../regen-makefile.sh NS_Tests.ttcn $FILES
|
../regen-makefile.sh -e $NAME $FILES
|
||||||
|
|
|
@ -1,5 +1,7 @@
|
||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
|
||||||
|
NAME=OPCAP_CLIENT_Tests
|
||||||
|
|
||||||
FILES="
|
FILES="
|
||||||
*.ttcn
|
*.ttcn
|
||||||
IPL4asp_PT.cc
|
IPL4asp_PT.cc
|
||||||
|
@ -14,4 +16,4 @@ FILES="
|
||||||
|
|
||||||
export CPPFLAGS_TTCN3=""
|
export CPPFLAGS_TTCN3=""
|
||||||
|
|
||||||
../regen-makefile.sh OPCAP_CLIENT_Tests.ttcn $FILES
|
../regen-makefile.sh -e $NAME $FILES
|
||||||
|
|
|
@ -1,5 +1,7 @@
|
||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
|
|
||||||
|
NAME=PCU_Tests
|
||||||
|
|
||||||
FILES="
|
FILES="
|
||||||
*.ttcn
|
*.ttcn
|
||||||
*.ttcnpp
|
*.ttcnpp
|
||||||
|
@ -22,4 +24,4 @@ export CPPFLAGS_TTCN3="
|
||||||
-DIPA_EMULATION_CTRL
|
-DIPA_EMULATION_CTRL
|
||||||
"
|
"
|
||||||
|
|
||||||
../regen-makefile.sh PCU_Tests.ttcn $FILES
|
../regen-makefile.sh -e $NAME $FILES
|
||||||
|
|
|
@ -1,5 +1,7 @@
|
||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
|
||||||
|
NAME=PGW_Tests
|
||||||
|
|
||||||
FILES="
|
FILES="
|
||||||
*.ttcn
|
*.ttcn
|
||||||
BSSGP_EncDec.cc
|
BSSGP_EncDec.cc
|
||||||
|
@ -24,4 +26,4 @@ FILES="
|
||||||
export CPPFLAGS_TTCN3="
|
export CPPFLAGS_TTCN3="
|
||||||
"
|
"
|
||||||
|
|
||||||
../regen-makefile.sh PGW_Tests.ttcn $FILES
|
../regen-makefile.sh -e $NAME $FILES
|
||||||
|
|
|
@ -1,5 +1,7 @@
|
||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
|
|
||||||
|
NAME=REMSIM_Tests
|
||||||
|
|
||||||
FILES="
|
FILES="
|
||||||
*.asn
|
*.asn
|
||||||
*.ttcn
|
*.ttcn
|
||||||
|
@ -25,7 +27,7 @@ export CPPFLAGS_TTCN3="
|
||||||
-DIPA_EMULATION_CTRL
|
-DIPA_EMULATION_CTRL
|
||||||
"
|
"
|
||||||
|
|
||||||
../regen-makefile.sh REMSIM_Tests.ttcn $FILES
|
../regen-makefile.sh -e $NAME $FILES
|
||||||
|
|
||||||
# required for forkpty(3) used by PIPEasp
|
# required for forkpty(3) used by PIPEasp
|
||||||
sed -i -e '/^LINUX_LIBS/ s/$/ -lutil/' Makefile
|
sed -i -e '/^LINUX_LIBS/ s/$/ -lutil/' Makefile
|
||||||
|
|
|
@ -1,5 +1,7 @@
|
||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
|
|
||||||
|
NAME=SCCP_Tests
|
||||||
|
|
||||||
FILES="
|
FILES="
|
||||||
*.ttcn
|
*.ttcn
|
||||||
*.ttcnpp
|
*.ttcnpp
|
||||||
|
@ -22,4 +24,4 @@ export CPPFLAGS_TTCN3="
|
||||||
-DUSE_MTP3_DISTRIBUTOR
|
-DUSE_MTP3_DISTRIBUTOR
|
||||||
"
|
"
|
||||||
|
|
||||||
../regen-makefile.sh SCCP_Tests.ttcn $FILES
|
../regen-makefile.sh -e $NAME $FILES
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
|
|
||||||
MAIN=Selftest.ttcn
|
NAME=Selftest
|
||||||
|
|
||||||
FILES="
|
FILES="
|
||||||
*.ttcn
|
*.ttcn
|
||||||
|
@ -19,4 +19,4 @@ export CPPFLAGS_TTCN3="
|
||||||
-DUSE_MTP3_DISTRIBUTOR
|
-DUSE_MTP3_DISTRIBUTOR
|
||||||
"
|
"
|
||||||
|
|
||||||
../regen-makefile.sh $MAIN $FILES
|
../regen-makefile.sh -e $NAME $FILES
|
||||||
|
|
|
@ -1,5 +1,7 @@
|
||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
|
|
||||||
|
NAME=SGSN_Tests
|
||||||
|
|
||||||
FILES="
|
FILES="
|
||||||
*.asn
|
*.asn
|
||||||
*.ttcn
|
*.ttcn
|
||||||
|
@ -30,6 +32,6 @@ export CPPFLAGS_TTCN3="
|
||||||
-DUSE_MTP3_DISTRIBUTOR
|
-DUSE_MTP3_DISTRIBUTOR
|
||||||
"
|
"
|
||||||
|
|
||||||
../regen-makefile.sh SGSN_Tests.ttcn $FILES
|
../regen-makefile.sh -e $NAME $FILES
|
||||||
|
|
||||||
sed -i -e 's/^LINUX_LIBS = -lxml2 -lsctp/LINUX_LIBS = -lxml2 -lsctp -lfftranscode/' Makefile
|
sed -i -e 's/^LINUX_LIBS = -lxml2 -lsctp/LINUX_LIBS = -lxml2 -lsctp -lfftranscode/' Makefile
|
||||||
|
|
|
@ -1,5 +1,7 @@
|
||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
|
|
||||||
|
NAME=SIMTRACE_Tests
|
||||||
|
|
||||||
FILES="
|
FILES="
|
||||||
*.ttcn
|
*.ttcn
|
||||||
Native_FunctionDefs.cc
|
Native_FunctionDefs.cc
|
||||||
|
@ -9,7 +11,7 @@ FILES="
|
||||||
export CPPFLAGS_TTCN3="
|
export CPPFLAGS_TTCN3="
|
||||||
"
|
"
|
||||||
|
|
||||||
../regen-makefile.sh SIMTRACE_Tests.ttcn $FILES
|
../regen-makefile.sh -e $NAME $FILES
|
||||||
|
|
||||||
#sed -i -e 's/^LINUX_LIBS = -lxml2/LINUX_LIBS = -lxml2 -lusb/' Makefile
|
#sed -i -e 's/^LINUX_LIBS = -lxml2/LINUX_LIBS = -lxml2 -lusb/' Makefile
|
||||||
sed -i -e '/^LINUX_LIBS/ s/$/ `pkg-config --libs libusb-1.0`/' Makefile
|
sed -i -e '/^LINUX_LIBS/ s/$/ `pkg-config --libs libusb-1.0`/' Makefile
|
||||||
|
|
|
@ -1,5 +1,7 @@
|
||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
|
|
||||||
|
NAME=SIP_Tests
|
||||||
|
|
||||||
FILES="
|
FILES="
|
||||||
*.c
|
*.c
|
||||||
*.ttcn
|
*.ttcn
|
||||||
|
@ -24,4 +26,4 @@ export CPPFLAGS_TTCN3="
|
||||||
-DRAN_EMULATION_CTRL
|
-DRAN_EMULATION_CTRL
|
||||||
"
|
"
|
||||||
|
|
||||||
../regen-makefile.sh SIP_Tests.ttcn $FILES
|
../regen-makefile.sh -e $NAME $FILES
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
|
|
||||||
MAIN=SMLC_Tests.ttcn
|
NAME=SMLC_Tests
|
||||||
|
|
||||||
FILES="
|
FILES="
|
||||||
*.c
|
*.c
|
||||||
|
@ -32,4 +32,4 @@ export CPPFLAGS_TTCN3="
|
||||||
-DUSE_MTP3_DISTRIBUTOR
|
-DUSE_MTP3_DISTRIBUTOR
|
||||||
"
|
"
|
||||||
|
|
||||||
../regen-makefile.sh $MAIN $FILES
|
../regen-makefile.sh -e $NAME $FILES
|
||||||
|
|
|
@ -1,5 +1,7 @@
|
||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
|
|
||||||
|
NAME=STP_Tests
|
||||||
|
|
||||||
FILES="
|
FILES="
|
||||||
*.ttcn
|
*.ttcn
|
||||||
*.ttcnpp
|
*.ttcnpp
|
||||||
|
@ -22,4 +24,4 @@ export CPPFLAGS_TTCN3="
|
||||||
-DUSE_MTP3_DISTRIBUTOR
|
-DUSE_MTP3_DISTRIBUTOR
|
||||||
"
|
"
|
||||||
|
|
||||||
../regen-makefile.sh STP_Tests.ttcn $FILES
|
../regen-makefile.sh -e $NAME $FILES
|
||||||
|
|
|
@ -1,5 +1,7 @@
|
||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
|
|
||||||
|
NAME=Test
|
||||||
|
|
||||||
FILES="
|
FILES="
|
||||||
*.ttcn
|
*.ttcn
|
||||||
IPL4_GSMTAP_CtrlFunctDef.cc
|
IPL4_GSMTAP_CtrlFunctDef.cc
|
||||||
|
@ -13,4 +15,4 @@ FILES="
|
||||||
export CPPFLAGS_TTCN3="
|
export CPPFLAGS_TTCN3="
|
||||||
"
|
"
|
||||||
|
|
||||||
../regen-makefile.sh Test.ttcn $FILES
|
../regen-makefile.sh -e $NAME $FILES
|
||||||
|
|
Loading…
Reference in New Issue