Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • Jenkinsfile

    r9a90092 r4f3807d  
    103103                        }
    104104
    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}"
     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}"
    106108
    107109                        // Configure libcfa
     
    150152                sh 'ulimit -a'
    151153
    152                 jopt = '-j $(nproc)'
    153 
    154                 Tools.BuildStage('Test: Debug', true) {
     154                Tools.BuildStage('Test: short', !Settings.RunAllTests) {
    155155                        dir (BuildDir) {
    156156                                //Run the tests from the tests directory
    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"""
     157                                sh "make --no-print-directory -C tests archiveerrors=${BuildDir}/tests/crashes/short"
    158158                        }
    159159                }
    160160
    161                 Tools.BuildStage('Test: Release', Settings.RunAllTests) {
     161                Tools.BuildStage('Test: full', Settings.RunAllTests) {
    162162                        dir (BuildDir) {
    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"""
     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"""
    165170                        }
    166171                }
     
    276281        public final CC_Desc Compiler
    277282        public final Arch_Desc Architecture
     283        public final Boolean NewAST
    278284        public final Boolean RunAllTests
    279285        public final Boolean RunBenchmark
     
    333339
    334340                this.IsSandbox          = (branch == "jenkins-sandbox")
     341                this.NewAST             = param.NewAST
    335342                this.RunAllTests        = param.RunAllTests
    336343                this.RunBenchmark       = param.RunBenchmark
     
    342349                this.DescShort = "${ this.Compiler.name }:${ this.Architecture.name }${full}"
    343350
     351                final ast = this.NewAST ? "New AST" : "Old AST"
    344352                this.DescLong = """Compiler              : ${ this.Compiler.name } (${ this.Compiler.CXX }/${ this.Compiler.CC })
     353AST Version             : ${ ast.toString() }
    345354Architecture            : ${ this.Architecture.name }
    346355Arc Flags               : ${ this.Architecture.flags }
     
    381390                                ],                                                                                              \
    382391                                [$class: 'BooleanParameterDefinition',                                                  \
    383                                         description: 'If false, the test suite is only ran in debug',   \
     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',              \
    384398                                        name: 'RunAllTests',                                                            \
    385399                                        defaultValue: false,                                                            \
Note: See TracChangeset for help on using the changeset viewer.