Commit Graph

19 Commits

Author SHA1 Message Date
Pau Espin 494e8b3e55 Start BSSGP_CT and NS_CT as alive-type component in all testsuites
This was already done in PCU_Tests and Gbproxy_Tests, let's to it
everywhere.

Change-Id: I6e3b08710b4502e2b9805f7c9f7bd89f34e4085c
2022-02-24 11:47:43 +00:00
Oliver Smith f8fe1329e2 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
2021-10-13 11:12:22 +02:00
Oliver Smith 2e0e624060 regen_makefile.sh: files/flags in separate lines
Make all regen_makefile.sh more readable and diff friendly by moving
each entry in FILES and CPPFLAGS_TTCN3 into separate lines. Order
entries alphabetically.

Related: OS#5252
Change-Id: I6b6866eb9f6ec6232e4ae434517457a4c8c1c050
2021-10-12 16:35:01 +02:00
Alexander Couzens 6a363196f4 fr/fr-net: use correct DLCI range for test cases
DLCIs are only valid >= 16.

Change-Id: Ia155f346beb4f2be1392d3204b73a0d3b00aaa08
2021-08-12 02:11:26 +00:00
Alexander Couzens bd6e9a1da9 RAW_NS/NS_Provider_IPL4: allow to use the new NSVC interface
RAW_NS used previous a single TTCN3 port for a single UDP port
(source/listen side).
This has the limitation that only a single NSVC could be tested for a
local UDP port. However SNS tests require multiple NSVCs over a single UDP port.
NS_Provider_IPL4 already supports multiple NSVCs for the NS_Emulation.
Extend the support in NS_Provider_IPL4 to also allow RAW_NS to use
multiple NSVCs.

Related: OS#5036
Change-Id: Iafd9310e04066958914201da0cbdcd563bd5c976
2021-06-15 20:20:44 +00:00
Harald Welte e58e5b74da fr-net: Echo back DL-UD in UL-UD when LLC SAPI '0010'B is used
This allows us to have bi-directional tests

Change-Id: I7637ee5f1a7cce0ed282c972b9cd0702ba86cbaa
2021-02-04 14:58:22 +01:00
Harald Welte bfff717e1c fr/fr-net: Use four parallel FR NS-VC instead of just one
Related: OS#4974
Change-Id: I366ceea525c09236f5432ba043a757e593d4ed0e
2021-02-04 10:48:21 +01:00
Harald Welte 76eca4dcd8 fr-net: Don't generate junit-xml output. It's not a test suite
Change-Id: Id296e62fb86731492d42370173a48f217b2fbdc0
2021-02-04 10:35:03 +01:00
Harald Welte 920c7c45ec fr + gbproxy: Start to use AF_PACKET ENOBUFS work-around
If send() on AF_PACKET returns ENOBUFS, usleep for 2ms and re-try
until it succeeds.

Change-Id: Id7bdd2c690eae3bec1df7634944cd73f0bf0b29a
Closes: OS#5343
2021-01-30 14:08:16 +00:00
Harald Welte 92009302c9 fr-net: use 'hdlcnet1' as default netdev
The gbproxy tests and our scripts have started to use
hdlc0..7 paired with hdlcnet0..7.  Let's adjust fr-net to
also use 'hdlcnet1' as the pairing 'fr' test uses 'hdlc1'

Change-Id: If456a575cc2ae0ab2fc63730b329131dfcc70a47
2021-01-27 09:52:11 +00:00
Harald Welte 2dd230a63c fr-net: Fix regen_makefile.sh
regen-makefile.sh should not include generated c++ code.

Change-Id: I0fecfb0d3c33f8d87923d4843fee718916001978
2021-01-27 09:52:11 +00:00
Alexander Couzens c796da8711 remove unused NS_CodecPort.ttcn/NS_CodecPort_CtrlFunct
Change-Id: If885353ec8947309fc7d3ad780448cfc7402e1a4
2021-01-17 15:59:26 +00:00
Harald Welte d6de98418c FR/FRNET: Introduce simplistic simulation of UEs
Let's start a number of per-UE/TLLI component on each BVC, and generate
some uplink traffic with random-payload 512-byte LLC frames.  The
FRNET(SGSN) side simply ignores all of those by means of a
CreateCallback.

Change-Id: I1b25b4a650d831bb07e9623b76e6c3dcdd71ac88
2020-11-16 20:32:20 +01:00
Harald Welte 4d112c926c BSSGP_Emulation: Allow a "CreateCb" to handle unknown inbound TLLI
The existing BSSGP Code assumed that the TLLIs were always known "a
priori" by the test case.  With the newly-introduced create_cb,
the user can provide a function to handle any incoming messages for an
unknown TLLL.  The default handler behaves like before: fail +
terminate.

Change-Id: Ice0e145f5a6518ff79547dd851042b7965f38e00
2020-11-16 19:13:26 +00:00
Harald Welte 088df5769d FR/FRNET: Reduce console log verbosity
When doing load simulatin, the amount of console printing becomes a
serious throttle factor.  We don't need to see the decode of every
message.

Change-Id: Ic988d1e1d60c9d03d5b70e9b38f109b47569b89e
2020-11-12 20:56:50 +00:00
Harald Welte de6f3ee592 FR/FRNET: Dynamically create number of BVC at runtime
We don't want the number of NSE and the number of BVC to be a
compile-time choice, but rather something dynamic at rutime.  This
allows configuration files to define those details.

Change-Id: I55b44481b5322deaf78619c1689462d716ddfcec
2020-11-12 20:02:07 +00:00
Harald Welte 90f1974fb0 NS_Emulation: Support multiple NS-VC within one NSE (NS-VCG)
This is something we need to simulate more complex scenarios,
particularly in the context of frame relay.

Change-Id: If1220852785853f8a5d8de183d5053ddd6ccb958
2020-11-12 20:02:07 +00:00
Harald Welte d077075b5e FRNET: Add 'control' section
FR_Tests already had a control section, but FRNET_Tests didn't have one,
let's change that.

Change-Id: If08fa3572050fcd794be054afd4ebc44cd6580f6
2020-11-11 19:04:36 +01:00
Harald Welte 023b61b2cb FR/FRNET: add Frame Relay emulation
Add frame relay testcase for BSS and SGSN side.
The test cases require hdlc interfaces (based on
dadhi with super channels and no lmi).

Change-Id: I95d64dc26a8d2ff02d6cf2bfcd22a97e5481f957
2020-10-16 04:06:39 +02:00