From: Nick Porter Date: Wed, 18 Jan 2023 10:53:17 +0000 (+0000) Subject: Add unit tests launcher to launch.json X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=35f5b848c563ae0f60afe23a1bb50636217e41a8;p=thirdparty%2Ffreeradius-server.git Add unit tests launcher to launch.json --- diff --git a/.vscode/launch.json b/.vscode/launch.json index 6fe0706f9f9..11c35ca0a89 100644 --- a/.vscode/launch.json +++ b/.vscode/launch.json @@ -128,6 +128,32 @@ "text": "set solib-search-path ${workspaceFolder}" } ] + }, + { + "type": "cppdbg", + "request": "launch", + "name": "Unit Test (gdb)", + "program": "${workspaceFolder}/build/bin/local/unit_test_attribute", + "cwd": "${workspaceFolder}", + "args": [ + "-D", + "share/dictionary", + "-d", + "src/tests/unit", + "src/tests/unit/${input:unittest}.txt", + "-xx" + ], + "environment": [ + { "name": "FR_LIBRARY_PATH", "value": "${workspaceFolder}/build/lib/local/.libs" }, + { "name": "LD_LIBRARY_PATH", "value": "${workspaceFolder}/build/lib/local/.libs" }, + ], + "MIMode": "gdb", + "setupCommands": [ + { + "description": "Set solib", + "text": "set solib-search-path ${workspaceFolder}" + } + ] } ], "inputs": [ @@ -150,6 +176,11 @@ "id": "moduletest", "type": "promptString", "description": "Test to run" + }, + { + "id": "unittest", + "type": "promptString", + "description": "Test to run" } ] }