From: Nick Porter Date: Mon, 1 Aug 2022 09:37:53 +0000 (+0100) Subject: Add module tests to launch.json X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=a14f684019982445f2be24ef78ad408a109a5636;p=thirdparty%2Ffreeradius-server.git Add module tests to launch.json --- diff --git a/.vscode/launch.json b/.vscode/launch.json index 1cbb1f8b8a2..cfc3a396e31 100644 --- a/.vscode/launch.json +++ b/.vscode/launch.json @@ -78,6 +78,32 @@ {"name": "FR_LIBRARY_PATH", "value": "${workspaceFolder}/build/lib/local/.libs" }, {"name": "LD_LIBRARY_PATH", "value": "${workspaceFolder}/build/lib/local/.libs" } ] + }, + { + "type": "cppdbg", + "request": "launch", + "name": "Module Test (gdb)", + "program": "${workspaceFolder}/build/bin/local/unit_test_module", + "cwd": "${workspaceFolder}", + "args": [ + "-D", + "share/dictionary", + "-d", + "src/tests/modules/", + "-i", + "build/tests/modules/${input:module}/${input:moduletest}.attrs", + "-f", + "build/tests/modules/${input:module}/${input:moduletest}.attrs", + "-r", + "build/tests/modules/${input:module}/${input:moduletest}", + "-xx" + ], + "environment": [ + { "name": "FR_LIBRARY_PATH", "value": "${workspaceFolder}/build/lib/local/.libs" }, + { "name": "LD_LIBRARY_PATH", "value": "${workspaceFolder}/build/lib/local/.libs" }, + { "name": "MODULE_TEST_DIR", "value": "src/tests/modules/${input:module}/"}, + { "name": "MODULE_TEST_UNLANG", "value": "src/tests/modules/${input:module}/${input:moduletest}.unlang" } + ], } ], "inputs": [ @@ -90,6 +116,16 @@ "id": "bintest", "type": "promptString", "description": "Bin test to run" + }, + { + "id": "module", + "type": "promptString", + "description": "Module to test" + }, + { + "id": "moduletest", + "type": "promptString", + "description": "Test to run" } ] }