Redefine directory for .gcda files and adjust path to source code files
This commit is contained in:
@@ -22,12 +22,19 @@ build:
|
|||||||
- qmake ../DRAMSys/DRAMSys.pro
|
- qmake ../DRAMSys/DRAMSys.pro
|
||||||
- make -j4
|
- make -j4
|
||||||
- find . -name "*.o" -type f -delete
|
- find . -name "*.o" -type f -delete
|
||||||
|
- rm -rf ${CI_PROJECT_DIR}/coverage
|
||||||
|
- mkdir -p ${CI_PROJECT_DIR}/coverage
|
||||||
|
|
||||||
cache:
|
cache:
|
||||||
key: build
|
key: build
|
||||||
paths:
|
paths:
|
||||||
- build/
|
- build/
|
||||||
policy: push
|
policy: push
|
||||||
|
|
||||||
|
artifacts:
|
||||||
|
paths:
|
||||||
|
- coverage/
|
||||||
|
|
||||||
coverage:
|
coverage:
|
||||||
stage: Coverage
|
stage: Coverage
|
||||||
coverage: '/Total:\|(\d+\.?\d+\%)/'
|
coverage: '/Total:\|(\d+\.?\d+\%)/'
|
||||||
@@ -37,6 +44,7 @@ coverage:
|
|||||||
- ls coverage/ -lah
|
- ls coverage/ -lah
|
||||||
- lcov `find coverage -type f -exec echo "-a {}" \;` -o coverage/final.out
|
- lcov `find coverage -type f -exec echo "-a {}" \;` -o coverage/final.out
|
||||||
- lcov --list coverage/final.out
|
- lcov --list coverage/final.out
|
||||||
|
|
||||||
artifacts:
|
artifacts:
|
||||||
paths:
|
paths:
|
||||||
- coverage/final.out
|
- coverage/final.out
|
||||||
|
|||||||
@@ -2,6 +2,8 @@
|
|||||||
example_ddr3:
|
example_ddr3:
|
||||||
stage: DDR3
|
stage: DDR3
|
||||||
script:
|
script:
|
||||||
|
- export GCOV_PREFIX=$(pwd)
|
||||||
|
- export GCOV_PREFIX_STRIP=$(pwd | awk -F"/" '{print NF-1}')
|
||||||
- cd build/simulator
|
- cd build/simulator
|
||||||
- ./DRAMSys ../../DRAMSys/tests/DDR3/simulations/ddr3-example.xml ../../DRAMSys/tests/DDR3/
|
- ./DRAMSys ../../DRAMSys/tests/DDR3/simulations/ddr3-example.xml ../../DRAMSys/tests/DDR3/
|
||||||
- ls -lah
|
- ls -lah
|
||||||
@@ -11,15 +13,14 @@ example_ddr3:
|
|||||||
- cd ../traceAnalyzer
|
- cd ../traceAnalyzer
|
||||||
- python3 ../../DRAMSys/traceAnalyzer/scripts/tests.py ../simulator/ddr3-example_ddr3_ch0.tdb | if ! grep "failed"; then exit 0; else exit 1; fi
|
- python3 ../../DRAMSys/traceAnalyzer/scripts/tests.py ../simulator/ddr3-example_ddr3_ch0.tdb | if ! grep "failed"; then exit 0; else exit 1; fi
|
||||||
# Run Code Coverage
|
# Run Code Coverage
|
||||||
- mkdir -p ${CI_PROJECT_DIR}/coverage
|
- lcov -q -c --rc geninfo_adjust_src_path=$GCOV_PREFIX -d ${CI_PROJECT_DIR}/build/ -o ${CI_PROJECT_DIR}/coverage/${CI_JOB_NAME}.out
|
||||||
- lcov -q -c -d ${CI_PROJECT_DIR}/build/ -o ${CI_PROJECT_DIR}/coverage/${CI_JOB_NAME}.out
|
|
||||||
|
|
||||||
cache:
|
cache:
|
||||||
key: build
|
key: build
|
||||||
paths:
|
paths:
|
||||||
- build/
|
- build/
|
||||||
policy: pull
|
policy: pull
|
||||||
|
|
||||||
artifacts:
|
artifacts:
|
||||||
paths:
|
paths:
|
||||||
- build/simulator/ddr3-example_ddr3_ch0.tdb
|
- build/simulator/ddr3-example_ddr3_ch0.tdb
|
||||||
@@ -30,6 +31,8 @@ example_ddr3:
|
|||||||
fr_fcfs:
|
fr_fcfs:
|
||||||
stage: DDR3
|
stage: DDR3
|
||||||
script:
|
script:
|
||||||
|
- export GCOV_PREFIX=$(pwd)
|
||||||
|
- export GCOV_PREFIX_STRIP=$(pwd | awk -F"/" '{print NF-1}')
|
||||||
- cd build/simulator
|
- cd build/simulator
|
||||||
- ./DRAMSys ../../DRAMSys/tests/DDR3/simulations/ddr3-fr_fcfs.xml ../../DRAMSys/tests/DDR3/
|
- ./DRAMSys ../../DRAMSys/tests/DDR3/simulations/ddr3-fr_fcfs.xml ../../DRAMSys/tests/DDR3/
|
||||||
- ls -lah
|
- ls -lah
|
||||||
@@ -39,8 +42,7 @@ fr_fcfs:
|
|||||||
- cd ../traceAnalyzer
|
- cd ../traceAnalyzer
|
||||||
- python3 ../../DRAMSys/traceAnalyzer/scripts/tests.py ../simulator/ddr3-fr_fcfs_ddr3_ch0.tdb | if ! grep "failed"; then exit 0; else exit 1; fi
|
- python3 ../../DRAMSys/traceAnalyzer/scripts/tests.py ../simulator/ddr3-fr_fcfs_ddr3_ch0.tdb | if ! grep "failed"; then exit 0; else exit 1; fi
|
||||||
# Run Code Coverage
|
# Run Code Coverage
|
||||||
- mkdir -p ${CI_PROJECT_DIR}/coverage
|
- lcov -q -c --rc geninfo_adjust_src_path=$GCOV_PREFIX -d ${CI_PROJECT_DIR}/build/ -o ${CI_PROJECT_DIR}/coverage/${CI_JOB_NAME}.out
|
||||||
- lcov -q -c -d ${CI_PROJECT_DIR}/build/ -o ${CI_PROJECT_DIR}/coverage/${CI_JOB_NAME}.out
|
|
||||||
|
|
||||||
cache:
|
cache:
|
||||||
key: build
|
key: build
|
||||||
@@ -56,17 +58,18 @@ fr_fcfs:
|
|||||||
- coverage/${CI_JOB_NAME}.out
|
- coverage/${CI_JOB_NAME}.out
|
||||||
expire_in: 2 days
|
expire_in: 2 days
|
||||||
|
|
||||||
# Testing with TLM Protocol Cchecker
|
# Testing with TLM Protocol Checker
|
||||||
protocol_checker:
|
protocol_checker:
|
||||||
stage: DDR3
|
stage: DDR3
|
||||||
script:
|
script:
|
||||||
|
- export GCOV_PREFIX=$(pwd)
|
||||||
|
- export GCOV_PREFIX_STRIP=$(pwd | awk -F"/" '{print NF-1}')
|
||||||
- cd build/simulator
|
- cd build/simulator
|
||||||
- ./DRAMSys ../../DRAMSys/tests/DDR3/simulations/ddr3-protocol_checker.xml ../../DRAMSys/tests/DDR3/ > output.txt
|
- ./DRAMSys ../../DRAMSys/tests/DDR3/simulations/ddr3-protocol_checker.xml ../../DRAMSys/tests/DDR3/ > output.txt
|
||||||
- echo "TODO"
|
- echo "TODO"
|
||||||
- ls -lah
|
- ls -lah
|
||||||
# Run Code Coverage
|
# Run Code Coverage
|
||||||
- mkdir -p ${CI_PROJECT_DIR}/coverage
|
- lcov -q -c --rc geninfo_adjust_src_path=$GCOV_PREFIX -d ${CI_PROJECT_DIR}/build/ -o ${CI_PROJECT_DIR}/coverage/${CI_JOB_NAME}.out
|
||||||
- lcov -q -c -d ${CI_PROJECT_DIR}/build/ -o ${CI_PROJECT_DIR}/coverage/${CI_JOB_NAME}.out
|
|
||||||
|
|
||||||
cache:
|
cache:
|
||||||
key: build
|
key: build
|
||||||
|
|||||||
@@ -2,10 +2,12 @@
|
|||||||
example_wideio:
|
example_wideio:
|
||||||
stage: WIDEIO
|
stage: WIDEIO
|
||||||
script:
|
script:
|
||||||
|
- export GCOV_PREFIX=$(pwd)
|
||||||
|
- export GCOV_PREFIX_STRIP=$(pwd | awk -F"/" '{print NF-1}')
|
||||||
# Generate specific traces for WIDEIO:
|
# Generate specific traces for WIDEIO:
|
||||||
- cd DRAMSys/tests/WIDEIO/traces/
|
- cd DRAMSys/tests/WIDEIO/traces/
|
||||||
- perl generator.pl
|
- perl generator.pl
|
||||||
- cd ../../../../
|
- cd -
|
||||||
# Run DRAMSys
|
# Run DRAMSys
|
||||||
- cd build/simulator
|
- cd build/simulator
|
||||||
- ./DRAMSys ../../DRAMSys/tests/WIDEIO/simulations/wideio-example.xml ../../DRAMSys/tests/WIDEIO/
|
- ./DRAMSys ../../DRAMSys/tests/WIDEIO/simulations/wideio-example.xml ../../DRAMSys/tests/WIDEIO/
|
||||||
@@ -17,15 +19,14 @@ example_wideio:
|
|||||||
- python3 ../../DRAMSys/traceAnalyzer/scripts/tests.py ../simulator/wideio-example_wideio_ch2.tdb | if ! grep "failed"; then exit 0; else exit 1; fi
|
- python3 ../../DRAMSys/traceAnalyzer/scripts/tests.py ../simulator/wideio-example_wideio_ch2.tdb | if ! grep "failed"; then exit 0; else exit 1; fi
|
||||||
- python3 ../../DRAMSys/traceAnalyzer/scripts/tests.py ../simulator/wideio-example_wideio_ch3.tdb | if ! grep "failed"; then exit 0; else exit 1; fi
|
- python3 ../../DRAMSys/traceAnalyzer/scripts/tests.py ../simulator/wideio-example_wideio_ch3.tdb | if ! grep "failed"; then exit 0; else exit 1; fi
|
||||||
# Run Code Coverage
|
# Run Code Coverage
|
||||||
- mkdir -p ${CI_PROJECT_DIR}/coverage
|
- lcov -q -c --rc geninfo_adjust_src_path=$GCOV_PREFIX -d ${CI_PROJECT_DIR}/build/ -o ${CI_PROJECT_DIR}/coverage/${CI_JOB_NAME}.out
|
||||||
- lcov -q -c -d ${CI_PROJECT_DIR}/build/ -o ${CI_PROJECT_DIR}/coverage/${CI_JOB_NAME}.out
|
|
||||||
|
|
||||||
cache:
|
cache:
|
||||||
key: build
|
key: build
|
||||||
paths:
|
paths:
|
||||||
- build/
|
- build/
|
||||||
policy: pull
|
policy: pull
|
||||||
|
|
||||||
allow_failure: true # TODO: should be removed once the problems are fixed!
|
allow_failure: true # TODO: should be removed once the problems are fixed!
|
||||||
|
|
||||||
artifacts:
|
artifacts:
|
||||||
|
|||||||
Reference in New Issue
Block a user