mirror of
https://github.com/netbirdio/netbird.git
synced 2024-12-15 11:21:04 +01:00
24 lines
443 B
Go
24 lines
443 B
Go
|
package system
|
||
|
|
||
|
import (
|
||
|
log "github.com/sirupsen/logrus"
|
||
|
"testing"
|
||
|
)
|
||
|
|
||
|
func Test_sysInfo(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)
|
||
|
}
|