forked from acouzens/open5gs
Added Meson Continuous Integration (#1454)
This commit is contained in:
parent
fbfb72c1b7
commit
82241f5b84
|
@ -0,0 +1,49 @@
|
||||||
|
name: Meson Continuous Integration
|
||||||
|
on: [push, pull_request]
|
||||||
|
jobs:
|
||||||
|
# macos-latest:
|
||||||
|
# name: Build and Test on MacOS Latest
|
||||||
|
# runs-on: macos-latest
|
||||||
|
# steps:
|
||||||
|
# - name: Install the dependencies for building the source code.
|
||||||
|
# run: |
|
||||||
|
# brew install mongo-c-driver gnutls libgcrypt libidn libyaml libmicrohttpd nghttp2 pkg-config bison libusrsctp libtins talloc meson
|
||||||
|
# - name: Check out repository code
|
||||||
|
# uses: actions/checkout@v1
|
||||||
|
# - name: Setup Meson Build
|
||||||
|
# run: meson setup build
|
||||||
|
# env:
|
||||||
|
# CC: gcc
|
||||||
|
# - name : Build Open5GS
|
||||||
|
# run: ninja -C build
|
||||||
|
# - name: Test Open5GS
|
||||||
|
# run: meson test -C build -v core crypt sctp unit
|
||||||
|
ubuntu-latest:
|
||||||
|
name: Build and Test on Ubuntu/Debian Latest
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
services:
|
||||||
|
mongodb:
|
||||||
|
image: mongo
|
||||||
|
ports:
|
||||||
|
- 27017:27017
|
||||||
|
steps:
|
||||||
|
- name: Create the TUN device with the interface name `ogstun`.
|
||||||
|
run: |
|
||||||
|
sudo ip tuntap add name ogstun mode tun
|
||||||
|
sudo ip addr add 10.45.0.1/16 dev ogstun
|
||||||
|
sudo ip addr add 2001:db8:cafe::1/48 dev ogstun
|
||||||
|
sudo ip link set ogstun up
|
||||||
|
- name: Install the dependencies for building the source code.
|
||||||
|
run: |
|
||||||
|
sudo apt update
|
||||||
|
sudo apt install python3-pip python3-setuptools python3-wheel ninja-build build-essential flex bison git libsctp-dev libgnutls28-dev libgcrypt-dev libssl-dev libidn11-dev libmongoc-dev libbson-dev libyaml-dev libnghttp2-dev libmicrohttpd-dev libcurl4-gnutls-dev libnghttp2-dev libtins-dev libtalloc-dev meson
|
||||||
|
- name: Check out repository code
|
||||||
|
uses: actions/checkout@v1
|
||||||
|
- name: Setup Meson Build
|
||||||
|
run: meson setup build
|
||||||
|
env:
|
||||||
|
CC: gcc
|
||||||
|
- name : Build Open5GS
|
||||||
|
run: ninja -C build
|
||||||
|
- name: Test Open5GS
|
||||||
|
run: meson test -C build -v
|
|
@ -32,6 +32,22 @@ ogs_pkbuf_t *testgsm_build_pdu_session_establishment_request(
|
||||||
ogs_nas_ssc_mode_t *ssc_mode = NULL;
|
ogs_nas_ssc_mode_t *ssc_mode = NULL;
|
||||||
ogs_nas_extended_protocol_configuration_options_t
|
ogs_nas_extended_protocol_configuration_options_t
|
||||||
*extended_protocol_configuration_options = NULL;
|
*extended_protocol_configuration_options = NULL;
|
||||||
|
|
||||||
|
/*
|
||||||
|
* Challenge Handshake Authentication Protocol(0xc223)
|
||||||
|
* Code : Challenge (1)
|
||||||
|
* Response (2)
|
||||||
|
*/
|
||||||
|
#if 0
|
||||||
|
uint8_t ue_pco[94] =
|
||||||
|
"\x80\xc2\x23\x16\x01\x00\x00\x16\x10\xa1\x53\x8b\x8b"
|
||||||
|
"\xa1\x53\x8b\x8b\xa1\x53\x8b\x8b\xa1\x53\x8b\x8b\x2a\xc2\x23\x16"
|
||||||
|
"\x02\x00\x00\x16\x10\x52\xfb\x1e\xd0\x6e\x58\xd6\x5c\xb6\x3f\x54"
|
||||||
|
"\x45\x9c\x94\x84\xaa\x2a\x80\x21\x10\x01\x00\x00\x10\x81\x06\x00"
|
||||||
|
"\x00\x00\x00\x83\x06\x00\x00\x00\x00\x00\x0d\x00\x00\x03\x00\x00"
|
||||||
|
"\x0a\x00\x00\x05\x00\x00\x10\x00\x00\x11\x00\x00\x23\x00\x00\x24"
|
||||||
|
"\x00";
|
||||||
|
#endif
|
||||||
uint8_t ue_pco[35] =
|
uint8_t ue_pco[35] =
|
||||||
"\x80\x80\x21\x10\x01\x00\x00\x10\x81\x06\x00\x00\x00\x00"
|
"\x80\x80\x21\x10\x01\x00\x00\x10\x81\x06\x00\x00\x00\x00"
|
||||||
"\x83\x06\x00\x00\x00\x00\x00\x0c\x00\x00\x0d\x00\x00\x02\x00\x00"
|
"\x83\x06\x00\x00\x00\x00\x00\x0c\x00\x00\x0d\x00\x00\x02\x00\x00"
|
||||||
|
|
Loading…
Reference in New Issue