functionnal test: initial commit for tests
[src/xds/xds-server.git] / .vscode / launch.json
index 5583251..c12c80c 100644 (file)
@@ -1,6 +1,7 @@
 {
     "version": "0.2.0",
-    "configurations": [{
+    "configurations": [
+        {
             "name": "XDS-Server",
             "type": "go",
             "request": "launch",
             "host": "127.0.0.1",
             "program": "${workspaceRoot}",
             "env": {
-                "GOPATH": "${workspaceRoot}/../../../..:${env:GOPATH}",
-                "ROOT_DIR": "${workspaceRoot}/../../../.."
+                "GOPATH": "${workspaceRoot}/../../../../../..:${env:GOPATH}",
             },
-            "args": ["-log", "debug", "-c", "config.json.in"],
+            "args": ["-log", "debug"],
+            "showLog": false
+        },
+        {
+            "name": "XDS-Server-Test",
+            "type": "go",
+            "request": "launch",
+            "mode": "test",
+            "program": "${workspaceRoot}/test",
+            "env": {
+                "GOPATH": "${workspaceRoot}/../../../../../..:${env:GOPATH}",
+            },
+            "args": ["-test.v", "-test.run", ".*"],
             "showLog": false
         },
         {
             "host": "127.0.0.1",
             "program": "${workspaceRoot}",
             "env": {
-                "GOPATH": "${workspaceRoot}/../../../..:${env:GOPATH}",
-                "ROOT_DIR": "${workspaceRoot}/../../../.."
+                "GOPATH": "${workspaceRoot}/../../../../../..:${env:GOPATH}",
+                "XDS_LOG_SILLY": "0"
             },
             "args": ["-log", "debug", "-c", "__config_local_dev.json"],
             "showLog": false
+        },
+        {
+            "name": "Script SDK db-dump",
+            "type": "python",
+            "request": "launch",
+            "stopOnEntry": true,
+            "pythonPath": "${config:python.pythonPath}",
+            "program": "${workspaceFolder}/scripts/sdks/agl/db-dump",
+            "args": [
+                "-debug"
+            ],
+            "cwd": "${workspaceFolder}",
+            "env": {},
+            "envFile": "${workspaceFolder}/.env",
+            "debugOptions": [
+                "RedirectOutput"
+            ]
         }
     ]
 }