Set up GNU Autotest infrastructure
Test files are moved from CommonLibs/ to tests/CommonLibs/. Some tests are disabled in autotest because they generate timedate related output which cannot exactly match against expected output. Change-Id: I3d6ba625968be09297642d18090c496490e9b8fcchanges/06/5706/2
parent
d36ef2f57b
commit
2ac788b2c3
|
@ -5,17 +5,16 @@
|
|||
Transceiver52M/osmo-trx
|
||||
|
||||
# tests
|
||||
CommonLibs/BitVectorTest
|
||||
CommonLibs/ConfigurationTest
|
||||
CommonLibs/F16Test
|
||||
CommonLibs/InterthreadTest
|
||||
CommonLibs/LogTest
|
||||
CommonLibs/RegexpTest
|
||||
CommonLibs/SocketsTest
|
||||
CommonLibs/TimevalTest
|
||||
CommonLibs/URLEncodeTest
|
||||
CommonLibs/VectorTest
|
||||
CommonLibs/PRBSTest
|
||||
tests/CommonLibs/BitVectorTest
|
||||
tests/CommonLibs/F16Test
|
||||
tests/CommonLibs/InterthreadTest
|
||||
tests/CommonLibs/LogTest
|
||||
tests/CommonLibs/RegexpTest
|
||||
tests/CommonLibs/SocketsTest
|
||||
tests/CommonLibs/TimevalTest
|
||||
tests/CommonLibs/URLEncodeTest
|
||||
tests/CommonLibs/VectorTest
|
||||
tests/CommonLibs/PRBSTest
|
||||
|
||||
# automake/autoconf
|
||||
*.in
|
||||
|
@ -41,6 +40,8 @@ ltmain.sh
|
|||
missing
|
||||
stamp-h1
|
||||
INSTALL
|
||||
tests/package.m4
|
||||
tests/testsuite
|
||||
|
||||
# vim
|
||||
*.sw?
|
||||
|
|
68
AUTHORS
68
AUTHORS
|
@ -23,31 +23,17 @@ David A. Burgess, dburgess@kestrelsp.com:
|
|||
CLI/CLI.h
|
||||
CommonLibs/Assert.h
|
||||
CommonLibs/BitVector.cpp
|
||||
CommonLibs/BitVectorTest.cpp
|
||||
CommonLibs/Interthread.h
|
||||
CommonLibs/InterthreadTest.cpp
|
||||
CommonLibs/LinkedLists.cpp
|
||||
CommonLibs/LinkedLists.h
|
||||
CommonLibs/Regexp.h
|
||||
CommonLibs/RegexpTest.cpp
|
||||
CommonLibs/Sockets.cpp
|
||||
CommonLibs/Sockets.h
|
||||
CommonLibs/SocketsTest.cpp
|
||||
CommonLibs/Threads.cpp
|
||||
CommonLibs/Threads.h
|
||||
CommonLibs/Timeval.cpp
|
||||
CommonLibs/Timeval.h
|
||||
CommonLibs/TimevalTest.cpp
|
||||
CommonLibs/Vector.h
|
||||
CommonLibs/VectorTest.cpp
|
||||
Control/CallControl.cpp
|
||||
Control/ControlCommon.cpp
|
||||
Control/ControlCommon.h
|
||||
Control/FACCHDispatch.cpp
|
||||
Control/MobilityManagement.cpp
|
||||
Control/PagerTest.cpp
|
||||
Control/RadioResource.cpp
|
||||
Control/SDCCHDispatch.cpp
|
||||
GSM/GSM610Tables.cpp
|
||||
GSM/GSM610Tables.h
|
||||
GSM/GSMCommon.cpp
|
||||
|
@ -79,26 +65,15 @@ David A. Burgess, dburgess@kestrelsp.com:
|
|||
GSM/GSMTransfer.cpp
|
||||
GSM/GSMTransfer.h
|
||||
LICENSEBLOCK
|
||||
SIP/SIPEngine.h
|
||||
SIP/SIPInterface.h
|
||||
SMS/SMSMessages.cpp
|
||||
SMS/SMSMessages.h
|
||||
SMS/SMSTransfer.cpp
|
||||
SMS/SMSTransfer.h
|
||||
TRXManager/TRXManager.cpp
|
||||
Transceiver/Complex.h
|
||||
tests/AGCHTest.cpp
|
||||
tests/BeaconTest.cpp
|
||||
tests/CallTest.cpp
|
||||
tests/CallTest2.cpp
|
||||
tests/LAPDmTest.cpp
|
||||
tests/LoopbackTest.cpp
|
||||
tests/RegistrationTest.cpp
|
||||
tests/TRXSimulator.cpp
|
||||
tests/CommonLibs/BitVectorTest.cpp
|
||||
tests/CommonLibs/InterthreadTest.cpp
|
||||
tests/CommonLibs/SocketsTest.cpp
|
||||
tests/CommonLibs/TimevalTest.cpp
|
||||
tests/CommonLibs/VectorTest.cpp
|
||||
|
||||
Harvind S. Samra, hssamra@kestrelsp.com:
|
||||
Control/PagerTest.cpp
|
||||
Control/RadioResource.cpp
|
||||
GSM/GSMConfig.h
|
||||
GSM/GSMTransfer.h
|
||||
LICENSEBLOCK
|
||||
|
@ -120,13 +95,6 @@ Harvind S. Samra, hssamra@kestrelsp.com:
|
|||
Transceiver/testRadio.cpp
|
||||
|
||||
Raffi Sevlian, raffisev@gmail.com:
|
||||
Control/CallControl.cpp
|
||||
Control/ControlCommon.cpp
|
||||
Control/ControlCommon.h
|
||||
Control/FACCHDispatch.cpp
|
||||
Control/MobilityManagement.cpp
|
||||
Control/PagerTest.cpp
|
||||
Control/RadioResource.cpp
|
||||
GSM/GSMCommon.h
|
||||
GSM/GSMConfig.h
|
||||
GSM/GSML1FEC.h
|
||||
|
@ -151,32 +119,6 @@ Raffi Sevlian, raffisev@gmail.com:
|
|||
GSM/GSMSAPMux.h
|
||||
GSM/GSMTransfer.h
|
||||
LICENSEBLOCK
|
||||
SIP/SIPEngine.cpp
|
||||
SIP/SIPInterface.cpp
|
||||
SIP/SIPInterface.h
|
||||
SIP/SIPMessage.cpp
|
||||
SIP/SIPMessage.h
|
||||
SIP/SIPUtility.cpp
|
||||
SIP/SIPUtility.h
|
||||
SMS/CMMessage.cpp
|
||||
SMS/CMMessage.h
|
||||
SMS/CMProcessor.cpp
|
||||
SMS/CMProcessor.h
|
||||
SMS/CMTest.cpp
|
||||
SMS/RLMessage.cpp
|
||||
SMS/RLMessage.h
|
||||
SMS/RLProcessor.cpp
|
||||
SMS/RLProcessor.h
|
||||
SMS/SMSMessages.cpp
|
||||
SMS/SMSMessages.h
|
||||
SMS/SMSProcessors.cpp
|
||||
SMS/SMSProcessors.h
|
||||
SMS/SMSTransfer.cpp
|
||||
SMS/SMSTransfer.h
|
||||
SMS/TLMessage.cpp
|
||||
SMS/TLMessage.h
|
||||
SMS/TLProcessor.cpp
|
||||
SMS/TLProcessor.h
|
||||
TRXManager/TRXManager.h
|
||||
|
||||
Alon Levy, alonlevy1@gmail.com
|
||||
|
|
|
@ -38,17 +38,6 @@ libcommon_la_SOURCES = \
|
|||
Timeval.cpp \
|
||||
Logger.cpp
|
||||
|
||||
noinst_PROGRAMS = \
|
||||
BitVectorTest \
|
||||
PRBSTest \
|
||||
InterthreadTest \
|
||||
SocketsTest \
|
||||
TimevalTest \
|
||||
VectorTest \
|
||||
LogTest
|
||||
|
||||
# ReportingTest
|
||||
|
||||
noinst_HEADERS = \
|
||||
BitVector.h \
|
||||
PRBS.h \
|
||||
|
@ -59,30 +48,3 @@ noinst_HEADERS = \
|
|||
Timeval.h \
|
||||
Vector.h \
|
||||
Logger.h
|
||||
|
||||
BitVectorTest_SOURCES = BitVectorTest.cpp
|
||||
BitVectorTest_LDADD = libcommon.la
|
||||
|
||||
PRBSTest_SOURCES = PRBSTest.cpp
|
||||
|
||||
InterthreadTest_SOURCES = InterthreadTest.cpp
|
||||
InterthreadTest_LDADD = libcommon.la
|
||||
InterthreadTest_LDFLAGS = -lpthread
|
||||
|
||||
SocketsTest_SOURCES = SocketsTest.cpp
|
||||
SocketsTest_LDADD = libcommon.la
|
||||
SocketsTest_LDFLAGS = -lpthread
|
||||
|
||||
TimevalTest_SOURCES = TimevalTest.cpp
|
||||
TimevalTest_LDADD = libcommon.la
|
||||
|
||||
VectorTest_SOURCES = VectorTest.cpp
|
||||
VectorTest_LDADD = libcommon.la
|
||||
|
||||
# ReportingTest_SOURCES = ReportingTest.cpp
|
||||
# ReportingTest_LDADD = libcommon.la
|
||||
|
||||
LogTest_SOURCES = LogTest.cpp
|
||||
LogTest_LDADD = libcommon.la
|
||||
|
||||
MOSTLYCLEANFILES += testSource testDestination
|
||||
|
|
|
@ -30,7 +30,8 @@ AM_CXXFLAGS = -Wall -pthread -ldl
|
|||
SUBDIRS = \
|
||||
CommonLibs \
|
||||
GSM \
|
||||
Transceiver52M
|
||||
Transceiver52M \
|
||||
tests
|
||||
|
||||
EXTRA_DIST = \
|
||||
autogen.sh \
|
||||
|
|
|
@ -26,6 +26,7 @@ AC_CONFIG_SRCDIR([Transceiver52M/Makefile.am])
|
|||
AC_CONFIG_AUX_DIR([.])
|
||||
AC_CONFIG_MACRO_DIR([config])
|
||||
AM_CONFIG_HEADER(config.h)
|
||||
AC_CONFIG_TESTDIR(tests)
|
||||
|
||||
AC_CANONICAL_BUILD
|
||||
AC_CANONICAL_HOST
|
||||
|
@ -171,6 +172,8 @@ AC_CONFIG_FILES([\
|
|||
Transceiver52M/Makefile \
|
||||
Transceiver52M/arm/Makefile \
|
||||
Transceiver52M/x86/Makefile \
|
||||
tests/Makefile \
|
||||
tests/CommonLibs/Makefile \
|
||||
])
|
||||
|
||||
AC_OUTPUT
|
||||
|
|
|
@ -0,0 +1,8 @@
|
|||
15 15 240
|
||||
000011110000
|
||||
101011110000
|
||||
175
|
||||
111101010000
|
||||
ts=abcdefgh
|
||||
tp=0110000101100010011000110110010001100101011001100110011101101000000000
|
||||
ts=abcdefgh
|
|
@ -0,0 +1,81 @@
|
|||
1515515500.150033 140715424245504: queue write 0
|
||||
1515515500.150105 140715423979264: map write 0
|
||||
1515515500.150132 140715423979264: map write 1
|
||||
1515515500.150143 140715424777984: queue read 0
|
||||
1515515500.150175 140715424511744: map read 0
|
||||
1515515500.150194 140715424511744: map read 1
|
||||
1515515501.150203 140715424245504: queue write 1
|
||||
1515515501.150288 140715423979264: map write 2
|
||||
1515515501.150334 140715424777984: queue read 1
|
||||
1515515501.150366 140715424511744: map read 2
|
||||
1515515502.150405 140715424245504: queue write 2
|
||||
1515515502.150488 140715423979264: map write 3
|
||||
1515515502.150533 140715424777984: queue read 2
|
||||
1515515502.150612 140715423979264: map write 4
|
||||
1515515502.150642 140715423979264: map write 5
|
||||
1515515502.150662 140715424511744: map read 3
|
||||
1515515502.150680 140715424511744: map read 4
|
||||
1515515502.150686 140715424511744: map read 5
|
||||
1515515503.150607 140715424245504: queue write 3
|
||||
1515515503.150709 140715424777984: queue read 3
|
||||
1515515503.150741 140715423979264: map write 6
|
||||
1515515503.150760 140715423979264: map write 7
|
||||
1515515503.150776 140715424511744: map read 6
|
||||
1515515503.150788 140715424511744: map read 7
|
||||
1515515504.150770 140715424245504: queue write 4
|
||||
1515515504.150839 140715424245504: queue write 5
|
||||
1515515504.150857 140715423979264: map write 8
|
||||
1515515504.150876 140715424777984: queue read 4
|
||||
1515515504.150904 140715424777984: queue read 5
|
||||
1515515504.150919 140715424511744: map read 8
|
||||
1515515505.150990 140715424245504: queue write 6
|
||||
1515515505.151066 140715423979264: map write 9
|
||||
1515515505.151095 140715424245504: queue write 7
|
||||
1515515505.151127 140715424245504: queue write 8
|
||||
1515515505.151143 140715424245504: queue write 9
|
||||
1515515505.151163 140715424245504: queue write 10
|
||||
1515515505.151179 140715424777984: queue read 6
|
||||
1515515505.151210 140715424777984: queue read 7
|
||||
1515515505.151217 140715424777984: queue read 8
|
||||
1515515505.151221 140715424777984: queue read 9
|
||||
1515515505.151226 140715424777984: queue read 10
|
||||
1515515505.151249 140715423979264: map write 10
|
||||
1515515505.151277 140715424511744: map read 9
|
||||
1515515505.151291 140715424511744: map read 10
|
||||
1515515505.151298 140715423979264: map write 11
|
||||
1515515505.151317 140715424511744: map read 11
|
||||
1515515506.151303 140715424245504: queue write 11
|
||||
1515515506.151386 140715423979264: map write 12
|
||||
1515515506.151414 140715424777984: queue read 11
|
||||
1515515506.151457 140715424511744: map read 12
|
||||
1515515506.151528 140715423979264: map write 13
|
||||
1515515506.151567 140715423979264: map write 14
|
||||
1515515506.151577 140715423979264: map write 15
|
||||
1515515506.151601 140715424511744: map read 13
|
||||
1515515506.151621 140715424511744: map read 14
|
||||
1515515506.151628 140715424511744: map read 15
|
||||
1515515507.151498 140715424245504: queue write 12
|
||||
1515515507.151606 140715424777984: queue read 12
|
||||
1515515507.151654 140715423979264: map write 16
|
||||
1515515507.151711 140715424511744: map read 16
|
||||
1515515508.151707 140715424245504: queue write 13
|
||||
1515515508.151778 140715423979264: map write 17
|
||||
1515515508.151816 140715423979264: map write 18
|
||||
1515515508.151830 140715424511744: map read 17
|
||||
1515515508.151870 140715424511744: map read 18
|
||||
1515515508.151904 140715423979264: map write 19
|
||||
1515515508.151963 140715424777984: queue read 13
|
||||
1515515508.151997 140715424511744: map read 19
|
||||
1515515509.151920 140715424245504: queue write 14
|
||||
1515515509.152023 140715424777984: queue read 14
|
||||
1515515510.152109 140715424245504: queue write 15
|
||||
1515515510.152218 140715424777984: queue read 15
|
||||
1515515511.152258 140715424245504: queue write 16
|
||||
1515515511.152380 140715424777984: queue read 16
|
||||
1515515512.152409 140715424245504: queue write 17
|
||||
1515515512.152449 140715424245504: queue write 18
|
||||
1515515512.152458 140715424777984: queue read 17
|
||||
1515515512.152477 140715424777984: queue read 18
|
||||
1515515513.152574 140715424245504: queue write 19
|
||||
1515515513.152674 140715424777984: queue read 19
|
||||
1515515513.152708 140715424777984: queue read -1
|
|
@ -0,0 +1,24 @@
|
|||
EMERG 140239160588096 17:32:27.2 /home/pespin/dev/sysmocom/git/osmo-trx/tests/CommonLibs/LogTest.cpp:44:main: testing the logger.
|
||||
ALERT 140239160588096 17:32:27.2 /home/pespin/dev/sysmocom/git/osmo-trx/tests/CommonLibs/LogTest.cpp:45:main: testing the logger.
|
||||
CRIT 140239160588096 17:32:27.2 /home/pespin/dev/sysmocom/git/osmo-trx/tests/CommonLibs/LogTest.cpp:46:main: testing the logger.
|
||||
ERR 140239160588096 17:32:27.2 /home/pespin/dev/sysmocom/git/osmo-trx/tests/CommonLibs/LogTest.cpp:47:main: testing the logger.
|
||||
ALERT 140239160588096 17:32:27.2 /home/pespin/dev/sysmocom/git/osmo-trx/tests/CommonLibs/LogTest.cpp:58:main: 0
|
||||
ALERT 140239160588096 17:32:27.2 /home/pespin/dev/sysmocom/git/osmo-trx/tests/CommonLibs/LogTest.cpp:58:main: 1
|
||||
ALERT 140239160588096 17:32:27.2 /home/pespin/dev/sysmocom/git/osmo-trx/tests/CommonLibs/LogTest.cpp:58:main: 2
|
||||
ALERT 140239160588096 17:32:27.2 /home/pespin/dev/sysmocom/git/osmo-trx/tests/CommonLibs/LogTest.cpp:58:main: 3
|
||||
ALERT 140239160588096 17:32:27.2 /home/pespin/dev/sysmocom/git/osmo-trx/tests/CommonLibs/LogTest.cpp:58:main: 4
|
||||
ALERT 140239160588096 17:32:27.2 /home/pespin/dev/sysmocom/git/osmo-trx/tests/CommonLibs/LogTest.cpp:58:main: 5
|
||||
ALERT 140239160588096 17:32:27.2 /home/pespin/dev/sysmocom/git/osmo-trx/tests/CommonLibs/LogTest.cpp:58:main: 6
|
||||
ALERT 140239160588096 17:32:27.2 /home/pespin/dev/sysmocom/git/osmo-trx/tests/CommonLibs/LogTest.cpp:58:main: 7
|
||||
ALERT 140239160588096 17:32:27.2 /home/pespin/dev/sysmocom/git/osmo-trx/tests/CommonLibs/LogTest.cpp:58:main: 8
|
||||
ALERT 140239160588096 17:32:27.2 /home/pespin/dev/sysmocom/git/osmo-trx/tests/CommonLibs/LogTest.cpp:58:main: 9
|
||||
ALERT 140239160588096 17:32:27.2 /home/pespin/dev/sysmocom/git/osmo-trx/tests/CommonLibs/LogTest.cpp:58:main: 10
|
||||
ALERT 140239160588096 17:32:27.2 /home/pespin/dev/sysmocom/git/osmo-trx/tests/CommonLibs/LogTest.cpp:58:main: 11
|
||||
ALERT 140239160588096 17:32:27.2 /home/pespin/dev/sysmocom/git/osmo-trx/tests/CommonLibs/LogTest.cpp:58:main: 12
|
||||
ALERT 140239160588096 17:32:27.2 /home/pespin/dev/sysmocom/git/osmo-trx/tests/CommonLibs/LogTest.cpp:58:main: 13
|
||||
ALERT 140239160588096 17:32:27.2 /home/pespin/dev/sysmocom/git/osmo-trx/tests/CommonLibs/LogTest.cpp:58:main: 14
|
||||
ALERT 140239160588096 17:32:27.2 /home/pespin/dev/sysmocom/git/osmo-trx/tests/CommonLibs/LogTest.cpp:58:main: 15
|
||||
ALERT 140239160588096 17:32:27.2 /home/pespin/dev/sysmocom/git/osmo-trx/tests/CommonLibs/LogTest.cpp:58:main: 16
|
||||
ALERT 140239160588096 17:32:27.2 /home/pespin/dev/sysmocom/git/osmo-trx/tests/CommonLibs/LogTest.cpp:58:main: 17
|
||||
ALERT 140239160588096 17:32:27.2 /home/pespin/dev/sysmocom/git/osmo-trx/tests/CommonLibs/LogTest.cpp:58:main: 18
|
||||
ALERT 140239160588096 17:32:27.2 /home/pespin/dev/sysmocom/git/osmo-trx/tests/CommonLibs/LogTest.cpp:58:main: 19
|
|
@ -0,0 +1,59 @@
|
|||
EMERG 140239160588096 17:32:27.2 /home/pespin/dev/sysmocom/git/osmo-trx/tests/CommonLibs/LogTest.cpp:44:main: testing the logger.
|
||||
ALERT 140239160588096 17:32:27.2 /home/pespin/dev/sysmocom/git/osmo-trx/tests/CommonLibs/LogTest.cpp:45:main: testing the logger.
|
||||
CRIT 140239160588096 17:32:27.2 /home/pespin/dev/sysmocom/git/osmo-trx/tests/CommonLibs/LogTest.cpp:46:main: testing the logger.
|
||||
ERR 140239160588096 17:32:27.2 /home/pespin/dev/sysmocom/git/osmo-trx/tests/CommonLibs/LogTest.cpp:47:main: testing the logger.
|
||||
WARNING 140239160588096 17:32:27.2 /home/pespin/dev/sysmocom/git/osmo-trx/tests/CommonLibs/LogTest.cpp:48:main: testing the logger.
|
||||
NOTICE 140239160588096 17:32:27.2 /home/pespin/dev/sysmocom/git/osmo-trx/tests/CommonLibs/LogTest.cpp:49:main: testing the logger.
|
||||
|
||||
|
||||
|
||||
testing Alarms
|
||||
you should see three lines:
|
||||
# alarms = 4
|
||||
EMERG 140239160588096 17:32:27.2 /home/pespin/dev/sysmocom/git/osmo-trx/tests/CommonLibs/LogTest.cpp:44:main: testing the logger.
|
||||
ALERT 140239160588096 17:32:27.2 /home/pespin/dev/sysmocom/git/osmo-trx/tests/CommonLibs/LogTest.cpp:45:main: testing the logger.
|
||||
CRIT 140239160588096 17:32:27.2 /home/pespin/dev/sysmocom/git/osmo-trx/tests/CommonLibs/LogTest.cpp:46:main: testing the logger.
|
||||
ERR 140239160588096 17:32:27.2 /home/pespin/dev/sysmocom/git/osmo-trx/tests/CommonLibs/LogTest.cpp:47:main: testing the logger.
|
||||
----------- generating 20 alarms ----------
|
||||
ALERT 140239160588096 17:32:27.2 /home/pespin/dev/sysmocom/git/osmo-trx/tests/CommonLibs/LogTest.cpp:58:main: 0
|
||||
ALERT 140239160588096 17:32:27.2 /home/pespin/dev/sysmocom/git/osmo-trx/tests/CommonLibs/LogTest.cpp:58:main: 1
|
||||
ALERT 140239160588096 17:32:27.2 /home/pespin/dev/sysmocom/git/osmo-trx/tests/CommonLibs/LogTest.cpp:58:main: 2
|
||||
ALERT 140239160588096 17:32:27.2 /home/pespin/dev/sysmocom/git/osmo-trx/tests/CommonLibs/LogTest.cpp:58:main: 3
|
||||
ALERT 140239160588096 17:32:27.2 /home/pespin/dev/sysmocom/git/osmo-trx/tests/CommonLibs/LogTest.cpp:58:main: 4
|
||||
ALERT 140239160588096 17:32:27.2 /home/pespin/dev/sysmocom/git/osmo-trx/tests/CommonLibs/LogTest.cpp:58:main: 5
|
||||
ALERT 140239160588096 17:32:27.2 /home/pespin/dev/sysmocom/git/osmo-trx/tests/CommonLibs/LogTest.cpp:58:main: 6
|
||||
ALERT 140239160588096 17:32:27.2 /home/pespin/dev/sysmocom/git/osmo-trx/tests/CommonLibs/LogTest.cpp:58:main: 7
|
||||
ALERT 140239160588096 17:32:27.2 /home/pespin/dev/sysmocom/git/osmo-trx/tests/CommonLibs/LogTest.cpp:58:main: 8
|
||||
ALERT 140239160588096 17:32:27.2 /home/pespin/dev/sysmocom/git/osmo-trx/tests/CommonLibs/LogTest.cpp:58:main: 9
|
||||
ALERT 140239160588096 17:32:27.2 /home/pespin/dev/sysmocom/git/osmo-trx/tests/CommonLibs/LogTest.cpp:58:main: 10
|
||||
ALERT 140239160588096 17:32:27.2 /home/pespin/dev/sysmocom/git/osmo-trx/tests/CommonLibs/LogTest.cpp:58:main: 11
|
||||
ALERT 140239160588096 17:32:27.2 /home/pespin/dev/sysmocom/git/osmo-trx/tests/CommonLibs/LogTest.cpp:58:main: 12
|
||||
ALERT 140239160588096 17:32:27.2 /home/pespin/dev/sysmocom/git/osmo-trx/tests/CommonLibs/LogTest.cpp:58:main: 13
|
||||
ALERT 140239160588096 17:32:27.2 /home/pespin/dev/sysmocom/git/osmo-trx/tests/CommonLibs/LogTest.cpp:58:main: 14
|
||||
ALERT 140239160588096 17:32:27.2 /home/pespin/dev/sysmocom/git/osmo-trx/tests/CommonLibs/LogTest.cpp:58:main: 15
|
||||
ALERT 140239160588096 17:32:27.2 /home/pespin/dev/sysmocom/git/osmo-trx/tests/CommonLibs/LogTest.cpp:58:main: 16
|
||||
ALERT 140239160588096 17:32:27.2 /home/pespin/dev/sysmocom/git/osmo-trx/tests/CommonLibs/LogTest.cpp:58:main: 17
|
||||
ALERT 140239160588096 17:32:27.2 /home/pespin/dev/sysmocom/git/osmo-trx/tests/CommonLibs/LogTest.cpp:58:main: 18
|
||||
ALERT 140239160588096 17:32:27.2 /home/pespin/dev/sysmocom/git/osmo-trx/tests/CommonLibs/LogTest.cpp:58:main: 19
|
||||
you should see ten lines with the numbers 10..19:
|
||||
# alarms = 20
|
||||
ALERT 140239160588096 17:32:27.2 /home/pespin/dev/sysmocom/git/osmo-trx/tests/CommonLibs/LogTest.cpp:58:main: 0
|
||||
ALERT 140239160588096 17:32:27.2 /home/pespin/dev/sysmocom/git/osmo-trx/tests/CommonLibs/LogTest.cpp:58:main: 1
|
||||
ALERT 140239160588096 17:32:27.2 /home/pespin/dev/sysmocom/git/osmo-trx/tests/CommonLibs/LogTest.cpp:58:main: 2
|
||||
ALERT 140239160588096 17:32:27.2 /home/pespin/dev/sysmocom/git/osmo-trx/tests/CommonLibs/LogTest.cpp:58:main: 3
|
||||
ALERT 140239160588096 17:32:27.2 /home/pespin/dev/sysmocom/git/osmo-trx/tests/CommonLibs/LogTest.cpp:58:main: 4
|
||||
ALERT 140239160588096 17:32:27.2 /home/pespin/dev/sysmocom/git/osmo-trx/tests/CommonLibs/LogTest.cpp:58:main: 5
|
||||
ALERT 140239160588096 17:32:27.2 /home/pespin/dev/sysmocom/git/osmo-trx/tests/CommonLibs/LogTest.cpp:58:main: 6
|
||||
ALERT 140239160588096 17:32:27.2 /home/pespin/dev/sysmocom/git/osmo-trx/tests/CommonLibs/LogTest.cpp:58:main: 7
|
||||
ALERT 140239160588096 17:32:27.2 /home/pespin/dev/sysmocom/git/osmo-trx/tests/CommonLibs/LogTest.cpp:58:main: 8
|
||||
ALERT 140239160588096 17:32:27.2 /home/pespin/dev/sysmocom/git/osmo-trx/tests/CommonLibs/LogTest.cpp:58:main: 9
|
||||
ALERT 140239160588096 17:32:27.2 /home/pespin/dev/sysmocom/git/osmo-trx/tests/CommonLibs/LogTest.cpp:58:main: 10
|
||||
ALERT 140239160588096 17:32:27.2 /home/pespin/dev/sysmocom/git/osmo-trx/tests/CommonLibs/LogTest.cpp:58:main: 11
|
||||
ALERT 140239160588096 17:32:27.2 /home/pespin/dev/sysmocom/git/osmo-trx/tests/CommonLibs/LogTest.cpp:58:main: 12
|
||||
ALERT 140239160588096 17:32:27.2 /home/pespin/dev/sysmocom/git/osmo-trx/tests/CommonLibs/LogTest.cpp:58:main: 13
|
||||
ALERT 140239160588096 17:32:27.2 /home/pespin/dev/sysmocom/git/osmo-trx/tests/CommonLibs/LogTest.cpp:58:main: 14
|
||||
ALERT 140239160588096 17:32:27.2 /home/pespin/dev/sysmocom/git/osmo-trx/tests/CommonLibs/LogTest.cpp:58:main: 15
|
||||
ALERT 140239160588096 17:32:27.2 /home/pespin/dev/sysmocom/git/osmo-trx/tests/CommonLibs/LogTest.cpp:58:main: 16
|
||||
ALERT 140239160588096 17:32:27.2 /home/pespin/dev/sysmocom/git/osmo-trx/tests/CommonLibs/LogTest.cpp:58:main: 17
|
||||
ALERT 140239160588096 17:32:27.2 /home/pespin/dev/sysmocom/git/osmo-trx/tests/CommonLibs/LogTest.cpp:58:main: 18
|
||||
ALERT 140239160588096 17:32:27.2 /home/pespin/dev/sysmocom/git/osmo-trx/tests/CommonLibs/LogTest.cpp:58:main: 19
|
|
@ -0,0 +1,44 @@
|
|||
include $(top_srcdir)/Makefile.common
|
||||
|
||||
AM_CPPFLAGS = -Wall -I$(top_srcdir)/CommonLibs $(STD_DEFINES_AND_INCLUDES) -g
|
||||
|
||||
EXTRA_DIST = BitVectorTest.ok \
|
||||
PRBSTest.ok \
|
||||
InterthreadTest.ok \
|
||||
SocketsTest.ok \
|
||||
TimevalTest.ok \
|
||||
VectorTest.ok \
|
||||
LogTest.ok
|
||||
|
||||
noinst_PROGRAMS = \
|
||||
BitVectorTest \
|
||||
PRBSTest \
|
||||
InterthreadTest \
|
||||
SocketsTest \
|
||||
TimevalTest \
|
||||
VectorTest \
|
||||
LogTest
|
||||
|
||||
BitVectorTest_SOURCES = BitVectorTest.cpp
|
||||
BitVectorTest_LDADD = $(COMMON_LA)
|
||||
|
||||
PRBSTest_SOURCES = PRBSTest.cpp
|
||||
|
||||
InterthreadTest_SOURCES = InterthreadTest.cpp
|
||||
InterthreadTest_LDADD = $(COMMON_LA)
|
||||
InterthreadTest_LDFLAGS = -lpthread
|
||||
|
||||
SocketsTest_SOURCES = SocketsTest.cpp
|
||||
SocketsTest_LDADD = $(COMMON_LA)
|
||||
SocketsTest_LDFLAGS = -lpthread
|
||||
|
||||
TimevalTest_SOURCES = TimevalTest.cpp
|
||||
TimevalTest_LDADD = $(COMMON_LA)
|
||||
|
||||
VectorTest_SOURCES = VectorTest.cpp
|
||||
VectorTest_LDADD = $(COMMON_LA)
|
||||
|
||||
LogTest_SOURCES = LogTest.cpp
|
||||
LogTest_LDADD = $(COMMON_LA)
|
||||
|
||||
MOSTLYCLEANFILES += testSource testDestination
|
File diff suppressed because one or more lines are too long
|
@ -0,0 +1,22 @@
|
|||
-10000
|
||||
now: 1515515602.357742 then: 1515515612.357710 remaining: 10000
|
||||
now: 1515515602.857837 then: 1515515612.357710 remaining: 9500
|
||||
now: 1515515603.357975 then: 1515515612.357710 remaining: 9000
|
||||
now: 1515515603.858163 then: 1515515612.357710 remaining: 8500
|
||||
now: 1515515604.358353 then: 1515515612.357710 remaining: 8000
|
||||
now: 1515515604.858465 then: 1515515612.357710 remaining: 7500
|
||||
now: 1515515605.358622 then: 1515515612.357710 remaining: 7000
|
||||
now: 1515515605.858745 then: 1515515612.357710 remaining: 6499
|
||||
now: 1515515606.358852 then: 1515515612.357710 remaining: 5999
|
||||
now: 1515515606.859055 then: 1515515612.357710 remaining: 5499
|
||||
now: 1515515607.359170 then: 1515515612.357710 remaining: 4999
|
||||
now: 1515515607.859349 then: 1515515612.357710 remaining: 4499
|
||||
now: 1515515608.359455 then: 1515515612.357710 remaining: 3999
|
||||
now: 1515515608.859549 then: 1515515612.357710 remaining: 3499
|
||||
now: 1515515609.359748 then: 1515515612.357710 remaining: 2998
|
||||
now: 1515515609.859865 then: 1515515612.357710 remaining: 2498
|
||||
now: 1515515610.360064 then: 1515515612.357710 remaining: 1998
|
||||
now: 1515515610.860223 then: 1515515612.357710 remaining: 1498
|
||||
now: 1515515611.360386 then: 1515515612.357710 remaining: 998
|
||||
now: 1515515611.860592 then: 1515515612.357710 remaining: 498
|
||||
now: 1515515612.360712 then: 1515515612.357710 remaining: -3
|
|
@ -0,0 +1,10 @@
|
|||
0 1 2 3 4
|
||||
10 11 12 13 14
|
||||
0 1 2 3 4 10 11 12 13 14
|
||||
0 1 2
|
||||
3 4 10 11 12 13 14
|
||||
8 8 8 8 8 8 8 8 8 8
|
||||
8 8 8 0 1 2 3 4 8 8
|
||||
1 2 3
|
||||
8 8 8 0 9 9 9 4 8 8
|
||||
9 9 9
|
|
@ -0,0 +1,40 @@
|
|||
SUBDIRS = \
|
||||
CommonLibs \
|
||||
$(NULL)
|
||||
|
||||
# The `:;' works around a Bash 3.2 bug when the output is not writeable.
|
||||
$(srcdir)/package.m4: $(top_srcdir)/configure.ac
|
||||
:;{ \
|
||||
echo '# Signature of the current package.' && \
|
||||
echo 'm4_define([AT_PACKAGE_NAME],' && \
|
||||
echo ' [$(PACKAGE_NAME)])' && \
|
||||
echo 'm4_define([AT_PACKAGE_TARNAME],' && \
|
||||
echo ' [$(PACKAGE_TARNAME)])' && \
|
||||
echo 'm4_define([AT_PACKAGE_VERSION],' && \
|
||||
echo ' [$(PACKAGE_VERSION)])' && \
|
||||
echo 'm4_define([AT_PACKAGE_STRING],' && \
|
||||
echo ' [$(PACKAGE_STRING)])' && \
|
||||
echo 'm4_define([AT_PACKAGE_BUGREPORT],' && \
|
||||
echo ' [$(PACKAGE_BUGREPORT)])'; \
|
||||
echo 'm4_define([AT_PACKAGE_URL],' && \
|
||||
echo ' [$(PACKAGE_URL)])'; \
|
||||
} >'$(srcdir)/package.m4'
|
||||
|
||||
EXTRA_DIST = testsuite.at $(srcdir)/package.m4 $(TESTSUITE)
|
||||
TESTSUITE = $(srcdir)/testsuite
|
||||
DISTCLEANFILES = atconfig $(NULL)
|
||||
|
||||
check-local: atconfig $(TESTSUITE)
|
||||
$(SHELL) '$(TESTSUITE)' $(TESTSUITEFLAGS)
|
||||
|
||||
installcheck-local: atconfig $(TESTSUITE)
|
||||
$(SHELL) '$(TESTSUITE)' AUTOTEST_PATH='$(bindir)' $(TESTSUITEFLAGS)
|
||||
|
||||
clean-local:
|
||||
test ! -f '$(TESTSUITE)' || $(SHELL) '$(TESTSUITE)' --clean
|
||||
|
||||
AUTOM4TE = $(SHELL) $(top_srcdir)/missing --run autom4te
|
||||
AUTOTEST = $(AUTOM4TE) --language=autotest
|
||||
$(TESTSUITE): $(srcdir)/testsuite.at $(srcdir)/package.m4
|
||||
$(AUTOTEST) -I '$(srcdir)' -o $@.tmp $@.at
|
||||
mv $@.tmp $@
|
|
@ -0,0 +1,45 @@
|
|||
AT_INIT
|
||||
AT_BANNER([Regression tests.])
|
||||
|
||||
AT_SETUP([BitVectorTest])
|
||||
AT_KEYWORDS([BitVectorTest])
|
||||
cat $abs_srcdir/CommonLibs/BitVectorTest.ok > expout
|
||||
AT_CHECK([$abs_top_builddir/tests/CommonLibs/BitVectorTest], [], [expout], [])
|
||||
AT_CLEANUP
|
||||
|
||||
#AT_SETUP([InterthreadTest])
|
||||
#AT_KEYWORDS([InterthreadTest])
|
||||
#cat $abs_srcdir/CommonLibs/InterthreadTest.ok > expout
|
||||
#AT_CHECK([$abs_top_builddir/tests/CommonLibs/InterthreadTest], [], [expout], [])
|
||||
#AT_CLEANUP
|
||||
|
||||
#AT_SETUP([LogTest])
|
||||
#AT_KEYWORDS([LogTest])
|
||||
#cat $abs_srcdir/CommonLibs/LogTest.ok > expout
|
||||
#cat $abs_srcdir/CommonLibs/LogTest.err > experr
|
||||
#AT_CHECK([$abs_top_builddir/tests/CommonLibs/LogTest], [], [expout], [experr])
|
||||
#AT_CLEANUP
|
||||
|
||||
AT_SETUP([PRBSTest])
|
||||
AT_KEYWORDS([PRBSTest])
|
||||
cat $abs_srcdir/CommonLibs/PRBSTest.ok > expout
|
||||
AT_CHECK([$abs_top_builddir/tests/CommonLibs/PRBSTest], [], [expout], [])
|
||||
AT_CLEANUP
|
||||
|
||||
#AT_SETUP([SocketsTest])
|
||||
#AT_KEYWORDS([SocketsTest])
|
||||
#cat $abs_srcdir/CommonLibs/SocketsTest.ok > expout
|
||||
#AT_CHECK([$abs_top_builddir/tests/CommonLibs/SocketsTest], [], [expout], [])
|
||||
#AT_CLEANUP
|
||||
|
||||
#AT_SETUP([TimevalTest])
|
||||
#AT_KEYWORDS([TimevalTest])
|
||||
#cat $abs_srcdir/CommonLibs/TimevalTest.ok > expout
|
||||
#AT_CHECK([$abs_top_builddir/tests/CommonLibs/TimevalTest], [], [expout], [])
|
||||
#AT_CLEANUP
|
||||
|
||||
AT_SETUP([VectorTest])
|
||||
AT_KEYWORDS([VectorTest])
|
||||
cat $abs_srcdir/CommonLibs/VectorTest.ok > expout
|
||||
AT_CHECK([$abs_top_builddir/tests/CommonLibs/VectorTest], [], [expout], [])
|
||||
AT_CLEANUP
|
Loading…
Reference in New Issue