This repository has been archived on 2024-04-10. You can view files and clone it, but you cannot make any changes to it's state, such as pushing and creating new issues, pull requests or comments.
elektron/rapl-daemon/util_test.go

14 lines
299 B
Go

package main
import "testing"
// TODO(rdelvalle): Add more thourough testing. Generate mock files
// that mimic the powercap subsystem and create test to operate on it.
func TestCap(t *testing.T) {
err := capNode("/sys/devices/virtual/powercap/intel-rapl", 95)
if err != nil {
t.Fail()
}
}