Redirected output of protocol checker to file

This commit is contained in:
Johannes Feldmann
2018-12-18 11:14:05 +01:00
parent f34a257ce7
commit d293fe9763
3 changed files with 5 additions and 6 deletions

View File

@@ -12,7 +12,6 @@ stages:
cache:
paths:
- build/
- coverage/
build:
stage: build

View File

@@ -12,7 +12,7 @@ example_ddr3:
- 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
- mkdir -p ${CI_PROJECT_DIR}/coverage
- lcov -c -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
after_script:
- cd build/
- find . -name "*.gcno" -type f -delete
@@ -38,7 +38,7 @@ fr_fcfs:
- 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
- mkdir -p ${CI_PROJECT_DIR}/coverage
- lcov -c -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
after_script:
- cd build/
- find . -name "*.gcno" -type f -delete
@@ -57,11 +57,11 @@ protocol_checker:
stage: DDR3
script:
- cd build/simulator
- ./DRAMSys ../../DRAMSys/tests/DDR3/simulations/ddr3-protocol_checker.xml ../../DRAMSys/tests/DDR3/
- ./DRAMSys ../../DRAMSys/tests/DDR3/simulations/ddr3-protocol_checker.xml ../../DRAMSys/tests/DDR3/ > output.txt
- echo "TODO"
# Run Code Coverage
- mkdir -p ${CI_PROJECT_DIR}/coverage
- lcov -c -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
after_script:
- cd build/
- find . -name "*.gcno" -type f -delete

View File

@@ -17,7 +17,7 @@ example_wideio:
- 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
- mkdir -p ${CI_PROJECT_DIR}/coverage
- lcov -c -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
after_script:
- cd build/
- find . -name "*.gcno" -type f -delete