One stage for tests in CI.
This commit is contained in:
@@ -6,11 +6,8 @@ variables:
|
||||
|
||||
stages:
|
||||
- build
|
||||
- LPDDR4
|
||||
- DDR3
|
||||
- DDR4
|
||||
- HBM2
|
||||
- Coverage
|
||||
- tests
|
||||
- coverage
|
||||
|
||||
build:
|
||||
stage: build
|
||||
@@ -39,7 +36,7 @@ build:
|
||||
- coverage/
|
||||
|
||||
coverage:
|
||||
stage: Coverage
|
||||
stage: coverage
|
||||
coverage: '/Total:\|(\d+\.?\d+\%)/'
|
||||
script:
|
||||
# delete all empty files since they produce errors
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
# DDR4 with 4 bank groups, flexible rankwise refresh and FrFcfs scheduler:
|
||||
example_ddr4:
|
||||
stage: DDR4
|
||||
example_DDR4:
|
||||
stage: tests
|
||||
script:
|
||||
- export GCOV_PREFIX=$(pwd)
|
||||
- export GCOV_PREFIX_STRIP=$(pwd | awk -F"/" '{print NF-1}')
|
||||
@@ -25,5 +25,4 @@ example_ddr4:
|
||||
paths:
|
||||
- build/simulator/ddr4-bankgrp_ddr4_ch0.tdb
|
||||
- coverage/${CI_JOB_NAME}.out
|
||||
expire_in: 2 days
|
||||
|
||||
expire_in: 2 days
|
||||
@@ -1,25 +1,25 @@
|
||||
example_HBM2:
|
||||
artifacts:
|
||||
expire_in: "2 days"
|
||||
paths:
|
||||
- build/simulator/hbm2-example_hbm2_ch0.tdb
|
||||
- "coverage/${CI_JOB_NAME}.out"
|
||||
cache:
|
||||
key: build
|
||||
paths:
|
||||
- build/
|
||||
policy: pull
|
||||
script:
|
||||
- "export GCOV_PREFIX=$(pwd)"
|
||||
- "export GCOV_PREFIX_STRIP=$(pwd | awk -F\"/\" '{print NF-1}')"
|
||||
- "cd build/simulator"
|
||||
- "./DRAMSys ../../DRAMSys/tests/HBM2/simulations/hbm2-example.json ../../DRAMSys/tests/HBM2/"
|
||||
- "ls -lah"
|
||||
- "ls -lah ../../DRAMSys/tests/HBM2/expected/"
|
||||
- "sqldiff ../../DRAMSys/tests/HBM2/expected/hbm2-example_hbm2_ch0.tdb hbm2-example_hbm2_ch0.tdb"
|
||||
- "perl -e 'if(`sqldiff ../../DRAMSys/tests/HBM2/expected/hbm2-example_hbm2_ch0.tdb hbm2-example_hbm2_ch0.tdb` eq \"\") {exit(0)} else {exit(-1)}'"
|
||||
- "sqldiff ../../DRAMSys/tests/HBM2/expected/hbm2-example_hbm2_ch1.tdb hbm2-example_hbm2_ch1.tdb"
|
||||
- "perl -e 'if(`sqldiff ../../DRAMSys/tests/HBM2/expected/hbm2-example_hbm2_ch1.tdb hbm2-example_hbm2_ch1.tdb` eq \"\") {exit(0)} else {exit(-1)}'"
|
||||
- "lcov -q -c --rc geninfo_adjust_src_path=$GCOV_PREFIX -d ${CI_PROJECT_DIR}/build/ -o ${CI_PROJECT_DIR}/coverage/${CI_JOB_NAME}.out"
|
||||
stage: HBM2
|
||||
|
||||
stage: tests
|
||||
script:
|
||||
- "export GCOV_PREFIX=$(pwd)"
|
||||
- "export GCOV_PREFIX_STRIP=$(pwd | awk -F\"/\" '{print NF-1}')"
|
||||
- "cd build/simulator"
|
||||
- "./DRAMSys ../../DRAMSys/tests/HBM2/simulations/hbm2-example.json ../../DRAMSys/tests/HBM2/"
|
||||
- "ls -lah"
|
||||
- "ls -lah ../../DRAMSys/tests/HBM2/expected/"
|
||||
- "sqldiff ../../DRAMSys/tests/HBM2/expected/hbm2-example_hbm2_ch0.tdb hbm2-example_hbm2_ch0.tdb"
|
||||
- "perl -e 'if(`sqldiff ../../DRAMSys/tests/HBM2/expected/hbm2-example_hbm2_ch0.tdb hbm2-example_hbm2_ch0.tdb` eq \"\") {exit(0)} else {exit(-1)}'"
|
||||
- "sqldiff ../../DRAMSys/tests/HBM2/expected/hbm2-example_hbm2_ch1.tdb hbm2-example_hbm2_ch1.tdb"
|
||||
- "perl -e 'if(`sqldiff ../../DRAMSys/tests/HBM2/expected/hbm2-example_hbm2_ch1.tdb hbm2-example_hbm2_ch1.tdb` eq \"\") {exit(0)} else {exit(-1)}'"
|
||||
- "lcov -q -c --rc geninfo_adjust_src_path=$GCOV_PREFIX -d ${CI_PROJECT_DIR}/build/ -o ${CI_PROJECT_DIR}/coverage/${CI_JOB_NAME}.out"
|
||||
cache:
|
||||
key: build
|
||||
paths:
|
||||
- build/
|
||||
policy: pull
|
||||
|
||||
artifacts:
|
||||
paths:
|
||||
- build/simulator/hbm2-example_hbm2_ch0.tdb
|
||||
- "coverage/${CI_JOB_NAME}.out"
|
||||
expire_in: "2 days"
|
||||
@@ -1,6 +1,6 @@
|
||||
# DDR3 Dual Rank Test with Staggered Power Down Policy and Scheduler FrFcfsGrp
|
||||
example_ddr3:
|
||||
stage: DDR3
|
||||
example_DDR3:
|
||||
stage: tests
|
||||
script:
|
||||
- export GCOV_PREFIX=$(pwd)
|
||||
- export GCOV_PREFIX_STRIP=$(pwd | awk -F"/" '{print NF-1}')
|
||||
@@ -25,5 +25,4 @@ example_ddr3:
|
||||
paths:
|
||||
- build/simulator/ddr3-dual-rank_ddr3_ch0.tdb
|
||||
- coverage/${CI_JOB_NAME}.out
|
||||
expire_in: 2 days
|
||||
|
||||
expire_in: 2 days
|
||||
@@ -1,6 +1,6 @@
|
||||
# LPDDR4 with Bankwise Flexible Refresh and FIFO Scheduler:
|
||||
example_lpddr4:
|
||||
stage: LPDDR4
|
||||
example_LPDDR4:
|
||||
stage: tests
|
||||
script:
|
||||
- export GCOV_PREFIX=$(pwd)
|
||||
- export GCOV_PREFIX_STRIP=$(pwd | awk -F"/" '{print NF-1}')
|
||||
@@ -25,4 +25,4 @@ example_lpddr4:
|
||||
paths:
|
||||
- build/simulator/lpddr4-example_lpddr4_ch0.tdb
|
||||
- coverage/${CI_JOB_NAME}.out
|
||||
expire_in: 2 days
|
||||
expire_in: 2 days
|
||||
Reference in New Issue
Block a user