Commit Graph

46 Commits

Author SHA1 Message Date
Neels Hofmeyr cd11223c0f ignore results of .ttcnpp files
Add another macro ignore_pp_results to gen_links.sh.inc and call from all
gen_links.sh files, to add results of *.ttcnpp files, i.e. generated *.ttcn
files, to .gitignore.

Change-Id: Ic7fb176226771212d7700dafaf27ac71f12a4a61
2018-03-16 18:25:58 +01:00
Neels Hofmeyr 1a4c4601d7 fix gen_links.sh: don't include source dir as link target
First of all, use one common place to define the gen_links() macro, in
gen_links.sh.inc.

In this new file, add a 'shift' to exclude the $DIR arg from also appearing in
$FILES.

This prevents the following wrong symlinks in the source dirs:

  M3UA_CNL113537/src/src
  MTP3asp_CNL113337/src/src
  SCCP_CNL113341/src/src

Change-Id: Ia8493e77df1ba8723f2c5d2a49816247b0fb55f7
2018-03-16 00:08:02 +01:00
Harald Welte 82ccef7c18 Merge duplicate SI3 in GSM_RR_Types and GSM_SystemInformation
Let's have one SI3 definition rather than multiple...

Change-Id: I3c4754c9a69cb2fa51d88ef6358d5399dbb29860
2018-02-25 16:17:33 +01:00
Max 6367d7b807 Don't symlink non-existent file
Change-Id: I10309f07fb207c027703f0b43a478c152a029b6d
2018-02-05 16:58:27 +01:00
Harald Welte 818b6e4225 Add "SourceInfoFormat := Single;" to all test configs
This will make sure that all log files will contain information about
the .ttcn source file name and line number that has caused the log,
which is extremely useful during debugging.

Change-Id: Id6785757f20279ba84b34747f878baf67d065b20
2018-01-17 11:11:29 +00:00
Harald Welte 20a58c6d6f generalize shared code from regen_makefile.sh into shared helper script
Change-Id: I86a738420851a7d9e3bdb2671f6862c3d505a4ba
2017-12-13 01:04:42 +01:00
Harald Welte 9fbe93f532 regen_makefile.sh: Fix TITAN 6.1.0 support
When introducing the rewriting for 6.3.0 we broke the 6.1.0 support.
Now the result should build on Debian with both 6.1.0 and 6.3.0

Change-Id: I263a6abd2d9eb15ce5778ef8dbfcdac2a228b77d
2017-12-13 00:50:11 +01:00
Harald Welte 6807982106 Makefile: clone dependencies into 'deps' folder
We used to rely on out-of-tree git clones to be prepared by the user.

This commit changes the system to make sure we clone all git repos
we depend upon into the 'deps' folder, and then setup the symlinks
to that folder.  As a result, we should be able to support
self-contained builds using the makefiles in this repo.
2017-12-12 16:30:53 +01:00
Harald Welte 140714d89d regen_makefile.sh: Add Regex's for TITAN 6.3.0
The TITAN 6.3.0 makefile generator needs some new regular expressions
for patching the generated makefile to work on Debian
2017-12-08 14:03:28 +01:00
Harald Welte 244cd8acf7 sysinfo: Fix the TC_telnet test case VTY command order 2017-08-26 09:25:20 +02:00
Harald Welte 5fe11cd6b0 sysinfo: Use ttcn3-parallel (to unify with other test suiets) 2017-08-20 23:08:57 +02:00
Harald Welte 0b7545dff1 sysinfo: build dynamic to enable use of junit-xml logfile plugin
also remove libnetfilter-conntrack linkage, whcih was a copy+paste
error.
2017-08-20 22:59:13 +02:00
Harald Welte f97649269a sysinfo: Fix compilation 2017-08-20 22:47:44 +02:00
Harald Welte 8542cefb8e Move VTY utility functions to new Osmocom_VTY_Functions module
... so it can be reused from other Testsuites/modules
2017-07-19 20:06:26 +02:00
Harald Welte 3b8bdd6358 Introduce 'library' directory for modules shared by multiple test cases 2017-07-19 19:57:26 +02:00
Harald Welte cb5d1fb2ee fix ts_RslLinkID_SACCH template 2017-07-17 21:00:15 +02:00
Harald Welte c3286ccd8c GSM_Types: Add function to compute request reference from RA + FN 2017-07-16 21:04:34 +02:00
Harald Welte b33e7272b5 GSM_TypeS: Add RSL Link Identifier 2017-07-16 21:04:12 +02:00
Harald Welte 57a3150778 GSM_TypeS: Add Mobile Identity type 'NONE' 2017-07-16 21:03:47 +02:00
Harald Welte ad091b6b10 ChannelDescription sometimes used as V, sometimes as LV field 2017-07-16 21:03:17 +02:00
Harald Welte 0c8d5c07ee GSM_Types: Add RSL channel number IE encoder/decoder 2017-07-16 18:53:58 +02:00
Harald Welte 0b1e5b84a3 Export encoding/decoding functions of RR Message 2017-07-16 18:53:17 +02:00
Harald Welte f654332701 first steps towards a L1CTL / LAPD test
The idea here is to implement the L1CTL protocol in TTCN-3 so we can
speak it over a unix domain socket (test port) for simple tasks such as
activating dedicated mode.

This can then subsequently be used for LAPDm testing
2017-07-16 14:25:31 +02:00
Harald Welte d2e342fb7d GSM_Types: More 44.018 + 24.008 definitions for RR 2017-07-16 07:34:13 +02:00
Harald Welte f0a4997efc sysinfo: Add SI contents validation
Next to verifying the SI scheduling, we now also verify the contents of
SI messages depending on the VTY configuration
2017-07-16 04:04:10 +02:00
Harald Welte d7bd30f33b sysinfo: Hugely reduce warnings about unused return values 2017-07-16 03:54:54 +02:00
Harald Welte 75f761f35b use testcase.stop() in case of errors of the test system 2017-07-16 03:05:31 +02:00
Harald Welte 162b160678 add SI3 matching template 2017-07-16 03:05:02 +02:00
Harald Welte d1f74c63ed Match "Unknown command" even if preceded by other strings 2017-07-16 03:04:37 +02:00
Harald Welte fd512cb889 sysinfo: Fail in case VTY returns "Unknown command" 2017-07-16 01:34:40 +02:00
Harald Welte fe1052d321 sysinfo: Further simplification of code 2017-07-16 01:24:01 +02:00
Harald Welte 3927677343 sysinfo: Enforce "1 out of 4" kind of scheduling requirements 2017-07-16 01:08:00 +02:00
Harald Welte c17c88ecbf sysinfo: make timeouts a bit shorter for faster test exscution 2017-07-16 00:39:59 +02:00
Harald Welte bdc5dbd701 Add more SI scheduling testing code, towards a real test suite 2017-07-16 00:38:27 +02:00
Harald Welte 8c5b325483 GSM_SystemInformation: Add support for "OTHER" SIs
This way we can process SIs for which we don't have a more detailed
parser code and simply store their L3 as octetstring.
2017-07-15 23:59:49 +02:00
Harald Welte 9afea36bc2 GSM_SystemInformation: Fix SI2ter description
There's no RachControlParams IE in SI2ter
2017-07-15 23:58:56 +02:00
Harald Welte af54941d98 sysinfo/Test: Add function to validate SI scheduling constraints 2017-07-15 21:38:40 +02:00
Harald Welte a418918e50 GSM_SystemInformation: Share header (for generic matching of type) 2017-07-15 21:38:36 +02:00
Harald Welte a082a696cf Add enumerated for RR Message Type 2017-07-15 15:58:13 +02:00
Harald Welte 9a907b37b5 Test.ttcn: Add support for telnet interaction on VTY 2017-07-15 10:34:27 +02:00
Harald Welte b622a3dcc2 sysinfo/Test.ttcn: Add GSMTAP receiver example 2017-07-14 22:26:33 +02:00
Harald Welte 3d4df7f8f1 Add GSMTAP_PortType dual-faced port
this can be stacked between the UDP socket (IPL4asp Port) and the
actual test component(s) to provide transparante encode/decode of GSMTAP
messages
2017-07-14 22:05:56 +02:00
Harald Welte 164a28cbfb "import" IPL4asp so we can use UDP/TCP/SCTP sockets
Importing in the Titan context apparently seems to mean symlinking the
source files into the current project.  I haven't found a concept of
linking against libraries yet.
2017-07-14 19:26:12 +02:00
Harald Welte ddeaa5769c Add GSMTAP header and message definition 2017-07-14 18:58:07 +02:00
Harald Welte 615bd54fbe Move general type definitions to Osmocom_Types.ttcn 2017-07-14 18:28:55 +02:00
Harald Welte 56db5fd00e initial code about System Information decoding
the idea is to evolve this into something that can match on the GSMTAP
that's generated by OsmoBTS in order to validate the SI generation /
broadcasting of OsmoBTS+OsmoBSC
2017-07-14 18:25:59 +02:00