Skip to content

Instantly share code, notes, and snippets.

@mrlnc
Last active March 13, 2021 18:25
Show Gist options
  • Save mrlnc/1b78699da2146fb5c57a42f4c0df793d to your computer and use it in GitHub Desktop.
Save mrlnc/1b78699da2146fb5c57a42f4c0df793d to your computer and use it in GitHub Desktop.
free5gc-run-tests-extern-5gc.md

You can use Free5GC's set of testcases (free5gc/test/registration_test.go) to test other core networks, too.

1.) change IPs in registration_test.go to point to your 5GC instance.

const ranN2Ipv4Addr string = "127.0.0.1"
const amfN2Ipv4Addr string = "127.0.0.1"

2.) run tests with the noinit parameter -- this will inhibit initialization of a local free5gc instance

~/free5gc/test$ go test -v -run TestRegistration -args noinit
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment