46 lines
1.7 KiB
Bash
Executable File
46 lines
1.7 KiB
Bash
Executable File
#!/bin/bash
|
|
|
|
# exit when any command fails
|
|
set -e
|
|
|
|
make -s
|
|
|
|
# Dogfood tests
|
|
./ci/test_runtime.sh
|
|
./ci/test_riscv_isa.sh
|
|
./ci/test_opencl.sh
|
|
./ci/test_driver.sh
|
|
./ci/test_simx.sh
|
|
./ci/test_compiler.sh
|
|
|
|
# Blackbox tests
|
|
./ci/travis_run.py ./ci/blackbox.sh --driver=vlsim --cores=1 --perf --app=demo --args="-n1"
|
|
./ci/travis_run.py ./ci/blackbox.sh --driver=vlsim --cores=1 --debug --app=demo --args="-n1"
|
|
./ci/travis_run.py ./ci/blackbox.sh --driver=vlsim --cores=1 --scope --app=basic --args="-t0 -n1"
|
|
./ci/travis_run.py ./ci/blackbox.sh --driver=rtlsim --cores=2 --clusters=2 --app=demo --args="-n1"
|
|
./ci/travis_run.py ./ci/blackbox.sh --driver=rtlsim --cores=2 --l2cache --app=demo --args="-n1"
|
|
./ci/travis_run.py ./ci/blackbox.sh --driver=rtlsim --cores=2 --clusters=2 --l2cache --l3cache --app=demo --args="-n1"
|
|
|
|
# disabling M extension
|
|
CONFIGS=-DEXT_M_DISABLE make -C hw/simulate
|
|
|
|
# disabling F extension
|
|
CONFIGS=-DEXT_F_DISABLE make -C hw/simulate
|
|
|
|
# disable shared memory
|
|
CONFIGS=-DSM_ENABLE=0 make -C hw/simulate
|
|
|
|
# using FPNEW core
|
|
FPU_CORE=FPU_FPNEW ./ci/blackbox.sh --driver=rtlsim --cores=1 --app=demo
|
|
|
|
# test 128-bit MEM block
|
|
CONFIGS=-DMEM_BLOCK_SIZE=16 ./ci/blackbox.sh --driver=vlsim --cores=1 --app=demo
|
|
|
|
# test 128-bit DRAM block
|
|
CONFIGS="-DPLATFORM_PARAM_LOCAL_MEMORY_DATA_WIDTH=128 -DPLATFORM_PARAM_LOCAL_MEMORY_ADDR_WIDTH=28" ./ci/blackbox.sh --driver=vlsim --cores=1 --app=demo
|
|
|
|
# test 128-bit MEM and DRAM block
|
|
CONFIGS="-DMEM_BLOCK_SIZE=16 -DPLATFORM_PARAM_LOCAL_MEMORY_DATA_WIDTH=128 -DPLATFORM_PARAM_LOCAL_MEMORY_ADDR_WIDTH=28" ./ci/blackbox.sh --driver=vlsim --cores=1 --app=demo
|
|
|
|
# test 27-bit DRAM address
|
|
CONFIGS=-DPLATFORM_PARAM_LOCAL_MEMORY_ADDR_WIDTH=27 ./ci/blackbox.sh --driver=vlsim --cores=1 --app=demo |