infra/netbird/client/system/info_darwin_test.go
2025-04-21 09:31:22 +00:00

25 lines
447 B
Go

package system
import (
"testing"
log "github.com/sirupsen/logrus"
)
func Test_sysInfoMac(t *testing.T) {
t.Skip("skipping darwin test")
serialNum, prodName, manufacturer := sysInfo()
if serialNum == "" {
t.Errorf("serialNum is empty")
}
if prodName == "" {
t.Errorf("prodName is empty")
}
if manufacturer == "" {
t.Errorf("manufacturer is empty")
}
log.Infof("Mac sys info: %s, %s, %s", serialNum, prodName, manufacturer)
}