Move src/mobile into main repository

This commit is contained in:
Neil Alexander 2021-11-04 08:45:59 +00:00
parent 87e936195e
commit bff8630853
6 changed files with 254 additions and 6 deletions

16
src/mobile/mobile_test.go Normal file
View file

@ -0,0 +1,16 @@
package mobile
import "testing"
func TestStartYggdrasil(t *testing.T) {
ygg := &Yggdrasil{}
if err := ygg.StartAutoconfigure(); err != nil {
t.Fatalf("Failed to start Yggdrasil: %s", err)
}
t.Log("Address:", ygg.GetAddressString())
t.Log("Subnet:", ygg.GetSubnetString())
t.Log("Coords:", ygg.GetCoordsString())
if err := ygg.Stop(); err != nil {
t.Fatalf("Failed to stop Yggdrasil: %s", err)
}
}