From 3eced239e239d44ec0c16a2472a52e0cd20ba19c Mon Sep 17 00:00:00 2001 From: qth2hi Date: Fri, 1 Nov 2024 18:51:32 +0100 Subject: [PATCH] Added some JSONP self test files (for tests of dynamic import) --- .../AA/BB/CC/DD/imported.DD.jsonp | 17 ++++++++++++++++ .../AA/BB/CC/imported.CC.R.D.jsonp | 18 +++++++++++++++++ .../AA/BB/CC/imported.CC.R.F.jsonp | 18 +++++++++++++++++ .../AA/BB/CC/imported.CC.jsonp | 17 ++++++++++++++++ .../AA/BB/imported.BB.R.D.jsonp | 18 +++++++++++++++++ .../AA/BB/imported.BB.R.F.jsonp | 18 +++++++++++++++++ .../dynamic_imports/AA/BB/imported.BB.jsonp | 17 ++++++++++++++++ .../dynamic_imports/AA/imported.AA.R.D.jsonp | 18 +++++++++++++++++ .../dynamic_imports/AA/imported.AA.R.F.jsonp | 18 +++++++++++++++++ .../dynamic_imports/AA/imported.AA.jsonp | 17 ++++++++++++++++ .../dynamic_imports/dynamic_import.R.D.jsonp | 19 ++++++++++++++++++ .../dynamic_imports/dynamic_import.R.F.jsonp | 18 +++++++++++++++++ .../dynamic_imports/dynamic_import.jsonp | 17 ++++++++++++++++ .../global_defs/global_defs_1.jsonp | 20 +++++++++++++++++++ .../global_defs/global_defs_2.jsonp | 18 +++++++++++++++++ 15 files changed, 268 insertions(+) create mode 100644 test/testfiles/dynamic_imports/AA/BB/CC/DD/imported.DD.jsonp create mode 100644 test/testfiles/dynamic_imports/AA/BB/CC/imported.CC.R.D.jsonp create mode 100644 test/testfiles/dynamic_imports/AA/BB/CC/imported.CC.R.F.jsonp create mode 100644 test/testfiles/dynamic_imports/AA/BB/CC/imported.CC.jsonp create mode 100644 test/testfiles/dynamic_imports/AA/BB/imported.BB.R.D.jsonp create mode 100644 test/testfiles/dynamic_imports/AA/BB/imported.BB.R.F.jsonp create mode 100644 test/testfiles/dynamic_imports/AA/BB/imported.BB.jsonp create mode 100644 test/testfiles/dynamic_imports/AA/imported.AA.R.D.jsonp create mode 100644 test/testfiles/dynamic_imports/AA/imported.AA.R.F.jsonp create mode 100644 test/testfiles/dynamic_imports/AA/imported.AA.jsonp create mode 100644 test/testfiles/dynamic_imports/dynamic_import.R.D.jsonp create mode 100644 test/testfiles/dynamic_imports/dynamic_import.R.F.jsonp create mode 100644 test/testfiles/dynamic_imports/dynamic_import.jsonp create mode 100644 test/testfiles/dynamic_imports/global_defs/global_defs_1.jsonp create mode 100644 test/testfiles/dynamic_imports/global_defs/global_defs_2.jsonp diff --git a/test/testfiles/dynamic_imports/AA/BB/CC/DD/imported.DD.jsonp b/test/testfiles/dynamic_imports/AA/BB/CC/DD/imported.DD.jsonp new file mode 100644 index 00000000..8d0b47e5 --- /dev/null +++ b/test/testfiles/dynamic_imports/AA/BB/CC/DD/imported.DD.jsonp @@ -0,0 +1,17 @@ +// Copyright 2020-2024 Robert Bosch GmbH +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +//************************************************************************** +{ + "level" : "DD" +} diff --git a/test/testfiles/dynamic_imports/AA/BB/CC/imported.CC.R.D.jsonp b/test/testfiles/dynamic_imports/AA/BB/CC/imported.CC.R.D.jsonp new file mode 100644 index 00000000..83c82691 --- /dev/null +++ b/test/testfiles/dynamic_imports/AA/BB/CC/imported.CC.R.D.jsonp @@ -0,0 +1,18 @@ +// Copyright 2020-2024 Robert Bosch GmbH +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +//************************************************************************** +{ + "level" : "CC", + "[import]" : "./${DD}/imported.${DD}.jsonp" +} diff --git a/test/testfiles/dynamic_imports/AA/BB/CC/imported.CC.R.F.jsonp b/test/testfiles/dynamic_imports/AA/BB/CC/imported.CC.R.F.jsonp new file mode 100644 index 00000000..2a653876 --- /dev/null +++ b/test/testfiles/dynamic_imports/AA/BB/CC/imported.CC.R.F.jsonp @@ -0,0 +1,18 @@ +// Copyright 2020-2024 Robert Bosch GmbH +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +//************************************************************************** +{ + "level" : "CC", + "[import]" : "./DD/imported.DD.jsonp" +} diff --git a/test/testfiles/dynamic_imports/AA/BB/CC/imported.CC.jsonp b/test/testfiles/dynamic_imports/AA/BB/CC/imported.CC.jsonp new file mode 100644 index 00000000..7e335b9d --- /dev/null +++ b/test/testfiles/dynamic_imports/AA/BB/CC/imported.CC.jsonp @@ -0,0 +1,17 @@ +// Copyright 2020-2024 Robert Bosch GmbH +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +//************************************************************************** +{ + "level" : "CC" +} diff --git a/test/testfiles/dynamic_imports/AA/BB/imported.BB.R.D.jsonp b/test/testfiles/dynamic_imports/AA/BB/imported.BB.R.D.jsonp new file mode 100644 index 00000000..2e7c1487 --- /dev/null +++ b/test/testfiles/dynamic_imports/AA/BB/imported.BB.R.D.jsonp @@ -0,0 +1,18 @@ +// Copyright 2020-2024 Robert Bosch GmbH +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +//************************************************************************** +{ + "level" : "BB", + "[import]" : "./${CC}/imported.${CC}.R.D.jsonp" +} diff --git a/test/testfiles/dynamic_imports/AA/BB/imported.BB.R.F.jsonp b/test/testfiles/dynamic_imports/AA/BB/imported.BB.R.F.jsonp new file mode 100644 index 00000000..a4454d40 --- /dev/null +++ b/test/testfiles/dynamic_imports/AA/BB/imported.BB.R.F.jsonp @@ -0,0 +1,18 @@ +// Copyright 2020-2024 Robert Bosch GmbH +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +//************************************************************************** +{ + "level" : "BB", + "[import]" : "./CC/imported.CC.R.F.jsonp" +} diff --git a/test/testfiles/dynamic_imports/AA/BB/imported.BB.jsonp b/test/testfiles/dynamic_imports/AA/BB/imported.BB.jsonp new file mode 100644 index 00000000..17aa5331 --- /dev/null +++ b/test/testfiles/dynamic_imports/AA/BB/imported.BB.jsonp @@ -0,0 +1,17 @@ +// Copyright 2020-2024 Robert Bosch GmbH +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +//************************************************************************** +{ + "level" : "BB" +} diff --git a/test/testfiles/dynamic_imports/AA/imported.AA.R.D.jsonp b/test/testfiles/dynamic_imports/AA/imported.AA.R.D.jsonp new file mode 100644 index 00000000..33f2a4d4 --- /dev/null +++ b/test/testfiles/dynamic_imports/AA/imported.AA.R.D.jsonp @@ -0,0 +1,18 @@ +// Copyright 2020-2024 Robert Bosch GmbH +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +//************************************************************************** +{ + "level" : "AA", + "[import]" : "./${BB}/imported.${BB}.R.D.jsonp" +} diff --git a/test/testfiles/dynamic_imports/AA/imported.AA.R.F.jsonp b/test/testfiles/dynamic_imports/AA/imported.AA.R.F.jsonp new file mode 100644 index 00000000..438669b6 --- /dev/null +++ b/test/testfiles/dynamic_imports/AA/imported.AA.R.F.jsonp @@ -0,0 +1,18 @@ +// Copyright 2020-2024 Robert Bosch GmbH +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +//************************************************************************** +{ + "level" : "AA", + "[import]" : "./BB/imported.BB.R.F.jsonp" +} diff --git a/test/testfiles/dynamic_imports/AA/imported.AA.jsonp b/test/testfiles/dynamic_imports/AA/imported.AA.jsonp new file mode 100644 index 00000000..b658961a --- /dev/null +++ b/test/testfiles/dynamic_imports/AA/imported.AA.jsonp @@ -0,0 +1,17 @@ +// Copyright 2020-2024 Robert Bosch GmbH +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +//************************************************************************** +{ + "level" : "AA" +} diff --git a/test/testfiles/dynamic_imports/dynamic_import.R.D.jsonp b/test/testfiles/dynamic_imports/dynamic_import.R.D.jsonp new file mode 100644 index 00000000..3f428d93 --- /dev/null +++ b/test/testfiles/dynamic_imports/dynamic_import.R.D.jsonp @@ -0,0 +1,19 @@ +// Copyright 2020-2024 Robert Bosch GmbH +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +//************************************************************************** +{ + "[import]" : "./global_defs/global_defs_1.jsonp", + "level" : "dynamic_imports", + "[import]" : "./${AA}/imported.${AA}.R.D.jsonp" +} diff --git a/test/testfiles/dynamic_imports/dynamic_import.R.F.jsonp b/test/testfiles/dynamic_imports/dynamic_import.R.F.jsonp new file mode 100644 index 00000000..dc241921 --- /dev/null +++ b/test/testfiles/dynamic_imports/dynamic_import.R.F.jsonp @@ -0,0 +1,18 @@ +// Copyright 2020-2024 Robert Bosch GmbH +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +//************************************************************************** +{ + "level" : "dynamic_imports", + "[import]" : "./AA/imported.AA.R.F.jsonp" +} diff --git a/test/testfiles/dynamic_imports/dynamic_import.jsonp b/test/testfiles/dynamic_imports/dynamic_import.jsonp new file mode 100644 index 00000000..4b9aea10 --- /dev/null +++ b/test/testfiles/dynamic_imports/dynamic_import.jsonp @@ -0,0 +1,17 @@ +// Copyright 2020-2024 Robert Bosch GmbH +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +//************************************************************************** +{ + "level" : "dynamic_imports" +} diff --git a/test/testfiles/dynamic_imports/global_defs/global_defs_1.jsonp b/test/testfiles/dynamic_imports/global_defs/global_defs_1.jsonp new file mode 100644 index 00000000..77b4ba00 --- /dev/null +++ b/test/testfiles/dynamic_imports/global_defs/global_defs_1.jsonp @@ -0,0 +1,20 @@ +// Copyright 2020-2024 Robert Bosch GmbH +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +//************************************************************************** +{ + "AA" : "AA", + "BB" : "BB", + "CC" : "CC", + "DD" : "DD" +} diff --git a/test/testfiles/dynamic_imports/global_defs/global_defs_2.jsonp b/test/testfiles/dynamic_imports/global_defs/global_defs_2.jsonp new file mode 100644 index 00000000..5f67a83d --- /dev/null +++ b/test/testfiles/dynamic_imports/global_defs/global_defs_2.jsonp @@ -0,0 +1,18 @@ +// Copyright 2020-2024 Robert Bosch GmbH +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +//************************************************************************** +{ + "dictDirs" : {"AA" : "AA", "BB" : "BB", "CC" : "CC", "DD" : "DD"}, + "listDirs" : ["AA", "BB","CC","DD"] +}