mirror of
https://github.com/yggdrasil-network/yggdrasil-go.git
synced 2025-06-16 22:25:08 +03:00
Move src/mobile
into main repository (#864)
* Move `src/mobile` into main repository * Update go.mod/go.sum * Move to `contrib`, separate mobile build script
This commit is contained in:
parent
a4bdf3de32
commit
6d92edd405
9 changed files with 339 additions and 30 deletions
16
contrib/mobile/mobile_test.go
Normal file
16
contrib/mobile/mobile_test.go
Normal 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)
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue