This commit is contained in:
Steven Dan
2025-12-11 09:43:42 +08:00
commit d8b2974133
1822 changed files with 280037 additions and 0 deletions

View File

@@ -0,0 +1,32 @@
#! /usr/bin/env bash
#
# clone required repos and install python packages needed by ci
# clone NAME URL HASH
#
# supposedly, this is the quickest way to clone a single
# commit from a remote git repo
clone() {
mkdir $1
pushd $1
git init
git remote add origin $2
git fetch --depth 1 origin $3
git checkout FETCH_HEAD
git submodule update --init --recursive --depth 1 --jobs $(nproc)
popd
}
set -ex
rm -rf modules
mkdir -p modules
pushd modules
clone fwk_core git@github.com:xmos/fwk_core.git v1.0.2
clone fwk_io git@github.com:xmos/fwk_io.git v3.3.0
clone infr_scripts_py git@github.com:xmos/infr_scripts_py.git 1d767cbe89a3223da7a4e27c283fb96ee2a279c9
clone infr_apps git@github.com:xmos/infr_apps.git 9a0e6899ffae42d82e6047b49e1186eee42289af
pip install -e infr_apps -e infr_scripts_py
popd

View File

@@ -0,0 +1,8 @@
#! /usr/bin/env bash
#
# build stuff
set -ex
cmake -B build -DCMAKE_TOOLCHAIN_FILE=modules/fwk_io/xmos_cmake_toolchain/xs3a.cmake
cmake --build build --target all --target test_app --target test_app_low_level_api --target test_app_sdm_dco --target test_app_sdm_ctrl --target simple_lut --target simple_sdm --target i2s_slave_lut -j$(nproc)

View File

@@ -0,0 +1,11 @@
#! /usr/bin/env bash
#
# test stuff
set -ex
pushd tests
pytest --junitxml=results.xml -rA -v --durations=0 -o junit_logging=all
ls bin
popd

View File

@@ -0,0 +1,11 @@
#! /usr/bin/env bash
#
# test stuff
set -ex
pushd python/sw_pll
python sw_pll_sim.py LUT
python sw_pll_sim.py SDM
popd