mirror of
https://github.com/fairwaves/openbts-2.8.git
synced 2025-11-11 01:16:07 +00:00
sync of openbts
git-svn-id: http://wush.net/svn/range/software/public/openbts/trunk@6168 19bc5d8c-e614-43d4-8b26-e1612bc8e597
This commit is contained in:
23
Control/RRLP_PDU_Test.cpp
Normal file
23
Control/RRLP_PDU_Test.cpp
Normal file
@@ -0,0 +1,23 @@
|
||||
#include "Configuration.h"
|
||||
#include "RRLPQueryController.h"
|
||||
|
||||
using namespace GSM;
|
||||
using namespace GSM::RRLP;
|
||||
|
||||
// compile one liner:
|
||||
// g++ -DRRLP_TEST_HACK -L../GSM/.libs -L../CommonLibs/.libs -I../CLI -I../Globals -I../GSM -I../CommonLibs RRLPQueryController.cpp RRLP_PDU_Test.cpp -lcommon -lGSM -lpthread -o RRLP_PDU_Test
|
||||
|
||||
// Required by various stuff - I think a TODO is to allow tests to work without
|
||||
// having to copy this line around.
|
||||
ConfigurationTable gConfig("OpenBTS.config");
|
||||
|
||||
int main()
|
||||
{
|
||||
// This is a MsrPositionRsp with valid coordinates
|
||||
// 38.28411340713501,237.95414686203003,22 (as parsed by the erlang automatically generated
|
||||
// implementation - checked against a map).
|
||||
BitVector test("0000011000111000000000000001011000100010000100011111111111111111010010101111101111011110101101100100000011010110110100111000111010100011110010010100111000000000010001000001100000011000110010000010000100010000");
|
||||
RRLPQueryController c(test);
|
||||
return 0;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user