Repository navigation
DReyeVR: 兼容 setup.bat -l/-p 启动打包路径并将自测接入 Check.bat - #3744
Open
lnr095-arch wants to merge 2 commits into
Open
lnr095-arch wants to merge 2 commits into
lnr095-arch wants to merge 2 commits into
Conversation
This was referenced Nov 15, 2026
Member
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.

背景
跟进 #3734 review 意见,使驾驶实验启动器、手部姿态工具和 VR 自动化测试脚本原生适配仓库统一的
setup.bat -l(启动编辑器)与setup.bat -p(打包发行)工作流,并将相关检查接入make check.vr(Util/BuildTools/Check.bat --vr)。主要改动
自动识别
setup.bat -l引擎目录 (Build\engine)StartDrivingStudy.cmd、StartDrivingStudy.ps1、StartPimaxVR.ps1、Util/Tests/RunPimaxTests.ps1:-UE4Root,且环境变量UE4_ROOT为空或指向无效目录(例如 CI 环境变量中的残留路径C:\workspace\UnrealEngine)时,优先检查<repo>\Build\engine,再扫描同级引擎目录。StartDrivingStudy.cmd使用 64 位 PowerShell,转发命令行参数%*,且仅在无参数双击出错时执行pause。Util/Tests/RunPimaxTests.ps1新增可选-ProjectPath参数并校验.uproject存在性。适配
setup.bat -p基础打包产物Util/BuildTools/Package.bat:在打包阶段将Util/HandPose/README.md与Util/HandPose/*.py复制到WindowsNoEditor\Util\HandPose\。StartDrivingStudy.ps1 -ValidateOnly:按Content\Carla\Maps磁盘实际存在的.umap文件校验地图列表,不再因基础打包版未包含AdditionalMaps(如Town12\Town12.umap)而误报失败。接入统一测试入口与补充用例
Util/Tests/TestPimaxLauncher.ps1:新增setupBatLayout测试用例,在隔离临时目录构造Build\engine布局并设置失效的UE4_ROOT,验证未传-PackageRoot/-UE4Root时的自动识别与命令行参数组装。Util/BuildTools/Check.bat:在VR_TESTS分支中(全部使用延迟扩展!errorlevel!)校验打包产物的启动器与Util\HandPose文件、运行TestPimaxLauncher.ps1、源码目录与打包目录StartDrivingStudy.ps1 -ValidateOnly、py_compile语法检查,并在释放:3654端口且存在UE4Editor-CarlaUE4.dll时运行 headlessRunPimaxTests.ps1。Docs/driving_study.md:补充setup.bat -l/setup.bat -p与make check.vr说明。验证情况
Util/Tests/TestPimaxLauncher.ps1:14/14 全部通过(含新增setupBatLayout)。StartDrivingStudy.cmd -ValidateOnly(模拟失效UE4_ROOT):通过。setup.bat -p基础打包目录(含Town02.umap、不含Town12)执行StartDrivingStudy.cmd -ValidateOnly:通过。setup.bat -l(Build\engine)执行StartDrivingStudy.cmd -ValidateOnly与RunPimaxTests.ps1路径发现:通过。Util/HandPose/record_hands.py与replay_arms.py:py_compile与 Python 3.7 AST 解析通过。Util/Tests/RunPimaxTests.ps1(对本机已编译的H:\hutb-dev\UE4-hutb+H:\hutb-dev\hutb\Unreal\CarlaUE4\CarlaUE4.uproject运行HUTB自动化测试):19/19 通过(0 失败,0 跳过)。