-
Notifications
You must be signed in to change notification settings - Fork 107
74 lines (64 loc) · 2.64 KB
/
verifier.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
name: verifyer
on: [pull_request, workflow_dispatch]
jobs:
multi_test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@main
- name: Directory test
run: |
echo ${HOME}
echo ${PWD}
mkdir -p ${HOME}/work/umm_malloc/src
find ${HOME}/work/umm_malloc -type d
- name: Link umm_malloc to src
run: |
ln -s ${HOME}/work/umm_malloc/umm_malloc ${HOME}/work/umm_malloc/src/umm_malloc
ls -al ${HOME}/work/umm_malloc/src/umm_malloc
- name: Link unittest to src
run: |
ln -s ${HOME}/work/umm_malloc/umm_malloc/unittest ${HOME}/work/umm_malloc/src/unittest
ls -al ${HOME}/work/umm_malloc/src/unittest
- name: Copy adaptabuild config files
run: |
cp ${HOME}/work/umm_malloc/umm_malloc/adaptabuild/* ${HOME}/work/umm_malloc
ls -al ${HOME}/work/umm_malloc
# ln -s ${HOME}/projects/lcra-test/schemas ${HOME}/projects/schemas
#
# git clone https://github.com/rhempel/adaptabuild.git ${HOME}/work/umm_malloc/adaptabuild
# - 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}/unittest/artifacts/unittest/host/umm_malloc
# echo ${PWD}
# echo ${HOME}
# find ${HOME} -type d
# - name: Archive test and coverage results
# uses: actions/upload-artifact@main
# with:
# name: Test and Coverage Results
# path: ${HOME}/work/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