Adaptabuild #46
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: verifyer | |
on: [pull_request, workflow_dispatch] | |
jobs: | |
multi_test: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@main | |
- name: Install cpputest and lcov ... | |
run: | | |
sudo apt install --no-install-recommends -y cpputest lcov | |
sudo pip install junit2html | |
- name: Set up the unittest environment | |
run: | | |
cd .. | |
mkdir -p unittest/src | |
ln -s ${PWD}/umm_malloc ${PWD}/unittest/src/umm_malloc | |
ln -s ${PWD}/umm_malloc/unittest ${PWD}/unittest/src/unittest | |
cp ${PWD}/umm_malloc/adaptabuild/* ${PWD}/unittest | |
git clone https://github.com/rhempel/adaptabuild.git unittest/adaptabuild | |
ls -al | |
ls -al unittest | |
ls -al unittest/src | |
make -f ${PWD}/unittest/adaptabuild.mak MCU=host PRODUCT=unittest unittest | |
ls -al unittest | |
ls -al unittest/artifacts/unittest/host/umm_malloc/ | |
ls -al ~ | |
ls -al ${PWD} | |
echo ${PWD} | |
- name: Archive test and coverage results | |
uses: actions/upload-artifact@main | |
with: | |
name: Test and Coverage Results | |
path: ../unittest/artifacts/unittest/host/umm_malloc/* | |
# cd unittest && cp src/umm_malloc/adaptabuild/* . | |
# cd unittest && make -f adaptabuild.mak MCU=host PRODUCT=unittest unittest | |
# ls -al unittest | |
# - name: Link unittest source up one level | |
# run: sudo apt install --no-install-recommends -y cpputest | |
# - name: Run multi-configuration tests | |
# run: ./multitest.sh |