Commit Graph

13 Commits

Author SHA1 Message Date
Oliver Smith 72ddb01219 Add QEMU tests
Add tests to ensure libgtpnl + kernel driver work as expected.

Right now a kernel needs to be built from source, using Pablo's tree:
https://git.kernel.org/pub/scm/linux/kernel/git/pablo/gtp.git/

Make sure to enable:
  CONFIG_GTP=y
  CONFIG_NET_NS=y
  CONFIG_VETH=y

$ cp bzImage tests/qemu/_linux
$ ./configure --enable-qemu-tests
$ make
$ make check

Once patches are upstreamed, it will be possible to use a pre-built
kernel from jenkins with: make -C tests qemu-download-kernel

Related: OS#1952
Change-Id: Ibf75514b866fffb11e90529e4705f126b23d7415
2024-02-16 15:15:24 +01:00
Oliver Smith 9c14b5060c configure.ac: move AC_OUTPUT -> AC_CONFIG_FILES
Instead of having one file in AC_OUTPUT, and all others in
AC_CONFIG_FILES, move all of them to AC_CONFIG_FILES. Sort the files
while at it and have one per line.

Fix this warning:
  configure.ac:86: warning: AC_OUTPUT should be used without arguments.

Change-Id: Iea782b03c9ede154eedbd0c0e9f0d7359bb49967
2024-02-14 16:18:52 +01:00
Oliver Smith 0bd1e0d6eb configure: add --enable-werror
Change-Id: Ife3716c667d2e9b3fcd94d3cdc044d594e7dab5a
2023-10-19 16:09:15 +02:00
Oliver Smith dd335ef8fc configure: regular_C(PP)FLAGS -> C(PP)FLAGS
Make it consistent with other Osmocom projects by removing special
naming for CFLAGS and CPPFLAGS. Otherwise the arguments we typically
add, such as --enable-sanitize which is already there, or
--enable-werror which I'll add in the next patch, do not work without
further changes.

Change-Id: I11e9657fb0c038169bd414a6455044ff4a4709b7
2023-10-19 16:09:15 +02:00
Oliver Smith 5314ea43ac configure.ac: set -std=gnu11
Change-Id: Iea60698b4cb0f9c04a6f75cc4ca2ea5fbb84bae8
2021-01-27 17:31:54 +01:00
Oliver Smith 01b2d940a0 contrib: integrate RPM spec
Remove OpenSUSE bug report link, set version to @VERSION@, make it build with
CentOS 8 etc.

Related: OS#4550
Change-Id: I5376fde96c7442eb70f49a2ce38f57a817a94f81
2020-05-19 15:19:35 +02:00
Pau Espin b1adcf72c9 configure.ac: Use git-version-gen to set VERSION
Change-Id: Id6535719321c8bb690936b5ae3ddcb9d8a9aa4d7
2018-05-02 16:36:27 +02:00
Pau Espin 16fa45f155 configure.ac: Depend on osmo-release.mk
The osmo-release.mk script can be found in libosmocore and it is used in
most osmocom related projects to help create new releases.

LIBVERSION is moved to src/Makefile.am since osmo-release.mk greps for
Makefile.am to find LIBVERSIOn changes. In any case, we don't need in
the global include makefile.

Change-Id: I5d163535c34369c74ece26574c8b1601bc1697b7
2018-05-02 16:36:24 +02:00
Harald Welte dd1e2f2641 Tag/Release v1.1.0
Change-Id: I18ac475c1591c4dc4c2953957a8bce8e73007251
2017-11-12 23:33:02 +09:00
Harald Welte 51c10b73fb Use release helper from libosmocore
Change-Id: I3b22a026ee61e88ed6d785182990cfcba0487bfe
Related: OS#1861
2017-11-12 23:25:00 +09:00
Harald Welte 134d0a386d Add '--enable-sanitize' from other osmocom projects
Change-Id: Iac9ce76ce4ca5f5247bc42c16bb365d94cfde156
2017-11-12 22:48:15 +09:00
Harald Welte 853753e7c6 mark as 1.0.1 after re-licensing and dist-check fix 2016-07-28 20:40:17 +02:00
Pablo Neira Ayuso 14506665d9 add libgtpnl
This patch adds the libgtpnl library. Harald mentioned that he wanted
that the specific code that is added is well encapsulated, so let's
start a small library to interact with the GTP kernel module via netlink
interface.

This was done a bit while in the rush, so the interfaces are not nice
at all and the tools need to be ported on top of this library.

This library will be used to integrate openggsn with the GTP kernel
module.
2014-02-20 19:41:29 +01:00