From 32a3103706d144d1911f498e4b0bce084595ebaf Mon Sep 17 00:00:00 2001 From: Mate Barany Date: Fri, 2 Aug 2024 14:39:43 +0200 Subject: [PATCH] Upload the Axivion config files to gerrit MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit To review and comment on the rules. Task-number: QTQAINFRA-6577 Change-Id: I3c4f85e307533346d393ed32adccb75c106d882e Reviewed-by: Simo Fält --- .../common/linux/axivion-bauhaus-suite.sh | 44 - .../common/linux/axivion/axivion_config.json | 10 + .../linux/axivion/ci_config_common.json | 32 + .../linux/axivion/code_annotations.json | 32 + .../common/linux/axivion/compiler_config.json | 786 ++++++++++++++++++ .../common/linux/axivion/post_processing.py | 34 + .../common/linux/axivion/rule_config.json | 210 +++++ .../common/linux/axivion/start_analysis.sh | 13 + .../93-axivion-bauhaus-suite.sh | 39 +- .../93-axivion-bauhaus-suite.sh | 6 - 10 files changed, 1153 insertions(+), 53 deletions(-) delete mode 100755 coin/provisioning/common/linux/axivion-bauhaus-suite.sh create mode 100644 coin/provisioning/common/linux/axivion/axivion_config.json create mode 100644 coin/provisioning/common/linux/axivion/ci_config_common.json create mode 100644 coin/provisioning/common/linux/axivion/code_annotations.json create mode 100644 coin/provisioning/common/linux/axivion/compiler_config.json create mode 100644 coin/provisioning/common/linux/axivion/post_processing.py create mode 100644 coin/provisioning/common/linux/axivion/rule_config.json create mode 100755 coin/provisioning/common/linux/axivion/start_analysis.sh delete mode 100644 coin/provisioning/qtci-linux-Ubuntu-24.04-x86_64/93-axivion-bauhaus-suite.sh diff --git a/coin/provisioning/common/linux/axivion-bauhaus-suite.sh b/coin/provisioning/common/linux/axivion-bauhaus-suite.sh deleted file mode 100755 index 8fdecbac3fa..00000000000 --- a/coin/provisioning/common/linux/axivion-bauhaus-suite.sh +++ /dev/null @@ -1,44 +0,0 @@ -#!/usr/bin/env bash -# Copyright (C) 2023 The Qt Company Ltd. -# SPDX-License-Identifier: LicenseRef-Qt-Commercial OR LGPL-3.0-only OR GPL-2.0-only OR GPL-3.0-only - -# This script installs Axivion Bauhaus Suite tool. - -set -ex - -# shellcheck source=../unix/DownloadURL.sh -source "${BASH_SOURCE%/*}/../unix/DownloadURL.sh" -# shellcheck source=../unix/SetEnvVar.sh -# source "${BASH_SOURCE%/*}/../unix/SetEnvVar.sh" - -DownloadAndExtract () { - url=$1 - sha=$2 - file=$3 - - DownloadURL "$url" "$url" "$sha" "$file" - tar -xzvf "$file" - - rm -rf "$file" -} - - -# Axivion Bauhaus Suite -sourceFile="http://ci-files01-hki.ci.qt.io/input/axivion/bauhaus-suite-7_8_0-x86_64-gnu_linux.tar.gz" -targetFile="bauhaus-suite-7_8_0-x86_64-gnu_linux.tar.gz" -sha1="bae1a7091ab9582822bfcd00b826e07d9b467a04" -cd "$HOME" -DownloadAndExtract "$sourceFile" "$sha1" "$targetFile" "$HOME" - -mkdir "$HOME/.bauhaus" -cd "$HOME/.bauhaus" -wget http://ci-files01-hki.ci.qt.io/input/axivion/Qt_Evaluation_QSR_INTERN_20250118.key -cd "$HOME" - -#Axivion configuration -configurationFile="http://ci-files01-hki.ci.qt.io/input/axivion/axivion_config_780_2506.tar.gz" -configurationTargetFile="axivion_config.tar.gz" -configSha1="a27c4db94e8b875e756dc820259fffdd7afc19b6" -DownloadAndExtract "$configurationFile" "$configSha1" "$configurationTargetFile" "$HOME" - -echo "Axivion Bauhaus Suite = 7.8.0" >> ~/versions.txt diff --git a/coin/provisioning/common/linux/axivion/axivion_config.json b/coin/provisioning/common/linux/axivion/axivion_config.json new file mode 100644 index 00000000000..36461c6af04 --- /dev/null +++ b/coin/provisioning/common/linux/axivion/axivion_config.json @@ -0,0 +1,10 @@ +{ + "_Layers": [ + "post_processing.py", + "ci_config.json", + "ci_config_common.json", + "compiler_config.json", + "rule_config.json", + "code_annotations.json" + ] +} diff --git a/coin/provisioning/common/linux/axivion/ci_config_common.json b/coin/provisioning/common/linux/axivion/ci_config_common.json new file mode 100644 index 00000000000..53956c12ee1 --- /dev/null +++ b/coin/provisioning/common/linux/axivion/ci_config_common.json @@ -0,0 +1,32 @@ +{ + "Project": { + "Git": { + "_active": true, + "sourceserver_gitdir": "/data/axivion/databases/$(env:TESTED_MODULE_COIN).git" + }, + "Project-GlobalOptions": { + "ci_mode": { + "clean_before": false + }, + "directory": "../work/qt/$(env:TESTED_MODULE_COIN)", + "ir": "$(env:IRNAME)", + "name": "qt_$(env:PACKAGE)_$(env:MODULE)_dev_$(env:TARGET_OS_COIN)" + } + }, + "Results": { + "Dashboard": { + "ci_mode": { + "directory": "/data/axivion/databases" + }, + "dashboard_url": "https://axivion-srv.ci.qt.io/axivion/" + } + }, + "_Format": "1.0", + "_Version": "7.6.2", + "_VersionNum": [ + 7, + 6, + 2, + 12725 + ] +} diff --git a/coin/provisioning/common/linux/axivion/code_annotations.json b/coin/provisioning/common/linux/axivion/code_annotations.json new file mode 100644 index 00000000000..62bd38bd847 --- /dev/null +++ b/coin/provisioning/common/linux/axivion/code_annotations.json @@ -0,0 +1,32 @@ +{ + "Analysis": { + "CatchMalformedComments": { + "_active": true + }, + "EnableDisable": { + "_active": true + }, + "NextLine": { + "_active": true + }, + "ReportUnclosedRestOfFileComments": { + "_active": true + }, + "ReportUnusedComments": { + "_active": true + } + }, + "Results": { + "Dashboard": { + "import_suppressed_issues": true + } + }, + "_Format": "1.0", + "_Version": "trunk-d23a11ca62e", + "_VersionNum": [ + 7, + 8, + 0, + 14394 + ] +} diff --git a/coin/provisioning/common/linux/axivion/compiler_config.json b/coin/provisioning/common/linux/axivion/compiler_config.json new file mode 100644 index 00000000000..315b01f668f --- /dev/null +++ b/coin/provisioning/common/linux/axivion/compiler_config.json @@ -0,0 +1,786 @@ +{ + "Project": { + "GNUToolchain": { + "_active": true, + "advanced": { + "no_macro_invocations_for_system_headers": false + }, + "archiver": { + "native_archiver": "/usr/bin/ar" + }, + "language_c": { + "emulated_compiler": "GNU", + "emulated_compiler_version": 90300, + "language_version": "C18", + "native_compiler": "/usr/bin/gcc", + "preprocessing": { + "predefined_macros": { + "_LP64": "1", + "_STDC_PREDEF_H": "1", + "__ATOMIC_ACQUIRE": "2", + "__ATOMIC_ACQ_REL": "4", + "__ATOMIC_CONSUME": "1", + "__ATOMIC_HLE_ACQUIRE": "65536", + "__ATOMIC_HLE_RELEASE": "131072", + "__ATOMIC_RELAXED": "0", + "__ATOMIC_RELEASE": "3", + "__ATOMIC_SEQ_CST": "5", + "__BIGGEST_ALIGNMENT__": "16", + "__BYTE_ORDER__": "__ORDER_LITTLE_ENDIAN__", + "__CHAR_BIT__": "8", + "__DBL_DECIMAL_DIG__": "17", + "__DBL_DENORM_MIN__": "((double)4.94065645841246544176568792868221372e-324L)", + "__DBL_DIG__": "15", + "__DBL_EPSILON__": "((double)2.22044604925031308084726333618164062e-16L)", + "__DBL_HAS_DENORM__": "1", + "__DBL_HAS_INFINITY__": "1", + "__DBL_HAS_QUIET_NAN__": "1", + "__DBL_MANT_DIG__": "53", + "__DBL_MAX_10_EXP__": "308", + "__DBL_MAX_EXP__": "1024", + "__DBL_MAX__": "((double)1.79769313486231570814527423731704357e+308L)", + "__DBL_MIN_10_EXP__": "(-307)", + "__DBL_MIN_EXP__": "(-1021)", + "__DBL_MIN__": "((double)2.22507385850720138309023271733240406e-308L)", + "__DEC128_EPSILON__": "1E-33DL", + "__DEC128_MANT_DIG__": "34", + "__DEC128_MAX_EXP__": "6145", + "__DEC128_MAX__": "9.999999999999999999999999999999999E6144DL", + "__DEC128_MIN_EXP__": "(-6142)", + "__DEC128_MIN__": "1E-6143DL", + "__DEC128_SUBNORMAL_MIN__": "0.000000000000000000000000000000001E-6143DL", + "__DEC32_EPSILON__": "1E-6DF", + "__DEC32_MANT_DIG__": "7", + "__DEC32_MAX_EXP__": "97", + "__DEC32_MAX__": "9.999999E96DF", + "__DEC32_MIN_EXP__": "(-94)", + "__DEC32_MIN__": "1E-95DF", + "__DEC32_SUBNORMAL_MIN__": "0.000001E-95DF", + "__DEC64_EPSILON__": "1E-15DD", + "__DEC64_MANT_DIG__": "16", + "__DEC64_MAX_EXP__": "385", + "__DEC64_MAX__": "9.999999999999999E384DD", + "__DEC64_MIN_EXP__": "(-382)", + "__DEC64_MIN__": "1E-383DD", + "__DEC64_SUBNORMAL_MIN__": "0.000000000000001E-383DD", + "__DECIMAL_BID_FORMAT__": "1", + "__DECIMAL_DIG__": "21", + "__DEC_EVAL_METHOD__": "2", + "__ELF__": "1", + "__FINITE_MATH_ONLY__": "0", + "__FLOAT_WORD_ORDER__": "__ORDER_LITTLE_ENDIAN__", + "__FLT128_DECIMAL_DIG__": "36", + "__FLT128_DENORM_MIN__": "6.47517511943802511092443895822764655e-4966F128", + "__FLT128_DIG__": "33", + "__FLT128_EPSILON__": "1.92592994438723585305597794258492732e-34F128", + "__FLT128_HAS_DENORM__": "1", + "__FLT128_HAS_INFINITY__": "1", + "__FLT128_HAS_QUIET_NAN__": "1", + "__FLT128_MANT_DIG__": "113", + "__FLT128_MAX_10_EXP__": "4932", + "__FLT128_MAX_EXP__": "16384", + "__FLT128_MAX__": "1.18973149535723176508575932662800702e+4932F128", + "__FLT128_MIN_10_EXP__": "(-4931)", + "__FLT128_MIN_EXP__": "(-16381)", + "__FLT128_MIN__": "3.36210314311209350626267781732175260e-4932F128", + "__FLT32X_DECIMAL_DIG__": "17", + "__FLT32X_DENORM_MIN__": "4.94065645841246544176568792868221372e-324F32x", + "__FLT32X_DIG__": "15", + "__FLT32X_EPSILON__": "2.22044604925031308084726333618164062e-16F32x", + "__FLT32X_HAS_DENORM__": "1", + "__FLT32X_HAS_INFINITY__": "1", + "__FLT32X_HAS_QUIET_NAN__": "1", + "__FLT32X_MANT_DIG__": "53", + "__FLT32X_MAX_10_EXP__": "308", + "__FLT32X_MAX_EXP__": "1024", + "__FLT32X_MAX__": "1.79769313486231570814527423731704357e+308F32x", + "__FLT32X_MIN_10_EXP__": "(-307)", + "__FLT32X_MIN_EXP__": "(-1021)", + "__FLT32X_MIN__": "2.22507385850720138309023271733240406e-308F32x", + "__FLT32_DECIMAL_DIG__": "9", + "__FLT32_DENORM_MIN__": "1.40129846432481707092372958328991613e-45F32", + "__FLT32_DIG__": "6", + "__FLT32_EPSILON__": "1.19209289550781250000000000000000000e-7F32", + "__FLT32_HAS_DENORM__": "1", + "__FLT32_HAS_INFINITY__": "1", + "__FLT32_HAS_QUIET_NAN__": "1", + "__FLT32_MANT_DIG__": "24", + "__FLT32_MAX_10_EXP__": "38", + "__FLT32_MAX_EXP__": "128", + "__FLT32_MAX__": "3.40282346638528859811704183484516925e+38F32", + "__FLT32_MIN_10_EXP__": "(-37)", + "__FLT32_MIN_EXP__": "(-125)", + "__FLT32_MIN__": "1.17549435082228750796873653722224568e-38F32", + "__FLT64X_DECIMAL_DIG__": "21", + "__FLT64X_DENORM_MIN__": "3.64519953188247460252840593361941982e-4951F64x", + "__FLT64X_DIG__": "18", + "__FLT64X_EPSILON__": "1.08420217248550443400745280086994171e-19F64x", + "__FLT64X_HAS_DENORM__": "1", + "__FLT64X_HAS_INFINITY__": "1", + "__FLT64X_HAS_QUIET_NAN__": "1", + "__FLT64X_MANT_DIG__": "64", + "__FLT64X_MAX_10_EXP__": "4932", + "__FLT64X_MAX_EXP__": "16384", + "__FLT64X_MAX__": "1.18973149535723176502126385303097021e+4932F64x", + "__FLT64X_MIN_10_EXP__": "(-4931)", + "__FLT64X_MIN_EXP__": "(-16381)", + "__FLT64X_MIN__": "3.36210314311209350626267781732175260e-4932F64x", + "__FLT64_DECIMAL_DIG__": "17", + "__FLT64_DENORM_MIN__": "4.94065645841246544176568792868221372e-324F64", + "__FLT64_DIG__": "15", + "__FLT64_EPSILON__": "2.22044604925031308084726333618164062e-16F64", + "__FLT64_HAS_DENORM__": "1", + "__FLT64_HAS_INFINITY__": "1", + "__FLT64_HAS_QUIET_NAN__": "1", + "__FLT64_MANT_DIG__": "53", + "__FLT64_MAX_10_EXP__": "308", + "__FLT64_MAX_EXP__": "1024", + "__FLT64_MAX__": "1.79769313486231570814527423731704357e+308F64", + "__FLT64_MIN_10_EXP__": "(-307)", + "__FLT64_MIN_EXP__": "(-1021)", + "__FLT64_MIN__": "2.22507385850720138309023271733240406e-308F64", + "__FLT_DECIMAL_DIG__": "9", + "__FLT_DENORM_MIN__": "1.40129846432481707092372958328991613e-45F", + "__FLT_DIG__": "6", + "__FLT_EPSILON__": "1.19209289550781250000000000000000000e-7F", + "__FLT_EVAL_METHOD_TS_18661_3__": "0", + "__FLT_EVAL_METHOD__": "0", + "__FLT_HAS_DENORM__": "1", + "__FLT_HAS_INFINITY__": "1", + "__FLT_HAS_QUIET_NAN__": "1", + "__FLT_MANT_DIG__": "24", + "__FLT_MAX_10_EXP__": "38", + "__FLT_MAX_EXP__": "128", + "__FLT_MAX__": "3.40282346638528859811704183484516925e+38F", + "__FLT_MIN_10_EXP__": "(-37)", + "__FLT_MIN_EXP__": "(-125)", + "__FLT_MIN__": "1.17549435082228750796873653722224568e-38F", + "__FLT_RADIX__": "2", + "__FXSR__": "1", + "__GCC_ASM_FLAG_OUTPUTS__": "1", + "__GCC_ATOMIC_BOOL_LOCK_FREE": "2", + "__GCC_ATOMIC_CHAR16_T_LOCK_FREE": "2", + "__GCC_ATOMIC_CHAR32_T_LOCK_FREE": "2", + "__GCC_ATOMIC_CHAR_LOCK_FREE": "2", + "__GCC_ATOMIC_INT_LOCK_FREE": "2", + "__GCC_ATOMIC_LLONG_LOCK_FREE": "2", + "__GCC_ATOMIC_LONG_LOCK_FREE": "2", + "__GCC_ATOMIC_POINTER_LOCK_FREE": "2", + "__GCC_ATOMIC_SHORT_LOCK_FREE": "2", + "__GCC_ATOMIC_TEST_AND_SET_TRUEVAL": "1", + "__GCC_ATOMIC_WCHAR_T_LOCK_FREE": "2", + "__GCC_HAVE_DWARF2_CFI_ASM": "1", + "__GCC_HAVE_SYNC_COMPARE_AND_SWAP_1": "1", + "__GCC_HAVE_SYNC_COMPARE_AND_SWAP_2": "1", + "__GCC_HAVE_SYNC_COMPARE_AND_SWAP_4": "1", + "__GCC_HAVE_SYNC_COMPARE_AND_SWAP_8": "1", + "__GCC_IEC_559": "2", + "__GCC_IEC_559_COMPLEX": "2", + "__GXX_ABI_VERSION": "1013", + "__HAVE_SPECULATION_SAFE_VALUE": "1", + "__INT16_C(c)": "c", + "__INT16_MAX__": "0x7fff", + "__INT16_TYPE__": "short int", + "__INT32_C(c)": "c", + "__INT32_MAX__": "0x7fffffff", + "__INT32_TYPE__": "int", + "__INT64_C(c)": "c ## L", + "__INT64_MAX__": "0x7fffffffffffffffL", + "__INT64_TYPE__": "long int", + "__INT8_C(c)": "c", + "__INT8_MAX__": "0x7f", + "__INT8_TYPE__": "signed char", + "__INTMAX_C(c)": "c ## L", + "__INTMAX_MAX__": "0x7fffffffffffffffL", + "__INTMAX_TYPE__": "long int", + "__INTMAX_WIDTH__": "64", + "__INTPTR_MAX__": "0x7fffffffffffffffL", + "__INTPTR_TYPE__": "long int", + "__INTPTR_WIDTH__": "64", + "__INT_FAST16_MAX__": "0x7fffffffffffffffL", + "__INT_FAST16_TYPE__": "long int", + "__INT_FAST16_WIDTH__": "64", + "__INT_FAST32_MAX__": "0x7fffffffffffffffL", + "__INT_FAST32_TYPE__": "long int", + "__INT_FAST32_WIDTH__": "64", + "__INT_FAST64_MAX__": "0x7fffffffffffffffL", + "__INT_FAST64_TYPE__": "long int", + "__INT_FAST64_WIDTH__": "64", + "__INT_FAST8_MAX__": "0x7f", + "__INT_FAST8_TYPE__": "signed char", + "__INT_FAST8_WIDTH__": "8", + "__INT_LEAST16_MAX__": "0x7fff", + "__INT_LEAST16_TYPE__": "short int", + "__INT_LEAST16_WIDTH__": "16", + "__INT_LEAST32_MAX__": "0x7fffffff", + "__INT_LEAST32_TYPE__": "int", + "__INT_LEAST32_WIDTH__": "32", + "__INT_LEAST64_MAX__": "0x7fffffffffffffffL", + "__INT_LEAST64_TYPE__": "long int", + "__INT_LEAST64_WIDTH__": "64", + "__INT_LEAST8_MAX__": "0x7f", + "__INT_LEAST8_TYPE__": "signed char", + "__INT_LEAST8_WIDTH__": "8", + "__INT_MAX__": "0x7fffffff", + "__INT_WIDTH__": "32", + "__LDBL_DECIMAL_DIG__": "21", + "__LDBL_DENORM_MIN__": "3.64519953188247460252840593361941982e-4951L", + "__LDBL_DIG__": "18", + "__LDBL_EPSILON__": "1.08420217248550443400745280086994171e-19L", + "__LDBL_HAS_DENORM__": "1", + "__LDBL_HAS_INFINITY__": "1", + "__LDBL_HAS_QUIET_NAN__": "1", + "__LDBL_MANT_DIG__": "64", + "__LDBL_MAX_10_EXP__": "4932", + "__LDBL_MAX_EXP__": "16384", + "__LDBL_MAX__": "1.18973149535723176502126385303097021e+4932L", + "__LDBL_MIN_10_EXP__": "(-4931)", + "__LDBL_MIN_EXP__": "(-16381)", + "__LDBL_MIN__": "3.36210314311209350626267781732175260e-4932L", + "__LONG_LONG_MAX__": "0x7fffffffffffffffLL", + "__LONG_LONG_WIDTH__": "64", + "__LONG_MAX__": "0x7fffffffffffffffL", + "__LONG_WIDTH__": "64", + "__LP64__": "1", + "__MMX__": "1", + "__NO_INLINE__": "1", + "__ORDER_BIG_ENDIAN__": "4321", + "__ORDER_LITTLE_ENDIAN__": "1234", + "__ORDER_PDP_ENDIAN__": "3412", + "__PRAGMA_REDEFINE_EXTNAME": "1", + "__PTRDIFF_MAX__": "0x7fffffffffffffffL", + "__PTRDIFF_TYPE__": "long int", + "__PTRDIFF_WIDTH__": "64", + "__REGISTER_PREFIX__": "", + "__SCHAR_MAX__": "0x7f", + "__SCHAR_WIDTH__": "8", + "__SEG_FS": "1", + "__SEG_GS": "1", + "__SHRT_MAX__": "0x7fff", + "__SHRT_WIDTH__": "16", + "__SIG_ATOMIC_MAX__": "0x7fffffff", + "__SIG_ATOMIC_MIN__": "(-__SIG_ATOMIC_MAX__ - 1)", + "__SIG_ATOMIC_TYPE__": "int", + "__SIG_ATOMIC_WIDTH__": "32", + "__SIZEOF_DOUBLE__": "8", + "__SIZEOF_FLOAT128__": "16", + "__SIZEOF_FLOAT80__": "16", + "__SIZEOF_FLOAT__": "4", + "__SIZEOF_INT128__": "16", + "__SIZEOF_INT__": "4", + "__SIZEOF_LONG_DOUBLE__": "16", + "__SIZEOF_LONG_LONG__": "8", + "__SIZEOF_LONG__": "8", + "__SIZEOF_POINTER__": "8", + "__SIZEOF_PTRDIFF_T__": "8", + "__SIZEOF_SHORT__": "2", + "__SIZEOF_SIZE_T__": "8", + "__SIZEOF_WCHAR_T__": "4", + "__SIZEOF_WINT_T__": "4", + "__SIZE_MAX__": "0xffffffffffffffffUL", + "__SIZE_TYPE__": "long unsigned int", + "__SIZE_WIDTH__": "64", + "__SSE2_MATH__": "1", + "__SSE2__": "1", + "__SSE_MATH__": "1", + "__SSE__": "1", + "__STDC_HOSTED__": "1", + "__STDC_IEC_559_COMPLEX__": "1", + "__STDC_IEC_559__": "1", + "__STDC_ISO_10646__": "201706L", + "__STDC_UTF_16__": "1", + "__STDC_UTF_32__": "1", + "__UINT16_C(c)": "c", + "__UINT16_MAX__": "0xffff", + "__UINT16_TYPE__": "short unsigned int", + "__UINT32_C(c)": "c ## U", + "__UINT32_MAX__": "0xffffffffU", + "__UINT32_TYPE__": "unsigned int", + "__UINT64_C(c)": "c ## UL", + "__UINT64_MAX__": "0xffffffffffffffffUL", + "__UINT64_TYPE__": "long unsigned int", + "__UINT8_C(c)": "c", + "__UINT8_MAX__": "0xff", + "__UINT8_TYPE__": "unsigned char", + "__UINTMAX_C(c)": "c ## UL", + "__UINTMAX_MAX__": "0xffffffffffffffffUL", + "__UINTMAX_TYPE__": "long unsigned int", + "__UINTPTR_MAX__": "0xffffffffffffffffUL", + "__UINTPTR_TYPE__": "long unsigned int", + "__UINT_FAST16_MAX__": "0xffffffffffffffffUL", + "__UINT_FAST16_TYPE__": "long unsigned int", + "__UINT_FAST32_MAX__": "0xffffffffffffffffUL", + "__UINT_FAST32_TYPE__": "long unsigned int", + "__UINT_FAST64_MAX__": "0xffffffffffffffffUL", + "__UINT_FAST64_TYPE__": "long unsigned int", + "__UINT_FAST8_MAX__": "0xff", + "__UINT_FAST8_TYPE__": "unsigned char", + "__UINT_LEAST16_MAX__": "0xffff", + "__UINT_LEAST16_TYPE__": "short unsigned int", + "__UINT_LEAST32_MAX__": "0xffffffffU", + "__UINT_LEAST32_TYPE__": "unsigned int", + "__UINT_LEAST64_MAX__": "0xffffffffffffffffUL", + "__UINT_LEAST64_TYPE__": "long unsigned int", + "__UINT_LEAST8_MAX__": "0xff", + "__UINT_LEAST8_TYPE__": "unsigned char", + "__USER_LABEL_PREFIX__": "", + "__WCHAR_MAX__": "0x7fffffff", + "__WCHAR_MIN__": "(-__WCHAR_MAX__ - 1)", + "__WCHAR_TYPE__": "int", + "__WCHAR_WIDTH__": "32", + "__WINT_MAX__": "0xffffffffU", + "__WINT_MIN__": "0U", + "__WINT_TYPE__": "unsigned int", + "__WINT_WIDTH__": "32", + "__amd64": "1", + "__amd64__": "1", + "__code_model_small__": "1", + "__gnu_linux__": "1", + "__k8": "1", + "__k8__": "1", + "__linux": "1", + "__linux__": "1", + "__unix": "1", + "__unix__": "1", + "__x86_64": "1", + "__x86_64__": "1", + "linux": "1", + "unix": "1" + }, + "sys_include_envvar": null, + "sys_include_path": [ + "/usr/local/lib/gcc/x86_64-pc-linux-gnu/9.3.0/include", + "/usr/local/include", + "/usr/local/lib/gcc/x86_64-pc-linux-gnu/9.3.0/include-fixed", + "/usr/include/x86_64-linux-gnu", + "/usr/include" + ] + } + }, + "language_c.command.#": "/usr/bin/gcc", + "language_c.info.#": "Using built-in specs.\nCOLLECT_GCC=/usr/bin/gcc\nCOLLECT_LTO_WRAPPER=/usr/local/libexec/gcc/x86_64-pc-linux-gnu/9.3.0/lto-wrapper\nTarget: x86_64-pc-linux-gnu\nConfigured with: /tmp/gcc-9.3.0/configure --disable-bootstrap --enable-languages=c,c++,lto --prefix=/usr/local --program-suffix=-9.3\nThread model: posix\ngcc version 9.3.0 (GCC) \n", + "language_cxx": { + "emulated_compiler": "GNU", + "emulated_compiler_version": 90300, + "language_version": "Cpp14", + "native_compiler": "/usr/bin/g++", + "preprocessing": { + "predefined_macros": { + "_GNU_SOURCE": "1", + "_LP64": "1", + "_STDC_PREDEF_H": "1", + "__ATOMIC_ACQUIRE": "2", + "__ATOMIC_ACQ_REL": "4", + "__ATOMIC_CONSUME": "1", + "__ATOMIC_HLE_ACQUIRE": "65536", + "__ATOMIC_HLE_RELEASE": "131072", + "__ATOMIC_RELAXED": "0", + "__ATOMIC_RELEASE": "3", + "__ATOMIC_SEQ_CST": "5", + "__BIGGEST_ALIGNMENT__": "16", + "__BYTE_ORDER__": "__ORDER_LITTLE_ENDIAN__", + "__CHAR_BIT__": "8", + "__DBL_DECIMAL_DIG__": "17", + "__DBL_DENORM_MIN__": "double(4.94065645841246544176568792868221372e-324L)", + "__DBL_DIG__": "15", + "__DBL_EPSILON__": "double(2.22044604925031308084726333618164062e-16L)", + "__DBL_HAS_DENORM__": "1", + "__DBL_HAS_INFINITY__": "1", + "__DBL_HAS_QUIET_NAN__": "1", + "__DBL_MANT_DIG__": "53", + "__DBL_MAX_10_EXP__": "308", + "__DBL_MAX_EXP__": "1024", + "__DBL_MAX__": "double(1.79769313486231570814527423731704357e+308L)", + "__DBL_MIN_10_EXP__": "(-307)", + "__DBL_MIN_EXP__": "(-1021)", + "__DBL_MIN__": "double(2.22507385850720138309023271733240406e-308L)", + "__DEC128_EPSILON__": "1E-33DL", + "__DEC128_MANT_DIG__": "34", + "__DEC128_MAX_EXP__": "6145", + "__DEC128_MAX__": "9.999999999999999999999999999999999E6144DL", + "__DEC128_MIN_EXP__": "(-6142)", + "__DEC128_MIN__": "1E-6143DL", + "__DEC128_SUBNORMAL_MIN__": "0.000000000000000000000000000000001E-6143DL", + "__DEC32_EPSILON__": "1E-6DF", + "__DEC32_MANT_DIG__": "7", + "__DEC32_MAX_EXP__": "97", + "__DEC32_MAX__": "9.999999E96DF", + "__DEC32_MIN_EXP__": "(-94)", + "__DEC32_MIN__": "1E-95DF", + "__DEC32_SUBNORMAL_MIN__": "0.000001E-95DF", + "__DEC64_EPSILON__": "1E-15DD", + "__DEC64_MANT_DIG__": "16", + "__DEC64_MAX_EXP__": "385", + "__DEC64_MAX__": "9.999999999999999E384DD", + "__DEC64_MIN_EXP__": "(-382)", + "__DEC64_MIN__": "1E-383DD", + "__DEC64_SUBNORMAL_MIN__": "0.000000000000001E-383DD", + "__DECIMAL_BID_FORMAT__": "1", + "__DECIMAL_DIG__": "21", + "__DEC_EVAL_METHOD__": "2", + "__DEPRECATED": "1", + "__ELF__": "1", + "__FINITE_MATH_ONLY__": "0", + "__FLOAT_WORD_ORDER__": "__ORDER_LITTLE_ENDIAN__", + "__FLT128_DECIMAL_DIG__": "36", + "__FLT128_DENORM_MIN__": "6.47517511943802511092443895822764655e-4966F128", + "__FLT128_DIG__": "33", + "__FLT128_EPSILON__": "1.92592994438723585305597794258492732e-34F128", + "__FLT128_HAS_DENORM__": "1", + "__FLT128_HAS_INFINITY__": "1", + "__FLT128_HAS_QUIET_NAN__": "1", + "__FLT128_MANT_DIG__": "113", + "__FLT128_MAX_10_EXP__": "4932", + "__FLT128_MAX_EXP__": "16384", + "__FLT128_MAX__": "1.18973149535723176508575932662800702e+4932F128", + "__FLT128_MIN_10_EXP__": "(-4931)", + "__FLT128_MIN_EXP__": "(-16381)", + "__FLT128_MIN__": "3.36210314311209350626267781732175260e-4932F128", + "__FLT32X_DECIMAL_DIG__": "17", + "__FLT32X_DENORM_MIN__": "4.94065645841246544176568792868221372e-324F32x", + "__FLT32X_DIG__": "15", + "__FLT32X_EPSILON__": "2.22044604925031308084726333618164062e-16F32x", + "__FLT32X_HAS_DENORM__": "1", + "__FLT32X_HAS_INFINITY__": "1", + "__FLT32X_HAS_QUIET_NAN__": "1", + "__FLT32X_MANT_DIG__": "53", + "__FLT32X_MAX_10_EXP__": "308", + "__FLT32X_MAX_EXP__": "1024", + "__FLT32X_MAX__": "1.79769313486231570814527423731704357e+308F32x", + "__FLT32X_MIN_10_EXP__": "(-307)", + "__FLT32X_MIN_EXP__": "(-1021)", + "__FLT32X_MIN__": "2.22507385850720138309023271733240406e-308F32x", + "__FLT32_DECIMAL_DIG__": "9", + "__FLT32_DENORM_MIN__": "1.40129846432481707092372958328991613e-45F32", + "__FLT32_DIG__": "6", + "__FLT32_EPSILON__": "1.19209289550781250000000000000000000e-7F32", + "__FLT32_HAS_DENORM__": "1", + "__FLT32_HAS_INFINITY__": "1", + "__FLT32_HAS_QUIET_NAN__": "1", + "__FLT32_MANT_DIG__": "24", + "__FLT32_MAX_10_EXP__": "38", + "__FLT32_MAX_EXP__": "128", + "__FLT32_MAX__": "3.40282346638528859811704183484516925e+38F32", + "__FLT32_MIN_10_EXP__": "(-37)", + "__FLT32_MIN_EXP__": "(-125)", + "__FLT32_MIN__": "1.17549435082228750796873653722224568e-38F32", + "__FLT64X_DECIMAL_DIG__": "21", + "__FLT64X_DENORM_MIN__": "3.64519953188247460252840593361941982e-4951F64x", + "__FLT64X_DIG__": "18", + "__FLT64X_EPSILON__": "1.08420217248550443400745280086994171e-19F64x", + "__FLT64X_HAS_DENORM__": "1", + "__FLT64X_HAS_INFINITY__": "1", + "__FLT64X_HAS_QUIET_NAN__": "1", + "__FLT64X_MANT_DIG__": "64", + "__FLT64X_MAX_10_EXP__": "4932", + "__FLT64X_MAX_EXP__": "16384", + "__FLT64X_MAX__": "1.18973149535723176502126385303097021e+4932F64x", + "__FLT64X_MIN_10_EXP__": "(-4931)", + "__FLT64X_MIN_EXP__": "(-16381)", + "__FLT64X_MIN__": "3.36210314311209350626267781732175260e-4932F64x", + "__FLT64_DECIMAL_DIG__": "17", + "__FLT64_DENORM_MIN__": "4.94065645841246544176568792868221372e-324F64", + "__FLT64_DIG__": "15", + "__FLT64_EPSILON__": "2.22044604925031308084726333618164062e-16F64", + "__FLT64_HAS_DENORM__": "1", + "__FLT64_HAS_INFINITY__": "1", + "__FLT64_HAS_QUIET_NAN__": "1", + "__FLT64_MANT_DIG__": "53", + "__FLT64_MAX_10_EXP__": "308", + "__FLT64_MAX_EXP__": "1024", + "__FLT64_MAX__": "1.79769313486231570814527423731704357e+308F64", + "__FLT64_MIN_10_EXP__": "(-307)", + "__FLT64_MIN_EXP__": "(-1021)", + "__FLT64_MIN__": "2.22507385850720138309023271733240406e-308F64", + "__FLT_DECIMAL_DIG__": "9", + "__FLT_DENORM_MIN__": "1.40129846432481707092372958328991613e-45F", + "__FLT_DIG__": "6", + "__FLT_EPSILON__": "1.19209289550781250000000000000000000e-7F", + "__FLT_EVAL_METHOD_TS_18661_3__": "0", + "__FLT_EVAL_METHOD__": "0", + "__FLT_HAS_DENORM__": "1", + "__FLT_HAS_INFINITY__": "1", + "__FLT_HAS_QUIET_NAN__": "1", + "__FLT_MANT_DIG__": "24", + "__FLT_MAX_10_EXP__": "38", + "__FLT_MAX_EXP__": "128", + "__FLT_MAX__": "3.40282346638528859811704183484516925e+38F", + "__FLT_MIN_10_EXP__": "(-37)", + "__FLT_MIN_EXP__": "(-125)", + "__FLT_MIN__": "1.17549435082228750796873653722224568e-38F", + "__FLT_RADIX__": "2", + "__FXSR__": "1", + "__GCC_ASM_FLAG_OUTPUTS__": "1", + "__GCC_ATOMIC_BOOL_LOCK_FREE": "2", + "__GCC_ATOMIC_CHAR16_T_LOCK_FREE": "2", + "__GCC_ATOMIC_CHAR32_T_LOCK_FREE": "2", + "__GCC_ATOMIC_CHAR_LOCK_FREE": "2", + "__GCC_ATOMIC_INT_LOCK_FREE": "2", + "__GCC_ATOMIC_LLONG_LOCK_FREE": "2", + "__GCC_ATOMIC_LONG_LOCK_FREE": "2", + "__GCC_ATOMIC_POINTER_LOCK_FREE": "2", + "__GCC_ATOMIC_SHORT_LOCK_FREE": "2", + "__GCC_ATOMIC_TEST_AND_SET_TRUEVAL": "1", + "__GCC_ATOMIC_WCHAR_T_LOCK_FREE": "2", + "__GCC_HAVE_DWARF2_CFI_ASM": "1", + "__GCC_HAVE_SYNC_COMPARE_AND_SWAP_1": "1", + "__GCC_HAVE_SYNC_COMPARE_AND_SWAP_2": "1", + "__GCC_HAVE_SYNC_COMPARE_AND_SWAP_4": "1", + "__GCC_HAVE_SYNC_COMPARE_AND_SWAP_8": "1", + "__GCC_IEC_559": "2", + "__GCC_IEC_559_COMPLEX": "2", + "__GLIBCXX_BITSIZE_INT_N_0": "128", + "__GLIBCXX_TYPE_INT_N_0": "__int128", + "__GXX_ABI_VERSION": "1013", + "__GXX_WEAK__": "1", + "__HAVE_SPECULATION_SAFE_VALUE": "1", + "__INT16_C(c)": "c", + "__INT16_MAX__": "0x7fff", + "__INT16_TYPE__": "short int", + "__INT32_C(c)": "c", + "__INT32_MAX__": "0x7fffffff", + "__INT32_TYPE__": "int", + "__INT64_C(c)": "c ## L", + "__INT64_MAX__": "0x7fffffffffffffffL", + "__INT64_TYPE__": "long int", + "__INT8_C(c)": "c", + "__INT8_MAX__": "0x7f", + "__INT8_TYPE__": "signed char", + "__INTMAX_C(c)": "c ## L", + "__INTMAX_MAX__": "0x7fffffffffffffffL", + "__INTMAX_TYPE__": "long int", + "__INTMAX_WIDTH__": "64", + "__INTPTR_MAX__": "0x7fffffffffffffffL", + "__INTPTR_TYPE__": "long int", + "__INTPTR_WIDTH__": "64", + "__INT_FAST16_MAX__": "0x7fffffffffffffffL", + "__INT_FAST16_TYPE__": "long int", + "__INT_FAST16_WIDTH__": "64", + "__INT_FAST32_MAX__": "0x7fffffffffffffffL", + "__INT_FAST32_TYPE__": "long int", + "__INT_FAST32_WIDTH__": "64", + "__INT_FAST64_MAX__": "0x7fffffffffffffffL", + "__INT_FAST64_TYPE__": "long int", + "__INT_FAST64_WIDTH__": "64", + "__INT_FAST8_MAX__": "0x7f", + "__INT_FAST8_TYPE__": "signed char", + "__INT_FAST8_WIDTH__": "8", + "__INT_LEAST16_MAX__": "0x7fff", + "__INT_LEAST16_TYPE__": "short int", + "__INT_LEAST16_WIDTH__": "16", + "__INT_LEAST32_MAX__": "0x7fffffff", + "__INT_LEAST32_TYPE__": "int", + "__INT_LEAST32_WIDTH__": "32", + "__INT_LEAST64_MAX__": "0x7fffffffffffffffL", + "__INT_LEAST64_TYPE__": "long int", + "__INT_LEAST64_WIDTH__": "64", + "__INT_LEAST8_MAX__": "0x7f", + "__INT_LEAST8_TYPE__": "signed char", + "__INT_LEAST8_WIDTH__": "8", + "__INT_MAX__": "0x7fffffff", + "__INT_WIDTH__": "32", + "__LDBL_DECIMAL_DIG__": "21", + "__LDBL_DENORM_MIN__": "3.64519953188247460252840593361941982e-4951L", + "__LDBL_DIG__": "18", + "__LDBL_EPSILON__": "1.08420217248550443400745280086994171e-19L", + "__LDBL_HAS_DENORM__": "1", + "__LDBL_HAS_INFINITY__": "1", + "__LDBL_HAS_QUIET_NAN__": "1", + "__LDBL_MANT_DIG__": "64", + "__LDBL_MAX_10_EXP__": "4932", + "__LDBL_MAX_EXP__": "16384", + "__LDBL_MAX__": "1.18973149535723176502126385303097021e+4932L", + "__LDBL_MIN_10_EXP__": "(-4931)", + "__LDBL_MIN_EXP__": "(-16381)", + "__LDBL_MIN__": "3.36210314311209350626267781732175260e-4932L", + "__LONG_LONG_MAX__": "0x7fffffffffffffffLL", + "__LONG_LONG_WIDTH__": "64", + "__LONG_MAX__": "0x7fffffffffffffffL", + "__LONG_WIDTH__": "64", + "__LP64__": "1", + "__MMX__": "1", + "__NO_INLINE__": "1", + "__ORDER_BIG_ENDIAN__": "4321", + "__ORDER_LITTLE_ENDIAN__": "1234", + "__ORDER_PDP_ENDIAN__": "3412", + "__PRAGMA_REDEFINE_EXTNAME": "1", + "__PTRDIFF_MAX__": "0x7fffffffffffffffL", + "__PTRDIFF_TYPE__": "long int", + "__PTRDIFF_WIDTH__": "64", + "__REGISTER_PREFIX__": "", + "__SCHAR_MAX__": "0x7f", + "__SCHAR_WIDTH__": "8", + "__SEG_FS": "1", + "__SEG_GS": "1", + "__SHRT_MAX__": "0x7fff", + "__SHRT_WIDTH__": "16", + "__SIG_ATOMIC_MAX__": "0x7fffffff", + "__SIG_ATOMIC_MIN__": "(-__SIG_ATOMIC_MAX__ - 1)", + "__SIG_ATOMIC_TYPE__": "int", + "__SIG_ATOMIC_WIDTH__": "32", + "__SIZEOF_DOUBLE__": "8", + "__SIZEOF_FLOAT128__": "16", + "__SIZEOF_FLOAT80__": "16", + "__SIZEOF_FLOAT__": "4", + "__SIZEOF_INT128__": "16", + "__SIZEOF_INT__": "4", + "__SIZEOF_LONG_DOUBLE__": "16", + "__SIZEOF_LONG_LONG__": "8", + "__SIZEOF_LONG__": "8", + "__SIZEOF_POINTER__": "8", + "__SIZEOF_PTRDIFF_T__": "8", + "__SIZEOF_SHORT__": "2", + "__SIZEOF_SIZE_T__": "8", + "__SIZEOF_WCHAR_T__": "4", + "__SIZEOF_WINT_T__": "4", + "__SIZE_MAX__": "0xffffffffffffffffUL", + "__SIZE_TYPE__": "long unsigned int", + "__SIZE_WIDTH__": "64", + "__SSE2_MATH__": "1", + "__SSE2__": "1", + "__SSE_MATH__": "1", + "__SSE__": "1", + "__STDC_HOSTED__": "1", + "__STDC_IEC_559_COMPLEX__": "1", + "__STDC_IEC_559__": "1", + "__STDC_ISO_10646__": "201706L", + "__STDC_UTF_16__": "1", + "__STDC_UTF_32__": "1", + "__UINT16_C(c)": "c", + "__UINT16_MAX__": "0xffff", + "__UINT16_TYPE__": "short unsigned int", + "__UINT32_C(c)": "c ## U", + "__UINT32_MAX__": "0xffffffffU", + "__UINT32_TYPE__": "unsigned int", + "__UINT64_C(c)": "c ## UL", + "__UINT64_MAX__": "0xffffffffffffffffUL", + "__UINT64_TYPE__": "long unsigned int", + "__UINT8_C(c)": "c", + "__UINT8_MAX__": "0xff", + "__UINT8_TYPE__": "unsigned char", + "__UINTMAX_C(c)": "c ## UL", + "__UINTMAX_MAX__": "0xffffffffffffffffUL", + "__UINTMAX_TYPE__": "long unsigned int", + "__UINTPTR_MAX__": "0xffffffffffffffffUL", + "__UINTPTR_TYPE__": "long unsigned int", + "__UINT_FAST16_MAX__": "0xffffffffffffffffUL", + "__UINT_FAST16_TYPE__": "long unsigned int", + "__UINT_FAST32_MAX__": "0xffffffffffffffffUL", + "__UINT_FAST32_TYPE__": "long unsigned int", + "__UINT_FAST64_MAX__": "0xffffffffffffffffUL", + "__UINT_FAST64_TYPE__": "long unsigned int", + "__UINT_FAST8_MAX__": "0xff", + "__UINT_FAST8_TYPE__": "unsigned char", + "__UINT_LEAST16_MAX__": "0xffff", + "__UINT_LEAST16_TYPE__": "short unsigned int", + "__UINT_LEAST32_MAX__": "0xffffffffU", + "__UINT_LEAST32_TYPE__": "unsigned int", + "__UINT_LEAST64_MAX__": "0xffffffffffffffffUL", + "__UINT_LEAST64_TYPE__": "long unsigned int", + "__UINT_LEAST8_MAX__": "0xff", + "__UINT_LEAST8_TYPE__": "unsigned char", + "__USER_LABEL_PREFIX__": "", + "__WCHAR_MAX__": "0x7fffffff", + "__WCHAR_MIN__": "(-__WCHAR_MAX__ - 1)", + "__WCHAR_TYPE__": "int", + "__WCHAR_WIDTH__": "32", + "__WINT_MAX__": "0xffffffffU", + "__WINT_MIN__": "0U", + "__WINT_TYPE__": "unsigned int", + "__WINT_WIDTH__": "32", + "__amd64": "1", + "__amd64__": "1", + "__code_model_small__": "1", + "__gnu_linux__": "1", + "__k8": "1", + "__k8__": "1", + "__linux": "1", + "__linux__": "1", + "__unix": "1", + "__unix__": "1", + "__x86_64": "1", + "__x86_64__": "1", + "linux": "1", + "unix": "1" + }, + "sys_include_envvar": null, + "sys_include_path": [ + "/usr/local/lib/gcc/x86_64-pc-linux-gnu/9.3.0/../../../../include/c++/9.3.0", + "/usr/local/lib/gcc/x86_64-pc-linux-gnu/9.3.0/../../../../include/c++/9.3.0/x86_64-pc-linux-gnu", + "/usr/local/lib/gcc/x86_64-pc-linux-gnu/9.3.0/../../../../include/c++/9.3.0/backward", + "/usr/local/lib/gcc/x86_64-pc-linux-gnu/9.3.0/include", + "/usr/local/include", + "/usr/local/lib/gcc/x86_64-pc-linux-gnu/9.3.0/include-fixed", + "/usr/include/x86_64-linux-gnu", + "/usr/include" + ] + } + }, + "language_cxx.command.#": "/usr/bin/g++", + "language_cxx.info.#": "Using built-in specs.\nCOLLECT_GCC=/usr/bin/g++\nCOLLECT_LTO_WRAPPER=/usr/local/libexec/gcc/x86_64-pc-linux-gnu/9.3.0/lto-wrapper\nTarget: x86_64-pc-linux-gnu\nConfigured with: /tmp/gcc-9.3.0/configure --disable-bootstrap --enable-languages=c,c++,lto --prefix=/usr/local --program-suffix=-9.3\nThread model: posix\ngcc version 9.3.0 (GCC) \n", + "linker": { + "library_path": [ + "/usr/local/lib/gcc/x86_64-pc-linux-gnu/9.3.0/", + "/usr/local/lib/gcc/x86_64-pc-linux-gnu/9.3.0/../../../../lib64/", + "/lib/x86_64-linux-gnu/", + "/lib/../lib64/", + "/usr/lib/x86_64-linux-gnu/", + "/usr/lib/../lib64/", + "/usr/local/lib/gcc/x86_64-pc-linux-gnu/9.3.0/../../../", + "/lib/", + "/usr/lib/" + ] + }, + "types": { + "char16_t_type": "unsigned short", + "char32_t_type": "unsigned int", + "char_bits": 8, + "double_type": { + "alignof": 8, + "sizeof": 8 + }, + "float_type": { + "alignof": 4, + "sizeof": 4 + }, + "int_type": { + "alignof": 4, + "sizeof": 4 + }, + "long_double_type": { + "alignof": 16, + "sizeof": 16 + }, + "long_long_type": { + "alignof": 8, + "sizeof": 8 + }, + "long_type": { + "alignof": 8, + "sizeof": 8 + }, + "pointer_type": { + "alignof": 8, + "sizeof": 8 + }, + "ptrdiff_t_type": "signed long", + "short_type": { + "alignof": 2, + "sizeof": 2 + }, + "size_t_type": "unsigned long", + "wchar_t_type": "signed int", + "wint_t_type": "unsigned int" + } + } + }, + "_Format": "1.0", + "_Version": "7.5.0", + "_VersionNum": [ + 7, + 5, + 0, + 11376 + ] +} + diff --git a/coin/provisioning/common/linux/axivion/post_processing.py b/coin/provisioning/common/linux/axivion/post_processing.py new file mode 100644 index 00000000000..53f7223bdf4 --- /dev/null +++ b/coin/provisioning/common/linux/axivion/post_processing.py @@ -0,0 +1,34 @@ +#Copyright (C) 2024 The Qt Company Ltd +#SPDX-License-Identifier: LicenseRef-Qt-Commercial OR LGPL-3.0-only OR GPL-2.0-only OR GPL-3.0-only + +import re + +import axivion.config +from axivion.analysis.post_processing import FilterAction +from bauhaus import ir + +analysis = axivion.config.get_analysis() + +qt_inline_pattern = re.compile(r"QT_.*_INLINE(_IMPL)?_SINCE\(\d+,\d+\)") +def exclude_inlined_by_qt_inline_macro(sv, ir_graph): + node = ir_graph.get_node(ir.Physical, sv.primary_sloc.pir_node_number) + + # we have to check on the token stream as the macro might expand to nothing + # -> only the invocation is in the IR, but not in the AST of the routine decl / def + preceeding_string = "" + + token = node.Token + while True: + try: + token_value = re.sub('^#\\s+', '#', token.Value) + if token_value in {';', '{', '}', '#define'}: + break + preceeding_string = token.Value + preceeding_string + token = token.prev() + except StopIteration: + break + if re.match(qt_inline_pattern, preceeding_string): + return FilterAction.exclude + return FilterAction.normal + +analysis['Qt-Generic-NoFunctionDefinitionInHeader'].post_processing.add_filter(exclude_inlined_by_qt_inline_macro, inputs=[ir.Graph]) diff --git a/coin/provisioning/common/linux/axivion/rule_config.json b/coin/provisioning/common/linux/axivion/rule_config.json new file mode 100644 index 00000000000..bc6505e4cb2 --- /dev/null +++ b/coin/provisioning/common/linux/axivion/rule_config.json @@ -0,0 +1,210 @@ +{ + "Analysis": { + "CloneDetection": { + "_active": true, + "excludes": [ + "$(splitpath:EXCLUDE_FILES)" + ] + }, + "Frameworks-QtSupport": { + "_active": true, + "exclude_qt_generated_files": true, + "qtdir": "/home/qt/work/install" + }, + "Qt-AutoUnexpectedQStringbuilder": { + "_active": true + }, + "Qt-BaseClassEvent": { + "_active": true + }, + "Qt-ChildEventQObjectCast": { + "_active": true + }, + "Qt-Connect3argLambda": { + "_active": true + }, + "Qt-ConnectByName": { + "_active": true + }, + "Qt-ConnectNonSignal": { + "_active": true + }, + "Qt-ConstSignalOrSlot": { + "_active": true + }, + "Qt-CtorMissingParentArgument": { + "_active": true + }, + "Qt-DetachingTemporary": { + "_active": true + }, + "Qt-FullyQualifiedMocTypes": { + "_active": true + }, + "Qt-FunctionArgsByValueRef": { + "_active": true + }, + "Qt-Generic-DuplicateIncludeGuard": { + "_active": true + }, + "Qt-Generic-FormatSpecifier": { + "_active": true + }, + "Qt-Generic-InitializeAllFieldsInConstructor": { + "_active": true + }, + "Qt-Generic-MissingBaseCopy": { + "_active": true + }, + "Qt-Generic-MissingIncludeGuard": { + "_active": true + }, + "Qt-Generic-NoAbsoluteInclude": { + "_active": true + }, + "Qt-Generic-NoFunctionDefinitionInHeader": { + "_active": true + }, + "Qt-Generic-NoIrregularInclude": { + "_active": true + }, + "Qt-Generic-NoMixOfClassStruct": { + "_active": true + }, + "Qt-Generic-NoOverloadedOperators": { + "_active": true + }, + "Qt-Generic-NoReferenceToLocalVariable": { + "_active": true + }, + "Qt-Generic-QNetworkReplyDeleteLater": { + "_active": true + }, + "Qt-Generic-ThrowByValueCatchByReference": { + "_active": true + }, + "Qt-Generic-TypedefCheck": { + "_active": true + }, + "Qt-Generic-WrongIncludeCasing": { + "_active": true + }, + "Qt-GlobalConstCharPointer": { + "_active": true + }, + "Qt-IncorrectEmit": { + "_active": true + }, + "Qt-InstallEventFilter": { + "_active": true + }, + "Qt-LambdaInConnect": { + "_active": true + }, + "Qt-LambdaUniqueConnection": { + "_active": true + }, + "Qt-LowercaseQmlTypeName": { + "_active": true + }, + "Qt-MissingQObjectMacro": { + "_active": true + }, + "Qt-MutableContainerKey": { + "_active": true + }, + "Qt-NonPodGlobalStatic": { + "_active": true + }, + "Qt-OldStyleConnect": { + "_active": true + }, + "Qt-OverloadedSignal": { + "_active": true + }, + "Qt-OverriddenSignal": { + "_active": true + }, + "Qt-PostEvent": { + "_active": true + }, + "Qt-QDateTimeUTC": { + "_active": true + }, + "Qt-QEnums": { + "_active": true + }, + "Qt-QLatin1StringNonAscii": { + "_active": true + }, + "Qt-QMapWithPointerKey": { + "_active": true + }, + "Qt-QPropertyWithoutNotify": { + "_active": true + }, + "Qt-QStringArg": { + "_active": true + }, + "Qt-QStringComparisonToImplicitChar": { + "_active": true + }, + "Qt-QhashNamespace": { + "_active": true + }, + "Qt-QtMacros": { + "_active": true + }, + "Qt-RangeLoopDetach": { + "_active": false + }, + "Qt-RangeLoopReference": { + "_active": true + }, + "Qt-ReturningDataFromTemporary": { + "_active": true + }, + "Qt-RuleOfThree": { + "_active": true + }, + "Qt-RuleOfTwoSoft": { + "_active": true + }, + "Qt-SkippedBaseMethod": { + "_active": true + }, + "Qt-StrictIterators": { + "_active": true + }, + "Qt-TemporaryIterator": { + "_active": true + }, + "Qt-UnusedNonTrivialVariable": { + "_active": true + }, + "Qt-VirtualSignal": { + "_active": true + }, + "Qt-WritingToTemporary": { + "_active": true + }, + "Qt-WrongQEventCast": { + "_active": true + }, + "Qt-WrongQGlobalStatic": { + "_active": true + }, + "Stylechecks": { + "excludes": [ + "$(splitpath:EXCLUDE_FILES)" + ] + } + }, + "_Format": "1.0", + "_VersionNum": [ + 7, + 8, + 0, + 15004 + ] +} diff --git a/coin/provisioning/common/linux/axivion/start_analysis.sh b/coin/provisioning/common/linux/axivion/start_analysis.sh new file mode 100755 index 00000000000..b5becfa9809 --- /dev/null +++ b/coin/provisioning/common/linux/axivion/start_analysis.sh @@ -0,0 +1,13 @@ +#!/bin/bash +#Copyright (C) 2024 The Qt Company Ltd +#SPDX-License-Identifier: LicenseRef-Qt-Commercial OR LGPL-3.0-only OR GPL-2.0-only OR GPL-3.0-only + +$HOME/bauhaus-suite/setup.sh --non-interactive +export PATH=/home/qt/bauhaus-suite/bin:$PATH +export BAUHAUS_CONFIG=$(cd $(dirname $(readlink -f $0)) && pwd) +export AXIVION_VERSION_NAME=$(git rev-parse HEAD) +export EXCLUDE_FILES="build/*:src/3rdparty/*" +export MODULE=$TESTED_MODULE_COIN +export PACKAGE="Add-ons" +export IRNAME=build/$TESTED_MODULE_COIN.ir +axivion_ci "$@" diff --git a/coin/provisioning/qtci-linux-Ubuntu-22.04-x86_64/93-axivion-bauhaus-suite.sh b/coin/provisioning/qtci-linux-Ubuntu-22.04-x86_64/93-axivion-bauhaus-suite.sh index 8cecbbc3788..8fe3fab872e 100755 --- a/coin/provisioning/qtci-linux-Ubuntu-22.04-x86_64/93-axivion-bauhaus-suite.sh +++ b/coin/provisioning/qtci-linux-Ubuntu-22.04-x86_64/93-axivion-bauhaus-suite.sh @@ -1,6 +1,39 @@ #!/bin/bash -#Copyright (C) 2023 The Qt Company Ltd +#Copyright (C) 2024 The Qt Company Ltd #SPDX-License-Identifier: LicenseRef-Qt-Commercial OR LGPL-3.0-only OR GPL-2.0-only OR GPL-3.0-only -# shellcheck source=../common/linux/axivion-bauhaus-suite.sh -source "${BASH_SOURCE%/*}/../common/linux/axivion-bauhaus-suite.sh" +# This script installs Axivion Bauhaus Suite tool. + +set -ex + +# shellcheck source=../common/unix/DownloadURL.sh +source "${BASH_SOURCE%/*}/../common/unix/DownloadURL.sh" + +DownloadAndExtract () { + url=$1 + sha=$2 + file=$3 + + DownloadURL "$url" "$url" "$sha" "$file" + tar -xzvf "$file" + + rm -rf "$file" +} + + +# Axivion Bauhaus Suite +sourceFile="http://ci-files01-hki.ci.qt.io/input/axivion/bauhaus-suite-7_8_0-x86_64-gnu_linux.tar.gz" +targetFile="bauhaus-suite-7_8_0-x86_64-gnu_linux.tar.gz" +sha1="bae1a7091ab9582822bfcd00b826e07d9b467a04" +cd "$HOME" +DownloadAndExtract "$sourceFile" "$sha1" "$targetFile" "$HOME" + +mkdir "$HOME/.bauhaus" +cd "$HOME/.bauhaus" +wget http://ci-files01-hki.ci.qt.io/input/axivion/Qt_Evaluation_QSR_INTERN_20250118.key +cd "$HOME" + +#Axivion configuration +cp -r "${BASH_SOURCE%/*}/../common/linux/axivion/" "$HOME/" + +echo "Axivion Bauhaus Suite = 7.8.0" >> ~/versions.txt diff --git a/coin/provisioning/qtci-linux-Ubuntu-24.04-x86_64/93-axivion-bauhaus-suite.sh b/coin/provisioning/qtci-linux-Ubuntu-24.04-x86_64/93-axivion-bauhaus-suite.sh deleted file mode 100644 index 8cecbbc3788..00000000000 --- a/coin/provisioning/qtci-linux-Ubuntu-24.04-x86_64/93-axivion-bauhaus-suite.sh +++ /dev/null @@ -1,6 +0,0 @@ -#!/bin/bash -#Copyright (C) 2023 The Qt Company Ltd -#SPDX-License-Identifier: LicenseRef-Qt-Commercial OR LGPL-3.0-only OR GPL-2.0-only OR GPL-3.0-only - -# shellcheck source=../common/linux/axivion-bauhaus-suite.sh -source "${BASH_SOURCE%/*}/../common/linux/axivion-bauhaus-suite.sh"