From 94628e78b2b2bf7aaa296481d5a63809af065d9f Mon Sep 17 00:00:00 2001 From: Howard Mao Date: Fri, 24 Apr 2020 17:15:15 -0700 Subject: [PATCH] add icenet and testchipip unit tests to CI --- .circleci/config.yml | 40 ++++++++++++++++++++++++++++++++++++++++ .circleci/defaults.sh | 2 ++ .circleci/run-tests.sh | 6 ++++++ 3 files changed, 48 insertions(+) diff --git a/.circleci/config.yml b/.circleci/config.yml index 801c3b85..ff691e41 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -252,6 +252,16 @@ jobs: steps: - prepare-rtl: project-key: "chipyard-ariane" + prepare-icenet: + executor: main-env + steps: + - prepare-rtl: + project-key: "icenet" + prepare-testchipip: + executor: main-env + steps: + - prepare-rtl: + project-key: "testchipip" chipyard-rocket-run-tests: executor: main-env steps: @@ -337,6 +347,18 @@ jobs: - run-tests: project-key: "chipyard-ariane" timeout: "30m" + icenet-run-tests: + executor: main-env + steps: + - run-tests: + project-key: "icenet" + timeout: "30m" + testchipip-run-tests: + executor: main-env + steps: + - run-tests: + project-key: "testchipip" + timeout: "30m" # Order and dependencies of jobs to run workflows: @@ -431,6 +453,16 @@ workflows: - install-riscv-toolchain - install-verilator + - prepare-icenet: + requires: + - install-riscv-toolchain + - install-verilator + + - prepare-testchipip: + requires: + - install-riscv-toolchain + - install-verilator + # Run the respective tests # Run midasexamples test @@ -495,3 +527,11 @@ workflows: - chipyard-ariane-run-tests: requires: - prepare-chipyard-ariane + + - icenet-run-tests: + requires: + - prepare-icenet + + - testchipip-run-tests: + requires: + - prepare-testchipip diff --git a/.circleci/defaults.sh b/.circleci/defaults.sh index 9dfff4d5..38da902b 100755 --- a/.circleci/defaults.sh +++ b/.circleci/defaults.sh @@ -57,3 +57,5 @@ mapping["tracegen-boom"]="SUB_PROJECT=chipyard CONFIG=BoomTraceGenConfig TOP=Tra mapping["firesim"]="SCALA_TEST=firesim.firesim.RocketNICF1Tests" mapping["firesim-multiclock"]="SCALA_TEST=firesim.firesim.RocketMulticlockF1Tests" mapping["fireboom"]="SCALA_TEST=firesim.firesim.BoomF1Tests" +mapping["icenet"]="SUB_PROJECT=icenet" +mapping["testchipip"]="SUB_PROJECT=testchipip" diff --git a/.circleci/run-tests.sh b/.circleci/run-tests.sh index 480908c9..5f305617 100755 --- a/.circleci/run-tests.sh +++ b/.circleci/run-tests.sh @@ -71,6 +71,12 @@ case $1 in chipyard-ariane) make run-binary-fast -C $LOCAL_SIM_DIR ${mapping[$1]} BINARY=$RISCV/riscv64-unknown-elf/share/riscv-tests/benchmarks/dhrystone.riscv ;; + icenet) + make run-none-fast -C $LOCAL_SIM_DIR ${mapping[$1]} + ;; + testchipip) + make run-none-fast -C $LOCAL_SIM_DIR ${mapping[$1]} + ;; *) echo "No set of tests for $1. Did you spell it right?" exit 1