From 379d45aba6797e0ef2f283642ce9364c5b5f0d04 Mon Sep 17 00:00:00 2001 From: Harald Welte Date: Thu, 3 Aug 2017 09:55:15 +0200 Subject: initial template for GGSN / GTP test cases --- ggsn_tests/GGSN_Tests.ttcn | 3 +++ ggsn_tests/gen_links.sh | 36 ++++++++++++++++++++++++++++++++++++ ggsn_tests/regen_makefile.sh | 9 +++++++++ 3 files changed, 48 insertions(+) create mode 100644 ggsn_tests/GGSN_Tests.ttcn create mode 100755 ggsn_tests/gen_links.sh create mode 100755 ggsn_tests/regen_makefile.sh (limited to 'ggsn_tests') diff --git a/ggsn_tests/GGSN_Tests.ttcn b/ggsn_tests/GGSN_Tests.ttcn new file mode 100644 index 00000000..84cf6fc9 --- /dev/null +++ b/ggsn_tests/GGSN_Tests.ttcn @@ -0,0 +1,3 @@ +module GGSN_Tests { + +} diff --git a/ggsn_tests/gen_links.sh b/ggsn_tests/gen_links.sh new file mode 100755 index 00000000..7d2b013e --- /dev/null +++ b/ggsn_tests/gen_links.sh @@ -0,0 +1,36 @@ +#!/bin/sh + +BASEDIR=~/projects/git + +gen_links() { + DIR=$1 + FILES=$* + for f in $FILES; do + echo "Linking $f" + ln -sf $DIR/$f $f + done +} + +#DIR=$BASEDIR/titan.TestPorts.UNIX_DOMAIN_SOCKETasp/src +#FILES="UD_PT.cc UD_PT.hh UD_PortType.ttcn UD_Types.ttcn" +#gen_links $DIR $FILES + +DIR=$BASEDIR/titan.Libraries.TCCUsefulFunctions/src +FILES="TCCInterface_Functions.ttcn TCCConversion_Functions.ttcn TCCConversion.cc TCCConversion.hh TCCInterface.cc TCCInterface_ip.h" +gen_links $DIR $FILES + +DIR=$BASEDIR/titan.TestPorts.Common_Components.Socket-API/src +FILES="Socket_API_Definitions.ttcn" +gen_links $DIR $FILES + +DIR=$BASEDIR/titan.TestPorts.IPL4asp/src +FILES="IPL4asp_Functions.ttcn IPL4asp_PT.cc IPL4asp_PT.hh IPL4asp_PortType.ttcn IPL4asp_Types.ttcn IPL4asp_discovery.cc IPL4asp_protocol_L234.hh" +gen_links $DIR $FILES + +DIR=../GTP_v13.5.0_CNL113843_LATEST/src +FILES="GTPC_EncDec.cc GTPC_Types.ttcn GTPU_EncDec.cc GTPU_Types.ttcn" +gen_links $DIR $FILES + +DIR=../library +FILES="General_Types.ttcn GSM_Types.ttcn Osmocom_Types.ttcn" +gen_links $DIR $FILES diff --git a/ggsn_tests/regen_makefile.sh b/ggsn_tests/regen_makefile.sh new file mode 100755 index 00000000..cbed5dac --- /dev/null +++ b/ggsn_tests/regen_makefile.sh @@ -0,0 +1,9 @@ +#!/bin/sh + +FILES="*.ttcn IPL4asp_PT.cc IPL4asp_discovery.cc TCCConversion.cc TCCInterface.cc GTPC_EncDec.cc GTPU_EncDec.cc" + +ttcn3_makefilegen -f GGSN_Tests.ttcn $FILES +sed -i -e 's/# TTCN3_DIR = /TTCN3_DIR = \/usr/' Makefile +sed -i -e 's/LDFLAGS = /LDFLAGS = -L \/usr\/lib\/titan/' Makefile +#sed -i -e 's/TTCN3_LIB = ttcn3-parallel/TTCN3_LIB = ttcn3/' Makefile +sed -i -e 's/CPPFLAGS = -D$(PLATFORM) -I$(TTCN3_DIR)\/include/CPPFLAGS = -D$(PLATFORM) -I$(TTCN3_DIR)\/include -I\/usr\/include\/titan/' Makefile -- cgit v1.2.3