summaryrefslogtreecommitdiff
path: root/tests/auto
diff options
context:
space:
mode:
authorDenis Shienkov <denis.shienkov@gmail.com>2020-08-12 13:12:39 +0300
committerDenis Shienkov <denis.shienkov@gmail.com>2020-08-13 06:50:08 +0000
commit755e979d94eaa9fd521def369ebda5d271b335ca (patch)
treea519ff5319dcd85a79e894bf79764bbc4fa29c6c /tests/auto
parenta499c21c032b3b1e839cea1511a39fe4736213c0 (diff)
downloadqbs-755e979d94eaa9fd521def369ebda5d271b335ca.tar.gz
baremetal: Pass 'compiler-listing-files' test for SDCC toolchain
A problem was in that the SDCC compiler does not have an option to disable generation for listing files. Besides, it use listing files for a linking. So, we need to use a workaround to remove the generated listing files after linking in case if the cpp.generateCompilerListingFiles property is false. Change-Id: I5913e62d307d296bd8891654d20787cf3a54833c Reviewed-by: Ivan Komissarov <ABBAPOH@gmail.com>
Diffstat (limited to 'tests/auto')
-rw-r--r--tests/auto/blackbox/testdata-baremetal/do-not-generate-compiler-listing/do-not-generate-compiler-listing.qbs2
-rw-r--r--tests/auto/blackbox/testdata-baremetal/generate-compiler-listing/generate-compiler-listing.qbs2
2 files changed, 4 insertions, 0 deletions
diff --git a/tests/auto/blackbox/testdata-baremetal/do-not-generate-compiler-listing/do-not-generate-compiler-listing.qbs b/tests/auto/blackbox/testdata-baremetal/do-not-generate-compiler-listing/do-not-generate-compiler-listing.qbs
index dc35ac2b8..8ae4fc065 100644
--- a/tests/auto/blackbox/testdata-baremetal/do-not-generate-compiler-listing/do-not-generate-compiler-listing.qbs
+++ b/tests/auto/blackbox/testdata-baremetal/do-not-generate-compiler-listing/do-not-generate-compiler-listing.qbs
@@ -2,6 +2,8 @@ import "../BareMetalApplication.qbs" as BareMetalApplication
BareMetalApplication {
condition: {
+ if (qbs.toolchainType === "sdcc")
+ return true;
if (qbs.toolchainType === "msvc")
return true;
if (qbs.toolchainType === "clang-cl")
diff --git a/tests/auto/blackbox/testdata-baremetal/generate-compiler-listing/generate-compiler-listing.qbs b/tests/auto/blackbox/testdata-baremetal/generate-compiler-listing/generate-compiler-listing.qbs
index ceb7d310e..741a21953 100644
--- a/tests/auto/blackbox/testdata-baremetal/generate-compiler-listing/generate-compiler-listing.qbs
+++ b/tests/auto/blackbox/testdata-baremetal/generate-compiler-listing/generate-compiler-listing.qbs
@@ -2,6 +2,8 @@ import "../BareMetalApplication.qbs" as BareMetalApplication
BareMetalApplication {
condition: {
+ if (qbs.toolchainType === "sdcc")
+ return true;
if (qbs.toolchainType === "msvc")
return true;
if (qbs.toolchainType === "clang-cl")