From 8218f801543d3a965af9cf2ef8b7a3392e4224e9 Mon Sep 17 00:00:00 2001 From: Michael Nebel Date: Wed, 13 Dec 2023 09:25:03 +0100 Subject: [PATCH] C#: Base all telemetry tests on stubs. --- csharp/ql/test/query-tests/Telemetry/LibraryUsage/options | 2 ++ .../test/query-tests/Telemetry/SupportedExternalApis/options | 3 ++- .../test/query-tests/Telemetry/SupportedExternalSinks/options | 3 ++- .../query-tests/Telemetry/SupportedExternalSources/options | 2 ++ 4 files changed, 8 insertions(+), 2 deletions(-) create mode 100644 csharp/ql/test/query-tests/Telemetry/LibraryUsage/options create mode 100644 csharp/ql/test/query-tests/Telemetry/SupportedExternalSources/options diff --git a/csharp/ql/test/query-tests/Telemetry/LibraryUsage/options b/csharp/ql/test/query-tests/Telemetry/LibraryUsage/options new file mode 100644 index 00000000000..75c39b4541b --- /dev/null +++ b/csharp/ql/test/query-tests/Telemetry/LibraryUsage/options @@ -0,0 +1,2 @@ +semmle-extractor-options: /nostdlib /noconfig +semmle-extractor-options: --load-sources-from-project:${testdir}/../../../resources/stubs/_frameworks/Microsoft.NETCore.App/Microsoft.NETCore.App.csproj diff --git a/csharp/ql/test/query-tests/Telemetry/SupportedExternalApis/options b/csharp/ql/test/query-tests/Telemetry/SupportedExternalApis/options index 9bbedebd7a2..96b0b028bdd 100644 --- a/csharp/ql/test/query-tests/Telemetry/SupportedExternalApis/options +++ b/csharp/ql/test/query-tests/Telemetry/SupportedExternalApis/options @@ -1,2 +1,3 @@ -semmle-extractor-options: /r:System.Collections.Specialized.dll +semmle-extractor-options: /nostdlib /noconfig +semmle-extractor-options: --load-sources-from-project:${testdir}/../../../resources/stubs/_frameworks/Microsoft.NETCore.App/Microsoft.NETCore.App.csproj semmle-extractor-options: ${testdir}/../../../resources/stubs/System.Web.cs diff --git a/csharp/ql/test/query-tests/Telemetry/SupportedExternalSinks/options b/csharp/ql/test/query-tests/Telemetry/SupportedExternalSinks/options index 9bbedebd7a2..96b0b028bdd 100644 --- a/csharp/ql/test/query-tests/Telemetry/SupportedExternalSinks/options +++ b/csharp/ql/test/query-tests/Telemetry/SupportedExternalSinks/options @@ -1,2 +1,3 @@ -semmle-extractor-options: /r:System.Collections.Specialized.dll +semmle-extractor-options: /nostdlib /noconfig +semmle-extractor-options: --load-sources-from-project:${testdir}/../../../resources/stubs/_frameworks/Microsoft.NETCore.App/Microsoft.NETCore.App.csproj semmle-extractor-options: ${testdir}/../../../resources/stubs/System.Web.cs diff --git a/csharp/ql/test/query-tests/Telemetry/SupportedExternalSources/options b/csharp/ql/test/query-tests/Telemetry/SupportedExternalSources/options new file mode 100644 index 00000000000..75c39b4541b --- /dev/null +++ b/csharp/ql/test/query-tests/Telemetry/SupportedExternalSources/options @@ -0,0 +1,2 @@ +semmle-extractor-options: /nostdlib /noconfig +semmle-extractor-options: --load-sources-from-project:${testdir}/../../../resources/stubs/_frameworks/Microsoft.NETCore.App/Microsoft.NETCore.App.csproj