feat: add gated CH5 quiver support and unified regression runner
This commit is contained in:
@@ -445,6 +445,21 @@ int main(int argc, char** argv)
|
||||
CHECK(py("import net\nassert net.IsConnect(), 'disconnected in the game phase'"));
|
||||
|
||||
// Focused batch-pickup regression avoids unrelated legacy economy wire fixtures.
|
||||
if (server && std::getenv("MT_TEST_QUIVER")) {
|
||||
auto type=[] {auto* actor=CPythonCharacterManager::Instance().GetInstancePtr(FakeLoginServer::kMainVID);return actor?int(actor->GetArrowType()):-1;};
|
||||
CHECK(pump_until(8,[&] {return type()==9 || failed();}));
|
||||
CHECK(type()==9 && !failed());
|
||||
for (int expected:{6,0,9}) {
|
||||
CHECK(py("net.SendChatPacket('/quiver_test "+std::to_string(expected)+"')"));
|
||||
CHECK(pump_until(5,[&] {return type()==expected || failed();}));
|
||||
CHECK(type()==expected && !failed());
|
||||
}
|
||||
CHECK(py("import app\napp.Exit()"));
|
||||
pump_until(2,[] {return !PythonBoot::IsAppLooping();});
|
||||
PythonBoot::Stop();
|
||||
std::printf("quiver negotiated packet fixture: %s\n",g_failures?"FAILED":"PASS");
|
||||
return g_failures?1:0;
|
||||
}
|
||||
if (server && std::getenv("MT_TEST_AUTOHUNT_BATCH")) {
|
||||
CHECK(CPythonPlayer::Instance().NEW_GetMainActorPtr());
|
||||
CHECK(CPythonCharacterManager::Instance().GetInstancePtr(FakeLoginServer::kMobVID));
|
||||
|
||||
Reference in New Issue
Block a user