aboutsummaryrefslogtreecommitdiffstats
path: root/sysinfo
AgeCommit message (Collapse)AuthorFilesLines
2020-09-01library/GSM_RR_Types: add minimalistic AssignmentCommandVadim Yanitskiy1-1/+1
Unfortunately, the existing implementation [1] is somewhat incomplete and unfriendly to build templates on: - some fields holding integer numbers defined as BITx, so we would have to do bit2int() / int2bit(); - some bit-map fields defined as octetstrings; - some fields are not decoded at all (raw octetstrings). Let's work this around by defining a minimalistic implementation of (RR) Assignment Command with all mandatory and some optional fields. Reuse some IEs directly from MobileL3_RRM_Types. [1] titan.ProtocolModules.MobileL3_v13.4.0 MobileL3_RRM_Types.PDU_RRM_AssignmentCommand_NW_MS Change-Id: If1a5244a688abed6e6de2bf3f6e19e0e28129ea5 Related: SYS#4868, OS#4545
2020-07-06GSM_SystemInformation: use GSM_RestOctets for SI3 and SI4 rest_octetsNeels Hofmeyr1-1/+1
Change-Id: I3f00dd0b4863582fc5edf08149103150b8b5e97b
2020-04-29Split templates in RLCMAC_{CSN1_}Types into their own _Templates filePau Espin Pedrol1-1/+1
RLCMAC blocks have a lot of fields and we will potentially require lots of different templates, as well as functions to handle related structs. Change-Id: I9c6597178168aa3848b21930f33be698dd2ce545
2019-12-31RLCMAC_CSN1_Types.ttcn: Support encoding of MS Radio Access Capability 2Pau Espin Pedrol1-0/+4
Change-Id: Iac7d7b694bc44887443418f755e51d636abe8575
2018-10-24Add Misc_Helpers.ttcn to centralize TTCN3 shutdown handlingDaniel Willmann1-1/+1
This function can now be called from anywhere to try and safely shutdown a testcase. It is not optimal as we can't call "all component.stop" from outside the mtc, but without any proper and orderly shutdown handling of all our emulation components I believe this is the best we can do. To use it: import from Misc_Helpers all; in your module and then call Misc_Helpers.f_shutdown(__BFILE__, __LINE__); You can also pass the function a verdict and a message and it will take care of calling setverdict, but beware of the following: While setverdict would accept any number of arguments as log message and convert them to a log string f_shutdown expects one charstring. It's possible to use the log2str function to use the log arguments in setverdict for f_shutdown, for example setverdict(fail, "Template didn't match: ", tmpl_foo); would become Misc_Helpers.f_shutdown(__BFILE__, __LINE__, fail, log2str("Template didn't match: ", tmpl_foo)); Change-Id: I84d1aa6732f6b748d2bfdeac8f6309023717f267
2018-07-24Stop tests after failuresDaniel Willmann1-6/+13
Call mtc.stop after setverdict(fail), add reasons to most failures and fail with verdict error for internal errors. Change-Id: I9b618235939fa41160b9be6677b121963d3ec857
2018-04-11mask timestamps and source file nrs in expected-results.xml filesNeels Hofmeyr1-39/+39
Prepare for upcoming updates with concise diffs. Change-Id: Ic9f006aa8db1b477598605e0525faeb229b03641
2018-04-11fix build: don't clean out expected-results.log: rename to *.xmlNeels Hofmeyr1-0/+0
'make clean' as generated by ttcn3_makefilegen removes all *.log files, which of course cleans out expected-results.log, which should not happen. Since this is a junit XML file, rename the suffix to .xml. Change-Id: Ic334f6b758eef865e3a497aa430691a3ae696d25
2018-04-06add compare-results.sh, call from start-testsuite.shNeels Hofmeyr1-0/+69
Compare current test results to the expected results, and exit in error on discrepancies. Add compare-result.sh: (trivially) grep junit xml output to determine which tests passed and which didn't, and compare against an expected-result.log, another junit file from a previous run. Summarize and determine success. Include an "xfail" feature: tests that are expected to fail are marked as "xfail", unexpected failures as "FAIL". In various subdirs, copy the current jenkins jobs' junit xml outputs as expected-results.log, so that we will start getting useful output in both jenkins runs and manual local runs. In start-testsuite.sh, after running the tests, invoke the results comparison. Due to the single-line parsing nature, the script so far does not distinguish between error and failure. I doubt that we actually need to do that though. Related: OS#3136 Change-Id: I87d62a8be73d73a5eeff61a842e7c27a0066079d
2018-03-16ignore results of .ttcnpp filesNeels Hofmeyr1-0/+1
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-16fix gen_links.sh: don't include source dir as link targetNeels Hofmeyr1-8/+1
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-02-25Merge duplicate SI3 in GSM_RR_Types and GSM_SystemInformationHarald Welte1-7/+14
Let's have one SI3 definition rather than multiple... Change-Id: I3c4754c9a69cb2fa51d88ef6358d5399dbb29860
2018-02-05Don't symlink non-existent fileMax1-1/+1
Change-Id: I10309f07fb207c027703f0b43a478c152a029b6d
2018-01-17Add "SourceInfoFormat := Single;" to all test configsHarald Welte1-0/+1
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
2017-12-13generalize shared code from regen_makefile.sh into shared helper scriptHarald Welte1-9/+1
Change-Id: I86a738420851a7d9e3bdb2671f6862c3d505a4ba
2017-12-13regen_makefile.sh: Fix TITAN 6.1.0 supportHarald Welte1-1/+1
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-12Makefile: clone dependencies into 'deps' folderHarald Welte1-1/+1
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-08regen_makefile.sh: Add Regex's for TITAN 6.3.0Harald Welte1-0/+4
The TITAN 6.3.0 makefile generator needs some new regular expressions for patching the generated makefile to work on Debian
2017-08-26sysinfo: Fix the TC_telnet test case VTY command orderHarald Welte1-1/+1
2017-08-20sysinfo: Use ttcn3-parallel (to unify with other test suiets)Harald Welte1-1/+1
2017-08-20sysinfo: build dynamic to enable use of junit-xml logfile pluginHarald Welte1-2/+2
also remove libnetfilter-conntrack linkage, whcih was a copy+paste error.
2017-08-20sysinfo: Fix compilationHarald Welte2-1/+2
2017-07-19Move VTY utility functions to new Osmocom_VTY_Functions moduleHarald Welte2-100/+2
... so it can be reused from other Testsuites/modules
2017-07-19Introduce 'library' directory for modules shared by multiple test casesHarald Welte8-1078/+5
2017-07-17fix ts_RslLinkID_SACCH templateHarald Welte1-2/+5
2017-07-16GSM_Types: Add function to compute request reference from RA + FNHarald Welte1-1/+17
2017-07-16GSM_TypeS: Add RSL Link IdentifierHarald Welte1-0/+51
2017-07-16GSM_TypeS: Add Mobile Identity type 'NONE'Harald Welte1-4/+12
2017-07-16ChannelDescription sometimes used as V, sometimes as LV fieldHarald Welte2-8/+9
2017-07-16GSM_Types: Add RSL channel number IE encoder/decoderHarald Welte1-0/+63
2017-07-16Export encoding/decoding functions of RR MessageHarald Welte1-0/+5
2017-07-16first steps towards a L1CTL / LAPD testHarald Welte1-0/+1
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-16GSM_Types: More 44.018 + 24.008 definitions for RRHarald Welte3-69/+334
2017-07-16sysinfo: Add SI contents validationHarald Welte1-0/+260
Next to verifying the SI scheduling, we now also verify the contents of SI messages depending on the VTY configuration
2017-07-16sysinfo: Hugely reduce warnings about unused return valuesHarald Welte1-2/+6
2017-07-16use testcase.stop() in case of errors of the test systemHarald Welte1-9/+8
2017-07-16add SI3 matching templateHarald Welte1-2/+16
2017-07-16Match "Unknown command" even if preceded by other stringsHarald Welte1-1/+1
2017-07-16sysinfo: Fail in case VTY returns "Unknown command"Harald Welte1-3/+4
2017-07-16sysinfo: Further simplification of codeHarald Welte1-33/+59
2017-07-16sysinfo: Enforce "1 out of 4" kind of scheduling requirementsHarald Welte1-19/+78
2017-07-16sysinfo: make timeouts a bit shorter for faster test exscutionHarald Welte1-3/+3
2017-07-16Add more SI scheduling testing code, towards a real test suiteHarald Welte2-27/+231
2017-07-15GSM_SystemInformation: Add support for "OTHER" SIsHarald Welte1-1/+3
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-15GSM_SystemInformation: Fix SI2ter descriptionHarald Welte1-1/+0
There's no RachControlParams IE in SI2ter
2017-07-15sysinfo/Test: Add function to validate SI scheduling constraintsHarald Welte1-6/+329
2017-07-15GSM_SystemInformation: Share header (for generic matching of type)Harald Welte1-12/+16
2017-07-15Add enumerated for RR Message TypeHarald Welte3-18/+119
2017-07-15Test.ttcn: Add support for telnet interaction on VTYHarald Welte4-1/+107
2017-07-14sysinfo/Test.ttcn: Add GSMTAP receiver exampleHarald Welte2-0/+54