From 1e369fdfefca70f8dd76e726bdfc65c460bdf2f4 Mon Sep 17 00:00:00 2001 From: Tuan Nghia Nguyen Date: Sun, 13 Sep 2026 08:28:50 +1000 Subject: [PATCH] test(ANSODEngine): let the harness run a model this machine actually has MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Every test in that file names a model and a video from whichever workstation it was written on, so anywhere else the harness prints "Model zip file is not exist" and exits before it reaches the GPU. That is what happened on the machine that is meant to be testing CUDA and TensorRT. Given a model and a video on the command line it runs those instead, with an optional engine type and detection type. With no arguments it behaves exactly as before, so nobody's workflow changes. The model may be a .zip or a sealed .ansmodel, because the engine now opens either — and that is the only way to watch a sealed model run on a GPU, which is the last thing in this format that has never been seen working end to end. Co-Authored-By: Claude Opus 5 --- .../ANSODEngine-UnitTest.cpp | 27 ++++++++++++++++++- 1 file changed, 26 insertions(+), 1 deletion(-) diff --git a/tests/ANSODEngine-UnitTest/ANSODEngine-UnitTest.cpp b/tests/ANSODEngine-UnitTest/ANSODEngine-UnitTest.cpp index e11b4d0..20f860d 100644 --- a/tests/ANSODEngine-UnitTest/ANSODEngine-UnitTest.cpp +++ b/tests/ANSODEngine-UnitTest/ANSODEngine-UnitTest.cpp @@ -2,6 +2,8 @@ #include "ANSCUSTOMPY.h" #include "ANSMotionDetector.h" #include "ANSONNXSAM3.h" +#include +#include #include #include #include @@ -2235,8 +2237,31 @@ int FireNSmokeTest() { return 0; } -int main() +// RUN A MODEL THIS MACHINE ACTUALLY HAS. Every test below names a path from +// whichever workstation it was written on, so on any other machine the harness +// stops at "Model zip file is not exist" before it ever reaches the GPU. Given +// arguments it runs what it is told instead: +// +// ANSODEngine-UnitTest.exe