@@ -174,8 +174,9 @@ jobs:
174174 - name : Test MCP server startup
175175 run : |
176176 source /opt/openfoam${{ matrix.openfoam_version }}/etc/bashrc
177- timeout 10s ./build/openfoam-mcp-server --help || true
178- timeout 10s ./build/openfoam-mcp-server --version || true
177+ # Test basic JSON-RPC functionality
178+ echo '{"jsonrpc":"2.0","id":1,"method":"tools/list","params":{}}' > test_input.json
179+ timeout 10s ./build/openfoam-mcp-server < test_input.json || true
179180
180181 - name : Upload build artifacts
181182 uses : actions/upload-artifact@v3
@@ -207,7 +208,9 @@ jobs:
207208 wget -O - https://dl.openfoam.org/gpg.key | sudo apt-key add -
208209 sudo add-apt-repository http://dl.openfoam.org/ubuntu
209210 sudo apt-get update
210- sudo apt-get install -y openfoam12
211+ sudo apt-get install -y openfoam12 python3-pip cmake ninja-build \
212+ build-essential nlohmann-json3-dev libboost-all-dev libsqlite3-dev
213+ pip3 install psutil
211214
212215 - name : Download build artifacts
213216 uses : actions/download-artifact@v3
@@ -218,20 +221,20 @@ jobs:
218221 - name : Make executable
219222 run : chmod +x build/openfoam-mcp-server
220223
221- - name : Run pipe flow validation
224+ - name : Build MCP server for testing
222225 run : |
223226 source /opt/openfoam12/etc/bashrc
224- python3 tests/validation/pipe_flow_validation.py
227+ cmake -B build -G Ninja -DCMAKE_BUILD_TYPE=Release -DCMAKE_CXX_STANDARD=20
228+ cmake --build build --parallel $(nproc)
225229
226- - name : Run heat transfer validation
230+ - name : Run unit tests
227231 run : |
228- source /opt/openfoam12/etc/bashrc
229- python3 tests/validation/heat_transfer_validation.py
232+ python3 tests/unit/basic_tests.py
230233
231- - name : Run external flow validation
234+ - name : Run comprehensive validation tests
232235 run : |
233236 source /opt/openfoam12/etc/bashrc
234- python3 tests/validation/external_flow_validation .py
237+ python3 tests/validation/run_all_tests .py
235238
236239 - name : Generate validation report
237240 run : |
@@ -263,7 +266,8 @@ jobs:
263266 - name : Setup high-performance environment
264267 run : |
265268 sudo apt-get update
266- sudo apt-get install -y openfoam12 time valgrind
269+ sudo apt-get install -y openfoam12 time valgrind python3-pip
270+ pip3 install psutil
267271
268272 - name : Download build artifacts
269273 uses : actions/download-artifact@v3
@@ -277,20 +281,22 @@ jobs:
277281 - name : Run memory profiling
278282 run : |
279283 source /opt/openfoam12/etc/bashrc
280- valgrind --tool=memcheck --leak-check=full \
281- ./build/openfoam-mcp-server --benchmark-mode 2>&1 | tee memory_profile.log
284+ # Create a simple test input for memory profiling
285+ echo '{"jsonrpc":"2.0","id":1,"method":"tools/list","params":{}}' > test_input.json
286+ timeout 30s valgrind --tool=memcheck --leak-check=full \
287+ ./build/openfoam-mcp-server < test_input.json 2>&1 | tee memory_profile.log || true
282288
283289 - name : Run performance benchmarks
284290 run : |
285291 source /opt/openfoam12/etc/bashrc
286- python3 tests/benchmarks/run_benchmarks .py
292+ python3 tests/performance/benchmark_tests .py
287293
288294 - name : Upload performance results
289295 uses : actions/upload-artifact@v3
290296 with :
291297 name : performance-results
292298 path : |
293- tests/benchmarks /results/
299+ tests/performance /results/
294300 memory_profile.log
295301 retention-days : 7
296302
@@ -322,8 +328,9 @@ jobs:
322328
323329 - name : Test container startup
324330 run : |
325- docker run --rm openfoam-mcp-server:test --version
326- docker run --rm openfoam-mcp-server:test --help
331+ # Test basic JSON-RPC functionality in container
332+ echo '{"jsonrpc":"2.0","id":1,"method":"tools/list","params":{}}' > test_input.json
333+ timeout 10s docker run --rm -i openfoam-mcp-server:test < test_input.json || true
327334
328335 - name : Test MCP functionality in container
329336 run : |
@@ -357,7 +364,8 @@ jobs:
357364 - name : Setup OpenFOAM
358365 run : |
359366 sudo apt-get update
360- sudo apt-get install -y openfoam12
367+ sudo apt-get install -y openfoam12 python3-pip
368+ pip3 install psutil
361369
362370 - name : Download build artifacts
363371 uses : actions/download-artifact@v3
@@ -371,7 +379,7 @@ jobs:
371379 - name : Test MCP protocol compliance
372380 run : |
373381 source /opt/openfoam12/etc/bashrc
374- python3 tests/integration/test_mcp_protocol .py
382+ python3 tests/integration/mcp_protocol_test .py
375383
376384 - name : Test tool registration
377385 run : |
0 commit comments