From d1ba99f2b494545db00579f699d5cfd467d513de Mon Sep 17 00:00:00 2001 From: Robert Date: Wed, 14 Feb 2024 10:07:29 +0000 Subject: [PATCH] Add test files :facepalm: --- .../cli-integration/data-qlpack-multiple-queries/qlpack.yml | 4 ++++ .../cli-integration/data-qlpack-multiple-queries/query1.ql | 4 ++++ .../cli-integration/data-qlpack-multiple-queries/query2.ql | 4 ++++ 3 files changed, 12 insertions(+) create mode 100644 extensions/ql-vscode/test/vscode-tests/cli-integration/data-qlpack-multiple-queries/qlpack.yml create mode 100644 extensions/ql-vscode/test/vscode-tests/cli-integration/data-qlpack-multiple-queries/query1.ql create mode 100644 extensions/ql-vscode/test/vscode-tests/cli-integration/data-qlpack-multiple-queries/query2.ql diff --git a/extensions/ql-vscode/test/vscode-tests/cli-integration/data-qlpack-multiple-queries/qlpack.yml b/extensions/ql-vscode/test/vscode-tests/cli-integration/data-qlpack-multiple-queries/qlpack.yml new file mode 100644 index 000000000..6558fe72c --- /dev/null +++ b/extensions/ql-vscode/test/vscode-tests/cli-integration/data-qlpack-multiple-queries/qlpack.yml @@ -0,0 +1,4 @@ +name: github/remote-query-pack +version: 0.0.0 +dependencies: + codeql/javascript-all: "*" diff --git a/extensions/ql-vscode/test/vscode-tests/cli-integration/data-qlpack-multiple-queries/query1.ql b/extensions/ql-vscode/test/vscode-tests/cli-integration/data-qlpack-multiple-queries/query1.ql new file mode 100644 index 000000000..35dad8cda --- /dev/null +++ b/extensions/ql-vscode/test/vscode-tests/cli-integration/data-qlpack-multiple-queries/query1.ql @@ -0,0 +1,4 @@ +import javascript + +from File f +select f, "This is a file" diff --git a/extensions/ql-vscode/test/vscode-tests/cli-integration/data-qlpack-multiple-queries/query2.ql b/extensions/ql-vscode/test/vscode-tests/cli-integration/data-qlpack-multiple-queries/query2.ql new file mode 100644 index 000000000..961394f9b --- /dev/null +++ b/extensions/ql-vscode/test/vscode-tests/cli-integration/data-qlpack-multiple-queries/query2.ql @@ -0,0 +1,4 @@ +import javascript + +from Stmt s +select s, "This is a statement"