aboutsummaryrefslogtreecommitdiffstats
path: root/tests
Commit message (Collapse)AuthorAgeFilesLines
* Merge branch 1.17 into masterRichard Weickelt2020-07-2441-3/+472
|\ | | | | | | Change-Id: Ice408bd77aa9f6481960c4fdf7f345a1a39b9f80
| * baremetal: Pass 'one-object-asm-application' test for KEIL C166Denis Shienkov2020-07-242-0/+9
| | | | | | | | | | Change-Id: I8e5ffc2340135e53021d95c3079f6dc458dc1459 Reviewed-by: Ivan Komissarov <ABBAPOH@gmail.com>
| * baremetal: Pass 'one-object-asm-application' test for KEIL MCS251Denis Shienkov2020-07-232-0/+10
| | | | | | | | | | Change-Id: I2b6b4618e2ddf2cc58f4c2f6c9776a5d6fac9b9f Reviewed-by: Ivan Komissarov <ABBAPOH@gmail.com>
| * baremetal: Skip 'preinclude-headers' test for KEIL C251 and C166Denis Shienkov2020-07-231-1/+3
| | | | | | | | | | | | | | ... because this toolchains does not support the pre-include headers. Change-Id: I3a56389d9bdc7ca05a8e274caa9f01fb9fb52afc Reviewed-by: Ivan Komissarov <ABBAPOH@gmail.com>
| * baremetal: Pass 'one-object-asm-application' test for GCC XTENSADenis Shienkov2020-07-232-0/+13
| | | | | | | | | | Change-Id: Ic01a2720a9184daa80c83ed8d53809f6f50d9258 Reviewed-by: Ivan Komissarov <ABBAPOH@gmail.com>
| * baremetal: Pass 'one-object-asm-application' test for IAR AVRDenis Shienkov2020-07-232-0/+9
| | | | | | | | | | Change-Id: Ide33b5ad139ed18f45e9feff6093ae903d828ee7 Reviewed-by: Ivan Komissarov <ABBAPOH@gmail.com>
| * baremetal: Pass 'one-object-asm-application' test for IAR MSP430Denis Shienkov2020-07-232-0/+8
| | | | | | | | | | Change-Id: I7d0d6906c7b54e1c936e23f4860174f45d89d787 Reviewed-by: Ivan Komissarov <ABBAPOH@gmail.com>
| * baremetal: Pass 'one-object-asm-application' test for IAR STM8Denis Shienkov2020-07-234-0/+25
| | | | | | | | | | | | | | | | ... also the changes in the BareMetal{Application|StaticLibrary}.qbs files allows to pass all other IAR STM8 tests. Change-Id: Ic4e36e0e1a19863d2c9172a17e4bcfc5da7e3a34 Reviewed-by: Ivan Komissarov <ABBAPOH@gmail.com>
| * baremetal: Pass 'one-object-asm-application' test for IAR ARMDenis Shienkov2020-07-232-0/+17
| | | | | | | | | | Change-Id: Ie4dee42345d4ca1d3280b1b65155d0dc173beffd Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
| * Add support for Cap'n Proto for the c++ languageIvan Komissarov2020-07-2116-0/+245
| | | | | | | | | | | | | | | | | | | | | | Cap'n Proto is a 'cerialization protocol' similar to protobuf: https://capnproto.org/index.html This patch mainly focuses on the c++ support for the capnp protocol keeping in mind the possibility to add other languages later. Change-Id: Ib19a9df1f45f2787503197791ac597d06cc45e9d Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
| * baremetal: Pass 'one-object-asm-application' test for GCC MSP430Denis Shienkov2020-07-212-0/+16
| | | | | | | | | | Change-Id: Icad69d9f510d09f7e157ef410383f5d39e36f1a6 Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
| * baremetal: Pass 'one-object-asm-application' test for SDCC STM8Denis Shienkov2020-07-202-0/+9
| | | | | | | | | | Change-Id: Ifa011d1fe35870b0f5808833fa785259e9ba2cb4 Reviewed-by: Ivan Komissarov <ABBAPOH@gmail.com>
| * Tests: Fix linking of tests when using bundled QtScriptChristian Stenger2020-07-201-1/+0
| | | | | | | | | | | | Change-Id: Ifd57049c89df83fc5ca9a8cac35af5a16635b312 Reviewed-by: Joerg Bornemann <joerg.bornemann@qt.io> Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
| * baremetal: Skip 'preinclude-headers' test for KEIL MCS51 toolchainDenis Shienkov2020-07-162-1/+20
| | | | | | | | | | | | | | | | ... because this toolchain does not support the pre-include headers. Change-Id: I3b34a39da01500540cbaca62244104c8262875fc Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
| * baremetal: Don't pass cpp.driverFlags to KEIL assemblerDenis Shienkov2020-07-162-2/+4
| | | | | | | | | | | | | | | | | | ... because the cpp.driverFlags intended only for the compiler and the linker; the assembler required the cpp.assemblerFlags instead. Change-Id: Ie1cca820d54095fc1361f5b9b049adc57674b3fd Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
| * Fix loading optional transitive dependenciesIvan Komissarov2020-07-167-0/+37
| | | | | | | | | | | | | | | | | | | | If optional module B depends on an invalid module A (i.e. whos validate script throws an exception), module B should be not present as well. Fix that by remembering the initial value of the "required" property in the Depends item. Change-Id: Ia21587b3f5a8bd49c12b9f31b65e009fb2eeafb9 Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
| * Probes: Remove nameFilter from FrameworkProbeIvan Komissarov2020-07-162-0/+11
| | | | | | | | | | | | | | | | | | | | It is not possible to use functions as values for properties with the new JS engine. Remove nameFilter by allowing to have common nameSuffixes for different selectors. Change-Id: I24ae747f4d609c956285e77ee832c6e99304a622 Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
| * baremetal: Pass 'one-object-asm-application' test for GCC AVRDenis Shienkov2020-07-142-0/+8
| | | | | | | | | | Change-Id: I7f355bf7a366e58c68aea449f9afe08e63db9f4e Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
| * baremetal: Pass 'one-object-asm-application' test for GCC ARMDenis Shienkov2020-07-142-0/+8
| | | | | | | | | | Change-Id: I1cb87180484e17a2eee025fb1f4fada0b399128e Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
| * baremetal: Pass 'one-object-asm-application' test for KEIL ARMDenis Shienkov2020-07-104-3/+15
| | | | | | | | | | Change-Id: Id4e1c081fa8d6841fbad58532daee7d62ff80942 Reviewed-by: Ivan Komissarov <ABBAPOH@gmail.com>
| * baremetal: Pass 'one-object-asm-application' test for SDCC MCS51Denis Shienkov2020-07-102-0/+10
| | | | | | | | | | | | Change-Id: I2b26c60bd5e9c84c917b58cddf45f25461313c66 Reviewed-by: Ivan Komissarov <ABBAPOH@gmail.com> Reviewed-by: Denis Shienkov <denis.shienkov@gmail.com>
* | Replace QRegExp by QRegularExpressionChristian Stenger2020-07-234-20/+28
| | | | | | | | | | Change-Id: I6c86565b8464efd0b7aec61c12879d3b95a5871c Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
* | Switch to Qt 5.15.0 and drop CI support for MinGW on LinuxRichard Weickelt2020-07-201-2/+3
| | | | | | | | | | | | | | | | | | | | | | Cross-builds with MinGW on Linux are dropped mainly because of build issues and because MinGW support bloats the resulting Docker image. We have CI jobs running on Windows with MSVC and Clang-cl which should be sufficient. Change-Id: Iac4e0eaf1270844836697bebf52f9c056457caaf Reviewed-by: Richard Weickelt <richard@weickelt.de> Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
* | Fix wrong array iterationRichard Weickelt2020-07-131-1/+1
|/ | | | | | | | | | It is not recommended to use 'for in' loops to iterate over arrays because additional properties in Array.prototype would be iterated over as well. For unknown reasons this is not the case when using QtScript, but it would be a problem when running on QJSEngine. Change-Id: I4404c03a6277dae471a9beb162b539edb9ace426 Reviewed-by: Ivan Komissarov <ABBAPOH@gmail.com>
* baremetal: Pass 'one-object-asm-application' test for IAR MCS51Denis Shienkov2020-07-092-0/+10
| | | | | Change-Id: I4c0a63d9ba06aec32cdc138be5aeb0078e55658f Reviewed-by: Ivan Komissarov <ABBAPOH@gmail.com>
* baremetal: Return 0 in ASM main function for KEIL MCS51 toolchainDenis Shienkov2020-07-091-3/+4
| | | | | Change-Id: I18ade9e8382c539ba1a29268f7101e656793541f Reviewed-by: Ivan Komissarov <ABBAPOH@gmail.com>
* baremetal: Replace '.asm' extension with '.s' extensionDenis Shienkov2020-07-082-1/+1
| | | | | | | | | | | ... for an assembler source files in a tests. Reason is that the '*.s' extension is a more popular, besides, this extension also requires for the GCC compiler for a future tests. Change-Id: I0dd764f76e8f9731ee96db110831392616ccae44 Reviewed-by: Ivan Komissarov <ABBAPOH@gmail.com>
* baremetal: Add 'one-object-asm-application' test for KEIL MCS51Denis Shienkov2020-07-073-1/+47
| | | | | | | | | This commit adds an auto-test which compiles an application using one asm-source main module to check that an assembler does work correctly. Change-Id: I38d512f62bab2e96781405632822f81c13673064 Reviewed-by: Ivan Komissarov <ABBAPOH@gmail.com>
* Fix wrong variable scope in conanfile-probe testcaseRichard Weickelt2020-07-031-1/+1
| | | | | | | Although defining tf without var seems to work, it is wrong. Change-Id: I444395e79e722f6df58d7b82c751338104c0c840 Reviewed-by: Ivan Komissarov <ABBAPOH@gmail.com>
* baremetal: Don't use startsWith("xtensa") in testsDenis Shienkov2020-07-032-2/+2
| | | | | | | ... because it is better to use the direct comparison instead. Change-Id: Ie1b84b722beae3a263840ebbf9984f7061e71f07 Reviewed-by: Ivan Komissarov <ABBAPOH@gmail.com>
* baremetal: Allow to pass tests with GCC compiler for MSP430 architectureDenis Shienkov2020-07-022-0/+10
| | | | | | | | We need to specify an existing MCU type to make it possible to use an appropriate linker script for linking. Change-Id: I7fac9a4856448cafbb1365f67badf685f737e268 Reviewed-by: Ivan Komissarov <ABBAPOH@gmail.com>
* baremetal: Allow to pass tests with GCC compiler for XTENSA architectureDenis Shienkov2020-07-022-0/+10
| | | | | | | We need to exclude the system libraries from the linking. Change-Id: I9f1935a7aac8955302e0771193963feeba2368e3 Reviewed-by: Ivan Komissarov <ABBAPOH@gmail.com>
* baremetal: Allow to pass tests with GCC compiler for ARM architectureDenis Shienkov2020-07-022-0/+10
| | | | | | | We need to exclude the system libraries from the linking. Change-Id: I9a20cf8b979666831b6f7cc32c4e3e352fa1a861 Reviewed-by: Ivan Komissarov <ABBAPOH@gmail.com>
* baremetal: Implement cpp.prefixHeaders for IAR and KEIL toolchainsDenis Shienkov2020-06-295-0/+24
| | | | | | | | | | | Right now it is possible to use the cpp.prefixHeaders property for the KEIL ARM MDK and the IAR EW toolchains. Take into account that the IAR EW toolchain support only one preinclude file. Change-Id: I9e367825575409fa446f3b012a0e1e8d156643ef Reviewed-by: Ivan Komissarov <ABBAPOH@gmail.com>
* baremetal: Fix {c|cpp}LanguageVersion handling on KEIL ARM Clang toolchainDenis Shienkov2020-06-282-2/+18
| | | | | | | | We need to skip the 'undefined' language version returned from the Cpp.languageVersion() function. Change-Id: I3345c2fbdde8b50c8fb9035ec10ca21e0024e6d3 Reviewed-by: Ivan Komissarov <ABBAPOH@gmail.com>
* baremetal: Derive all applications and libraries from common productsDenis Shienkov2020-06-258-11/+36
| | | | | | | | | | | | | | | | | | | | | | | | | | | The problem is that for different architectures and different toolchains we need in a minimal set of a platform-specific flags and etc. Previously (e.g. for MCS51 architecture and IAR/KEIL/SDCC toolchains) we are not faced with this problem, because there by default we don't need to specify a platform-specific flags for a minimal test. But, for other platforms and compilers we need in this basic flags (e.g. for ARM architecture and KEIL toolchain, we need to set the CPU target flag, e.g. '--cpu cortex-m0'). So, it makes sense to derive all tested baremetal applications and libraries from the basic BareMetal{Application|StaticLibrary} products. In this case we can configure the desired flags once, using the QBS Properties item. Tested with the following architectures and toolchains: * MCS51 (KEIL, IAR, SDCC) * STM8 (SDCC) * ARM (KEIL) Change-Id: I484ed3abf78050fe2dd27e96e9442a3a03cecfa5 Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
* Android: Add support to generation of aab packageRaphaël Cotty2020-06-253-216/+395
| | | | | | | | | This patch adds the Android.sdk packageType property which sets the target application. By default (previous behavior) qbs generates an apk package. When set to aab, qbs generates instead an aab package Change-Id: Ic09776d08e2a2ecd68fb4c08881201a7a0a25240 Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
* baremetal: Add auto-test for 'static library' dependentiesDenis Shienkov2020-06-2510-0/+92
| | | | | | | | | | | | | This commit adds a blackbox auto-test which provides a project with a multiple static library products 'a-e' and an one application product. An application depends on the 'e' library, but this library also depends on other libraries 'a-d'. Tested for MCS51 architecture with IAR, KEIL, and SDCC toolchains. Change-Id: Ib79f4f7bed4ac0bf6f06d39705bb19bd4284f22d Reviewed-by: Christian Kandeler <christian.kandeler@qt.io> Reviewed-by: Ivan Komissarov <ABBAPOH@gmail.com>
* Add autotest for renaming a qbs project fileChristian Kandeler2020-06-224-0/+52
| | | | | | | | | | ... that is also a normal source file in a different product. Unfortunately, this does not trigger the behavior described in the linked bug report, but it can serve as a starting point. Task-number: QTCREATORBUG-24037 Change-Id: I78ffb7429b04db5f0eca45b9197ecb2b8bb31211 Reviewed-by: Ivan Komissarov <ABBAPOH@gmail.com>
* Add a test case for source files disappearing during the buildChristian Kandeler2020-06-225-0/+52
| | | | | Change-Id: I4585c054b575168a5a90ae0c5a417c2a7f0e39ed Reviewed-by: Ivan Komissarov <ABBAPOH@gmail.com>
* baremetal: Add auto-test for cpp.distributionIncludePaths propertyDenis Shienkov2020-06-176-0/+30
| | | | | | | | | | | This commit adds a blackbox auto-test which compiles an application using two include paths foo and bar. Tested for MCS51 architecture with IAR, KEIL, and SDCC toolchains. Change-Id: I0eb480ee700ee1d44df69bbcfe9d7d87681212d6 Reviewed-by: Ivan Komissarov <ABBAPOH@gmail.com>
* baremetal: Add auto-test for cpp.systemIncludePaths propertyDenis Shienkov2020-06-176-0/+30
| | | | | | | | | | | This commit adds a blackbox auto-test which compiles an application using two include paths foo and bar. Tested for MCS51 architecture with IAR, KEIL, and SDCC toolchains. Change-Id: If68be8f120a0ef760f6ca5b3674dfd49f2cf8a7f Reviewed-by: Ivan Komissarov <ABBAPOH@gmail.com>
* baremetal: Add auto-test for cpp.includePaths propertyDenis Shienkov2020-06-176-0/+31
| | | | | | | | | | | This commit adds a blackbox auto-test which compiles an application using two include paths foo and bar. Tested for MCS51 architecture with IAR, KEIL, and SDCC toolchains. Change-Id: I4d6114ac2d0b4d8afaf976d5752da8e08d6c73a7 Reviewed-by: Ivan Komissarov <ABBAPOH@gmail.com>
* baremetal: Long live "application" product type testDenis Shienkov2020-06-1611-0/+166
| | | | | | | | | | | | | | This commit adds a blackbox auto-test which compiles two applications: * first - is an application from the one object file * second - is an application from the two object files Tested for MCS51 architecture with IAR, KEIL, and SDCC toolchains. Change-Id: Ib33430a6d87d3cdda48861e688b233e182d96b51 Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
* Fix Qt 5.15 deprecation warningsChristian Kandeler2020-06-167-15/+25
| | | | | Change-Id: I1d6968de823c43e42ca53eb68972ba5e69dc29ed Reviewed-by: Ivan Komissarov <ABBAPOH@gmail.com>
* MSVC: Add missing handling for cpp.distributionIncludePaths propertyDenis Shienkov2020-06-155-0/+24
| | | | | | | | | This commit adds handling of cpp.distributionIncludePaths property, which were ignored at all on MSVC toolchain. Fixes: QBS-1572 Change-Id: I30b6697bee2b1140a56a04931dd5d91369ef86fc Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
* Android: Add option to use aapt2 instead of aapt in Android.sdk moduleRaphaël Cotty2020-06-041-30/+145
| | | | | | | | | | | aapt has been deprecated (https://developer.android.com/studio/command-line/aapt2) and replaced by aapt2. PropertyOption aaptFileName allows those value: "aapt" and "aapt2". Default value is set to "aapt" for the moment. Fixes: QBS-1562 Change-Id: I1970cafaa54a0e035c08ffe5f9967b712f5c5253 Reviewed-by: Denis Shienkov <denis.shienkov@gmail.com> Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
* TestBlackbox: Fix wrong indentationChristian Kandeler2020-05-291-1/+2
| | | | | Change-Id: Ieb50d47c722c52b3affa8bab6d43d14f16f36375 Reviewed-by: Ivan Komissarov <ABBAPOH@gmail.com>
* Fix TestBlackboxExamples for environments without QtChristian Kandeler2020-05-295-21/+26
| | | | | | | The same way as TestBlackboxQt does. Change-Id: Ic040eb3d4c0f5946ca24978090bf342121280260 Reviewed-by: Ivan Komissarov <ABBAPOH@gmail.com>
* Add blackbox examples testIvan Komissarov2020-05-287-0/+199
| | | | | | | | | | It is necessary to build examples with different profiles pretty much like it is done with other tests. Thus, build examples as a separate blackbox test. Change-Id: If4e910fb60a6d51e1a0c690e7a4ece4b17bd5b95 Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>