aboutsummaryrefslogtreecommitdiffstats
path: root/tests
AgeCommit message (Collapse)AuthorFilesLines
2019-10-17Fix common misspellings and typosMartin Hauke1-3/+3
Change-Id: I4ec7accb1912c052b446be7c399bed32a8c62253
2019-07-22Add SPDX annotationPau Espin Pedrol6-0/+7
Related: OS#3515 Change-Id: I3719bd8dc015569ecd81928fc079e27593cdca09
2019-07-22cosmetic: Fix trailing whitespace in several filesPau Espin Pedrol1-1/+1
Change-Id: Ifafb68353960fc5046661854ccfb8d783b0efb14
2019-07-02Transceiver: replace UDPSocket with libosmocore socket APIPau Espin Pedrol4-114/+0
We have a good socket API in libosmocore, let's drop osmo-trx socket API and use libosmocore's one instead of maintaining the two of them. Change-Id: Ib19856a3e0a7607f63436c4a80b1381a3f318764
2019-01-24tests: Re-enable the convolve_test by defaultSylvain Munaut1-2/+0
Change-Id: Ia26ef75bb11482fc0db3b790db1c93c8b74229d1 Signed-off-by: Sylvain Munaut <tnt@246tNt.com>
2019-01-24tests: Rework the convolve_testSylvain Munaut4-167/+925
Besides just general cleanup, the major changes are : - Fully internal generation of reference data that doesn't depend on glibc or even on any floating point math - Golden results are included in a .h Due to varying precision of different implementation or architecture, any kind of textual compare is impossible, so we include golden values and compare results of both the 'base' implementation the potentially 'optimized' one again this set of values with a small error tolerance Change-Id: I4e203d2c4b778af77d630ed15d4cef6b0c0eb76d Signed-off-by: Sylvain Munaut <tnt@246tNt.com>
2019-01-21convolve: Remove support for step, offset parametersSylvain Munaut1-12/+4
- Those are not used any where - Those are not supported by the sse/neon accelerated versions - And I see very little use cases for those. Change-Id: Ic850269a0ed5d98c0ea68980afd31016ed555b48 Signed-off-by: Sylvain Munaut <tnt@246tNt.com>
2018-12-17LMSDeviceTest: fix link errors on OBSOliver Smith1-1/+2
Link LMSDeviceTest against LMS_LIBS, so it does not only compile on Debian, but also on Ubuntu and openSUSE. Thanks to roox for figuring this out. Related: OS#3654 Change-Id: I6980d4290f623485a77db10fea6d17de0321c092
2018-12-13TimevalTest: Make test deterministic with fake timePau Espin Pedrol1-7/+18
Change-Id: I74e577a0142fb6d1ef3630e02aff9910b191bff9
2018-12-13LMSDevice: make use of dev-args in osmo-trx.cfgOliver Smith3-0/+57
Allow selecting a specific LimeSDR device by setting dev-args in the config file. Split up the given dev-args address by comma and select the device where all substrings can be found. I could not test this with real hardware, but I have added a test case to make sure this works as expected. Related: OS#3654 Change-Id: Ib9aaa066a01bf9de3f78234d7ada884d6f28c852
2018-10-21SocketsTest.testReaderIP(): Zero terminate received bufferHarald Welte1-1/+2
Change-Id: Icd144e672ab15cfb0955897dd6eb529c56908eba
2018-09-28Use pthread_setname_np to name threadsPau Espin Pedrol1-2/+2
osmo-trx can start a considerable amount of threads that can make debugging it challenging at least. By using phtread_setname_np, the system sets a meaningful name to the thread which can be seen while debugging with gdb or by printing /proc/$pid/task/$tid/comm. Now we also log system TID when setting the name so we can identify different tasks in /proc even if pthread_setname_np fails. Change-Id: I84711739c3e224cb383fd12b6db933785b28209e
2018-09-13cosmetic: Use proper whitespace in several for loopsPau Espin Pedrol1-2/+2
Change-Id: I82bdeb8a3fa38f3d125e8cbccc3eddbf2b8d8f58
2018-04-28build: Fix OBS build for ARMPau Espin Pedrol1-2/+3
Change-Id: Ic6b408d684e2bb58af71ec04ced7e73e0d38ffcd
2018-04-27build: Fix make distcheckPau Espin Pedrol1-1/+2
Change-Id: I1fa5e34b44331cd56408ea7ad4483dcf6443b259
2018-04-25Logger: Print correct source file and line numberPau Espin Pedrol1-5/+5
Before this commit, always Logger.cpp:53 was being printed. Change-Id: Ie5c64b4961c7c41d23484784a93eda5e08331f08
2018-04-24Move arch specific fiels to arch subdirPau Espin Pedrol2-2/+2
Take the chance to update some includes using files available in that subdir to have them ina more uniform way. Change-Id: Ibda3c54fd4dc3f6b845cc373f1a1e6b758c1ea82
2018-04-16tests: Makefile.am: Fix typo in include pathPau Espin Pedrol1-1/+1
Change-Id: I036f1f587f2a5eaf93ec8fb619bf76b571c1633a
2018-04-16use osmo_init_logging2()Pau Espin Pedrol1-1/+6
Change-Id: I2c28e6e6e3eb9f587680b34330e03408e32c2b94
2018-02-27Logger: Use libosmocore logging systemPau Espin Pedrol4-68/+35
We still need an intermediate class Logger due to osmo-trx being multi-threaded and requiring to have a lock to use libosmocore, which is not thread safe. Change-Id: I30baac89f53e927f8699d0586b43cccf88ecd493
2018-02-20Logger: Drop syslog supportPau Espin Pedrol1-1/+1
This feature is currently not being used, so let's drop it to make it easier to integrate into libosmocore logging system in the future. Change-Id: I8282745ef0282d41599eaf94fe460a1d29b18e2a
2018-02-20Logger: get rid of alarm APIsPau Espin Pedrol2-46/+0
It's only used internally inside the Logger module, and in case there's an "alarm" (level more than critical) we still print on cerr, so we can just rely on our system catching stderr instead of stdout to handle it. Change-Id: I6d6df1578c3a4c1a37bd0d69952d443f62eed2ab
2018-01-31tests: null-terminate bufferMax1-1/+1
Initialize temporary buffer with 0 to make sure that it's null-terminated. Change-Id: Icdde701839e35d3131605ea5a11882af21c8939a Fixes: CID149362
2018-01-16tests: convolve: Disable due to difference in output in different archsPau Espin Pedrol1-2/+2
Let's disable this test in order to have passing jenkins jobs until we find a better way to properly test this for different architectures. Change-Id: I2320309bc8c1c20e2de6ef2e0f17472c68de80cb
2018-01-15contrib/jenkins.sh: Use qemu+proot+debootstrap to run tests with ARM ↵Pau Espin Pedrol1-0/+2
instruction set The following logic doesn't require root access to run the tests, which means we can easily run it inside jenkins. Change-Id: Iba3f4de008662805d8ffc46e1f473e407b088fb8
2018-01-15tests: TimevalTest: refactor and avoid double comparisonPau Espin Pedrol1-9/+15
Before this patch, the experession assert(then_secondws==then.seconds()) was failing in x86 architecture (and passing when adding a fprintf to debug it). Avoid comparing the double values with == as that's usually a bad idea, since the processor can output slightly different results for the same operation depending on how it is optimized. Use timespec() instead to check the invariant. Take the chance to refactor some variables around to make the test easier to read. Change-Id: Id4324be8ece86d371b1acb46bbd97856dfed241d
2018-01-15tests: SocketsTest: Fail test on write failPau Espin Pedrol1-1/+7
Change-Id: Ib6b778a2225339ebd2eaa80b3fca6ee8d8646b23
2018-01-15tests: SocketsTest: Avoid hang forever if test failsPau Espin Pedrol1-1/+15
Change-Id: Ia95e216a2ab6d397ab02c828b70f2b95d1671257
2018-01-15tests: SocketTests: Pick OS-assigned instead of setting one manuallyPau Espin Pedrol1-8/+9
This fixes failures if the port is already being taken by other apps or if this test is run several times concurrently in the same system. Change-Id: Iea213375e489a56cf8ed3e47fe814e17c288803e
2018-01-11Remove UDDSocket classPau Espin Pedrol1-28/+1
This class is not used anymore in osmo-trx, so we can safely remove it. Change-Id: I67f90aa3d6a2a5e92292436d10928e0705c8f8ff
2018-01-11tests: Migrate convtest util to autotest infrastructurePau Espin Pedrol5-0/+246
Change-Id: Ie682abf7e83de436d0f37f9f6e0664cb2f4d0c9e
2018-01-10tests: Sockets: adapt to have reproducible output and enable autotestPau Espin Pedrol3-10/+13
Change-Id: I5414076c6846b849973bcdeb3f2358b28dcb004c
2018-01-10tests: Log: adapt to have reproducible output and enable autotestPau Espin Pedrol4-89/+91
Change-Id: I77c40230503acadef5f64ab2624cd872f9782b98
2018-01-10tests: Timeval: adapt to have reproducible output and enable autotestPau Espin Pedrol3-31/+23
Change-Id: I1a79892ba3c934879a171789e0edb357277acae4
2018-01-10tests: InterThread: adapt to have reproducible output and enable autotestPau Espin Pedrol3-91/+33
Change-Id: I05d4067890b526bd72d2eb31cf76de43ee11e80f
2018-01-10Set up GNU Autotest infrastructurePau Espin Pedrol17-0/+828
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: I3d6ba625968be09297642d18090c496490e9b8fc