From e577fb68bd38811b6901040d410701913d0951f5 Mon Sep 17 00:00:00 2001 From: Michael Nebel Date: Thu, 14 Sep 2023 14:59:49 +0200 Subject: [PATCH] C#: Add integration test for dotnet dotnet. --- csharp/ql/integration-tests/all-platforms/dotnet_run/test.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/csharp/ql/integration-tests/all-platforms/dotnet_run/test.py b/csharp/ql/integration-tests/all-platforms/dotnet_run/test.py index 65e8309dac0..ef306b1842b 100644 --- a/csharp/ql/integration-tests/all-platforms/dotnet_run/test.py +++ b/csharp/ql/integration-tests/all-platforms/dotnet_run/test.py @@ -58,3 +58,8 @@ check_diagnostics(test_db="test8-db") s = run_codeql_database_create_stdout(['dotnet clean', 'rm -rf test8-db', 'dotnet run "hello world part1" part2'], "test9-db") check_build_out("hello world part1, part2", s) check_diagnostics(test_db="test9-db") + +# two arguments, no '--' (second argument quoted) and using dotnet to execute dotnet +s = run_codeql_database_create_stdout(['dotnet clean', 'rm -rf test9-db', 'dotnet dotnet run part1 "hello world part2"'], "test10-db") +check_build_out("part1, hello world part2", s) +check_diagnostics(test_db="test10-db")