summaryrefslogtreecommitdiffstats
path: root/Makefile
AgeCommit message (Collapse)AuthorFilesLines
2018-07-24introduce a TTCN3 test suite for SCCPStefan Sperling1-1/+1
This test suite acts as an SCCP server on top of M3UA. SCCP tests are run against the sccp_demo_user program which can be found in libosmo-sccp/examples. This program must be started in client mode: sccp_demo_user -c The SCCP test suite should then work out of the box with the provided SCCP_Tests.cfg file and this additional change to sccp_demo_user default point codes: https://gerrit.osmocom.org/#/c/libosmo-sccp/+/9652/ There is currently only one test, for the libosmo-sccp crash reported as issue OS#2666. The implementation of this test is currently using an ugly workaround due to shortcomings of the M3UA Emulation layer (see source code comments). Whether a better solution is feasible is still to be determined. The test requires a patch to the SCCP Protocol Emulation which has been submitted upstream: https://git.eclipse.org/r/#/c/124552/ Change-Id: I03f5e8b282a7396b45417495c88d8fb81b26cda8 Related: OS#2666
2018-06-25default to number of CPUs for parallel make jobsStefan Sperling1-1/+5
The previous default behaviour was to always run 'make -j8', which can cause C++ build failures on machines which are low on memory. "Low" being a relative measure; I've seen failures with 4GB of RAM. Rather than assuming a beefy 8-core box, try to detect the number of available CPU cores with nproc(1) from GNU coreutils and set the number of parallel make jobs to the number of CPU cores. If this command is not available, default to a safe choice: -j1 Note that installing ccache will speed up repeated builds a lot more than -jX ever will, so falling back to -j1 isn't very bad. Change-Id: I61c3ea1b3cb5b64eecb08ad6c390594f70cdf785
2018-03-26Makefile: Add new 'sip' testsuite to list of testsuitesHarald Welte1-1/+1
Change-Id: Ie7cc41a40fb8706e9b0752be6e7c1f34dc692d87
2018-03-21make management of osmo-ttcn3 git repository dependencies automaticStefan Sperling1-1/+2
Add rules to deps/Makefile which ensure that 'make deps' puts the git repositories of dependencies into a known state. In particular, set the origin remote url to a known value, and check out a known commit into the work tree. This change ensures that ttcn3 builds run with 'make' will always use correct versions of dependencies. The 'make update-deps' now has the same effect as 'make deps', but it is not yet removed in case build scripts rely on its existence. The new 'make deps' target is fast enough to be run before every build. Change-Id: I561eee7e12d976cd2265ba1bb8cd22dd8c1a0735 Related: OS#3090
2018-03-12pcu: Rename 'gprs_gb/Test' tp 'pcu/PCU_Tests' to align with other suitesHarald Welte1-1/+1
Change-Id: Ia3350e7e1a9d6715ab81f4a5f413b7e4d728ff60
2018-03-02Makefile: use -j8, allow manual PARALLEL_MAKE valNeels Hofmeyr1-1/+1
Set default -j to 8: even on a machine with less cores, using -j8 isn't really going to slow down the build. On a machine with eight cores, -j8 is going to speed up significantly. By using '?=', allow passing a different -jN as PARALLEL_MAKE from the enviroment. Change-Id: Idf6a5505742b30d3cb8b80ae98b4e2ad4a4a38e7
2018-03-01hlr: Add hlr sub-directory to master Makefile (for 'make compile' checks)Harald Welte1-1/+1
Change-Id: Idbd8241fc7d217885f65f84e11f9f1ea13adb82e
2018-02-24Add initial OsmoBTS test suiteHarald Welte1-1/+1
This Test suite implements the BSC-side of Abis RSL and is used to test OsmoBTS. It contains provisions for using L1CTL against (virt_phy + osmo-bts-virtual) or (trxcon + fake_trx + osmo-bts-trx) to also simulate the MS/Um side, bu those provisions are not used yet. Implemented tests currently are only related to RSL dedicated channel activation / deactivation. We still terminate OML inside OsmoBSC, and let the test suite deal exclusively with RSL to keep complexity low. Change-Id: I8ced0d29777aad3ec842d54eabea87dfcc943c79
2018-02-18Makefile: Add 'sgsn' sub-directory in list of projectsHarald Welte1-1/+1
Change-Id: I2b9e5a28e60f06d05ac4ac2e3ed90c6bf72e03f2
2018-02-15Makefile: Add 'deps-update' target to update the deps-repositoryHarald Welte1-0/+4
Change-Id: Idc165425b45872d2eb958a662d03e69aaf60669d
2018-01-27msc: rename sub-directory from msc_tests to msc (to be in line with bsc, etc.)Harald Welte1-1/+1
Change-Id: Ib219dee5e587bca3b79d29d631836cf1ef2be81c
2017-12-12Makefile: ensure that 'compile' targets depend on 'deps'Harald Welte1-2/+2
This will ensure that a 'make compile' on a freshly-cloned repo will first clone all the deps to ensure a successful build Change-Id: I6583a42758b5682b04d1e90585063904508aa3a9
2017-12-12Makefile: clone dependencies into 'deps' folderHarald Welte1-1/+5
We used to rely on out-of-tree git clones to be prepared by the user. This commit changes the system to make sure we clone all git repos we depend upon into the 'deps' folder, and then setup the symlinks to that folder. As a result, we should be able to support self-contained builds using the makefiles in this repo.
2017-12-12Add master make file which helps to iterate over all directoriesHarald Welte1-0/+54