From 60636f6b64b5e7ac96d148176eec6075df67f8c2 Mon Sep 17 00:00:00 2001 From: Sudheesh Singanamalla Date: Mon, 17 May 2021 13:31:56 -0700 Subject: [PATCH 1/2] Fix compilation error due to missing ueIdLst in CntlrStub Co-authored-by: Sudheesh Singanamalla Co-authored-by: Nick Durand Signed-off-by: Sudheesh Singanamalla --- TestCntlrApp/src/tfwApp/fw_api_int.x | 1 + 1 file changed, 1 insertion(+) diff --git a/TestCntlrApp/src/tfwApp/fw_api_int.x b/TestCntlrApp/src/tfwApp/fw_api_int.x index acd404b..6babf67 100644 --- a/TestCntlrApp/src/tfwApp/fw_api_int.x +++ b/TestCntlrApp/src/tfwApp/fw_api_int.x @@ -1467,6 +1467,7 @@ typedef struct _PartialReset { U32 numOfConn; UeS1apIdPair *ueS1apIdPairList; + U32 *ueIdLst; }PartialReset; typedef struct _cause From 778bf66393c50fb54137609985583de0b5b56e54 Mon Sep 17 00:00:00 2001 From: Sudheesh Singanamalla Date: Mon, 17 May 2021 13:45:37 -0700 Subject: [PATCH 2/2] Update documentation for building the CntlrStub binary and LD configuration Signed-off-by: Sudheesh Singanamalla --- README.md | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) diff --git a/README.md b/README.md index 7d094c8..9fc8632 100644 --- a/README.md +++ b/README.md @@ -66,6 +66,28 @@ $ make On successful compilation, the “libtrfgen.so” library gets generated under Trfgen/lib folder. +## Compiling the Test Controller Stub Binary + +Once the necessary lib files i.e. `libtrfgen.so` and `libtfw.so` are built. +Copy the files to `/usr/lib` and run `sudo ldconfig` if necessary. This is +necessary to execute the `testCntrlr` binary which can be built as follows: + +``` +$ cd TestCntlrStub/build +$ make clean +$ make +``` + +On successful build, the binary `testCntrlr` would be available at `TestCntlrStub/bin/` + +If you choose to not copy the generated `lib` files to `/usr/lib`, export the paths +into the `LD_LIBRARY_PATH` as follows by replacing the `/path/to/` with the full path +as necessary. + +``` +export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/path/to/S1APTester/TestCntlrApp/lib/:/path/to/S1APTester/Trfgen/lib +``` + # Testing with Magma Following points should be considered when using S1APTester with [Magma](https://github.com/facebookincubator/magma)