Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • Jenkinsfile

    r4f3807d r9a90092  
    103103                        }
    104104
    105                         ast = Settings.NewAST ? "--enable-new-ast" : "--disable-new-ast"
    106 
    107                         sh "${SrcDir}/configure CXX=${Settings.Compiler.CXX} CC=${Settings.Compiler.CC} ${Settings.Architecture.flags} AR=gcc-ar RANLIB=gcc-ranlib ${targets} ${ast} --quiet --prefix=${BuildDir}"
     105                        sh "${SrcDir}/configure CXX=${Settings.Compiler.CXX} CC=${Settings.Compiler.CC} ${Settings.Architecture.flags} AR=gcc-ar RANLIB=gcc-ranlib ${targets} --quiet --prefix=${BuildDir}"
    108106
    109107                        // Configure libcfa
     
    152150                sh 'ulimit -a'
    153151
    154                 Tools.BuildStage('Test: short', !Settings.RunAllTests) {
     152                jopt = '-j $(nproc)'
     153
     154                Tools.BuildStage('Test: Debug', true) {
    155155                        dir (BuildDir) {
    156156                                //Run the tests from the tests directory
    157                                 sh "make --no-print-directory -C tests archiveerrors=${BuildDir}/tests/crashes/short"
     157                                sh """make ${jopt} --no-print-directory -C tests timeouts="--timeout=600 --global-timeout=14400" all-tests debug=yes archiveerrors=${BuildDir}/tests/crashes/full-debug"""
    158158                        }
    159159                }
    160160
    161                 Tools.BuildStage('Test: full', Settings.RunAllTests) {
     161                Tools.BuildStage('Test: Release', Settings.RunAllTests) {
    162162                        dir (BuildDir) {
    163                                         jopt = '-j $(nproc)'
    164                                         if( Settings.Architecture.node == 'x86' ) {
    165                                                 jopt = '-j2'
    166                                         }
    167                                         //Run the tests from the tests directory
    168                                         sh """make ${jopt} --no-print-directory -C tests timeouts="--timeout=600 --global-timeout=14400" all-tests debug=yes archiveerrors=${BuildDir}/tests/crashes/full-debug"""
    169                                         sh """make ${jopt} --no-print-directory -C tests timeouts="--timeout=600 --global-timeout=14400" all-tests debug=no  archiveerrors=${BuildDir}/tests/crashes/full-nodebug"""
     163                                //Run the tests from the tests directory
     164                                sh """make ${jopt} --no-print-directory -C tests timeouts="--timeout=600 --global-timeout=14400" all-tests debug=no  archiveerrors=${BuildDir}/tests/crashes/full-nodebug"""
    170165                        }
    171166                }
     
    281276        public final CC_Desc Compiler
    282277        public final Arch_Desc Architecture
    283         public final Boolean NewAST
    284278        public final Boolean RunAllTests
    285279        public final Boolean RunBenchmark
     
    339333
    340334                this.IsSandbox          = (branch == "jenkins-sandbox")
    341                 this.NewAST             = param.NewAST
    342335                this.RunAllTests        = param.RunAllTests
    343336                this.RunBenchmark       = param.RunBenchmark
     
    349342                this.DescShort = "${ this.Compiler.name }:${ this.Architecture.name }${full}"
    350343
    351                 final ast = this.NewAST ? "New AST" : "Old AST"
    352344                this.DescLong = """Compiler              : ${ this.Compiler.name } (${ this.Compiler.CXX }/${ this.Compiler.CC })
    353 AST Version             : ${ ast.toString() }
    354345Architecture            : ${ this.Architecture.name }
    355346Arc Flags               : ${ this.Architecture.flags }
     
    390381                                ],                                                                                              \
    391382                                [$class: 'BooleanParameterDefinition',                                                  \
    392                                         description: 'If true, build compiler using new AST',           \
    393                                         name: 'NewAST',                                                                         \
    394                                         defaultValue: true,                                                             \
    395                                 ],                                                                                              \
    396                                 [$class: 'BooleanParameterDefinition',                                                  \
    397                                         description: 'If false, only the quick test suite is ran',              \
     383                                        description: 'If false, the test suite is only ran in debug',   \
    398384                                        name: 'RunAllTests',                                                            \
    399385                                        defaultValue: false,                                                            \
Note: See TracChangeset for help on using the changeset viewer.