summaryrefslogtreecommitdiffstats
path: root/ggsn_tests/regen_makefile.sh
diff options
context:
space:
mode:
authorHarald Welte <laforge@gnumonks.org>2017-08-03 09:55:15 +0200
committerHarald Welte <laforge@gnumonks.org>2017-08-03 09:55:15 +0200
commit379d45aba6797e0ef2f283642ce9364c5b5f0d04 (patch)
tree19fbe55d74f03ecbe12e53cd8abfbebf6b4ac0e6 /ggsn_tests/regen_makefile.sh
parent9d3485243a2fa93fc8f87698800738c7c33bcc12 (diff)
initial template for GGSN / GTP test cases
Diffstat (limited to 'ggsn_tests/regen_makefile.sh')
-rwxr-xr-xggsn_tests/regen_makefile.sh9
1 files changed, 9 insertions, 0 deletions
diff --git a/ggsn_tests/regen_makefile.sh b/ggsn_tests/regen_makefile.sh
new file mode 100755
index 0000000..cbed5da
--- /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