[ci] Use FireSim's setup script for CI
This commit is contained in:
@@ -15,6 +15,13 @@ trap clean EXIT
|
|||||||
|
|
||||||
cd $LOCAL_CHIPYARD_DIR
|
cd $LOCAL_CHIPYARD_DIR
|
||||||
./scripts/init-submodules-no-riscv-tools.sh
|
./scripts/init-submodules-no-riscv-tools.sh
|
||||||
|
cd $LOCAL_CHIPYARD_DIR/sims/firesim/sim/firesim-lib/src/main/cc/lib
|
||||||
|
git submodule update --init elfutils libdwarf
|
||||||
|
cd $LOCAL_CHIPYARD_DIR/sims/firesim
|
||||||
|
./scripts/build-libelf.sh
|
||||||
|
./scripts/build-libdwarf.sh
|
||||||
|
cd $LOCAL_CHIPYARD_DIR
|
||||||
|
|
||||||
|
|
||||||
# set stricthostkeychecking to no (must happen before rsync)
|
# set stricthostkeychecking to no (must happen before rsync)
|
||||||
run "echo \"Ping $SERVER\""
|
run "echo \"Ping $SERVER\""
|
||||||
|
|||||||
@@ -12,10 +12,19 @@ export FIRESIM_ENV_SOURCED=1
|
|||||||
|
|
||||||
SIMULATION_ARGS="${mapping[$1]}"
|
SIMULATION_ARGS="${mapping[$1]}"
|
||||||
|
|
||||||
|
cd $LOCAL_CHIPYARD_DIR/sims/firesim
|
||||||
|
./scripts/build-libelf.sh
|
||||||
|
./scripts/build-libdwarf.sh
|
||||||
|
cd $LOCAL_CHIPYARD_DIR
|
||||||
|
|
||||||
|
|
||||||
run_test_suite () {
|
run_test_suite () {
|
||||||
|
export RISCV=$LOCAL_RISCV_DIR
|
||||||
|
export LD_LIBRARY_PATH=$LOCAL_RISCV_DIR/lib
|
||||||
make -C $LOCAL_FIRESIM_DIR $SIMULATION_ARGS run-${1}-tests-fast
|
make -C $LOCAL_FIRESIM_DIR $SIMULATION_ARGS run-${1}-tests-fast
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
run_test_suite bmark
|
run_test_suite bmark
|
||||||
run_test_suite nic
|
run_test_suite nic
|
||||||
run_test_suite blockdev
|
run_test_suite blockdev
|
||||||
|
|||||||
Reference in New Issue
Block a user