From bd42e31b2a9b187221b5748d711bc9dfe68a5ad8 Mon Sep 17 00:00:00 2001 From: Wilson Snyder Date: Sat, 7 Mar 2020 20:08:41 -0500 Subject: [PATCH] Tests: For travis, skip Bit::Vector and show intall dates. --- .travis.yml | 6 +++++- ci/build_vcddiff.sh | 3 +++ ci/build_verilator.sh | 3 +++ ci/test.sh | 3 +++ 4 files changed, 14 insertions(+), 1 deletion(-) diff --git a/.travis.yml b/.travis.yml index b9e719b11..4dccd03aa 100644 --- a/.travis.yml +++ b/.travis.yml @@ -24,10 +24,14 @@ cache: - $VERILATOR_CACHE before_install: + - date # Perl modules needed for testing - - yes yes | sudo cpan -fTi Unix::Processors Parallel::Forker Bit::Vector +# Not listing Bit::Vector as slow to install, and only skips one test + - yes yes | sudo cpan -fi Unix::Processors Parallel::Forker + - date - sudo apt-get install gdb gtkwave - sudo apt-get install libgoogle-perftools-dev + - date before_script: - bash -x ci/build_vcddiff.sh - bash -x ci/build_verilator.sh diff --git a/ci/build_vcddiff.sh b/ci/build_vcddiff.sh index 9a0e8b6da..18ee74e68 100755 --- a/ci/build_vcddiff.sh +++ b/ci/build_vcddiff.sh @@ -6,6 +6,7 @@ # Lesser General Public License Version 3 or the Perl Artistic License # Version 2.0. set -e +date # NB: it would be better to add this via a PPA @@ -16,3 +17,5 @@ VCDDIFF_DIR=${TMP_DIR}/vcddiff git -C "${VCDDIFF_DIR}" checkout 5112f88b7ba8818dce9dfb72619e64a1fc19542c make -C "${VCDDIFF_DIR}" sudo cp "${VCDDIFF_DIR}/vcddiff" /usr/local/bin + +date diff --git a/ci/build_verilator.sh b/ci/build_verilator.sh index cd1d7d558..7766453ac 100755 --- a/ci/build_verilator.sh +++ b/ci/build_verilator.sh @@ -15,6 +15,7 @@ # process or add Verilator as a Git submodule. Verilator tarballs can # not be used as the script relies on Git revisions for caching. set -e +date if [ -z "${VERILATOR_NUM_JOBS}" ]; then VERILATOR_NUM_JOBS=$(nproc) @@ -62,3 +63,5 @@ else autoconf && ./configure ${VERILATOR_CONFIG_FLAGS} cp ${VERILATOR_CACHE}/* bin fi + +date diff --git a/ci/test.sh b/ci/test.sh index 6b72bc5cb..2170510ca 100755 --- a/ci/test.sh +++ b/ci/test.sh @@ -6,6 +6,7 @@ # Lesser General Public License Version 3 or the Perl Artistic License # Version 2.0. set -e +date export DRIVER_FLAGS='-j 0 --quiet --rerun' @@ -24,3 +25,5 @@ case $1 in exit -1 ;; esac + +date