mirror of
https://github.com/cwinfo/yggdrasil-go.git
synced 2024-11-14 03:20:28 +00:00
6d92edd405
* Move `src/mobile` into main repository * Update go.mod/go.sum * Move to `contrib`, separate mobile build script
17 lines
411 B
Go
17 lines
411 B
Go
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)
|
|
}
|
|
}
|