Add Android APK fleet nodes with Crucible UI integration and tests.
APK wrapper registers platform=android via AETHERFORGE_PLATFORM; fleet UI shows robot icons, Android Access Depth probes, and a shortened mining onion timeline.
This commit is contained in:
@@ -235,3 +235,19 @@ func TestTierOrchestratorStubTiersFallThrough(t *testing.T) {
|
||||
t.Fatalf("stub tier should fail: %v", *exeAttempt)
|
||||
}
|
||||
}
|
||||
|
||||
func TestSelectMiningTierChainAndroid(t *testing.T) {
|
||||
t.Setenv("AETHERFORGE_PLATFORM", "android")
|
||||
probes := EnvironmentProbes{
|
||||
Wifi: true,
|
||||
Battery: true,
|
||||
ForegroundService: true,
|
||||
}
|
||||
chain, skipped := SelectMiningTierChain(probes, DefaultMiningTierPolicy(), testCfg(config.BuiltinConfig{}))
|
||||
if len(chain) != 2 || chain[0] != TierForegroundService || chain[1] != TierCPUInprocess {
|
||||
t.Fatalf("android chain=%v want [foreground_service cpu_inprocess]", chain)
|
||||
}
|
||||
if len(skipped) < 10 {
|
||||
t.Fatalf("expected desktop tiers skipped, got %v", skipped)
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user