Skip to content

Commit 3d797a3

Browse files
author
rajszym
committed
updated test files
1 parent b32f4ee commit 3d797a3

11 files changed

+12
-20
lines changed

examples.make renamed to .example-test.make

-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@ SRCS :=
66
LIBS :=
77
SCRIPT :=
88
COMMON := common
9-
109
#----------------------------------------------------------#
1110
include $(COMMON)/stateos/make/stm32f4discovery/makefile.gnucc
1211
#----------------------------------------------------------#

.test.sh renamed to .example-test.sh

+3-3
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ do
77
echo $file
88
cp $file examples/main.c
99
touch examples/main.c
10-
make -f examples.make all
10+
make -f .example-test.make all
1111
rm -f examples/main.*
1212
done
1313

@@ -16,8 +16,8 @@ do
1616
echo $file
1717
cp $file examples/main.cpp
1818
touch examples/main.cpp
19-
make -f examples.make all
19+
make -f .example-test.make all
2020
rm -f examples/main.*
2121
done
2222

23-
make -f examples.make clean
23+
make -f .example-test.make clean

.github/workflows/test.yml

+7-7
Original file line numberDiff line numberDiff line change
@@ -46,9 +46,9 @@ jobs:
4646
- name: check arm-none-eabi-gcc version
4747
run: arm-none-eabi-gcc -v
4848
- name: make test
49-
run: bash ./.test.sh
50-
unit:
51-
name: unit test
49+
run: bash ./.example-test.sh
50+
stdcxx:
51+
name: stdc++ test
5252
runs-on: ubuntu-latest
5353
steps:
5454
- name: checkout repository
@@ -62,9 +62,9 @@ jobs:
6262
- name: check arm-none-eabi-gcc version
6363
run: arm-none-eabi-gcc -v
6464
- name: make test
65-
run: make all -f test.make
66-
stdcxx:
67-
name: stdc++ test
65+
run: bash ./.stdc++-test.sh
66+
unit:
67+
name: unit test
6868
runs-on: ubuntu-latest
6969
steps:
7070
- name: checkout repository
@@ -78,4 +78,4 @@ jobs:
7878
- name: check arm-none-eabi-gcc version
7979
run: arm-none-eabi-gcc -v
8080
- name: make test
81-
run: bash ./.test++.sh
81+
run: make all -f .unit-test.make

stdc++.make renamed to .stdc++-test.make

-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@ SRCS :=
66
LIBS :=
77
SCRIPT :=
88
COMMON := common
9-
109
#----------------------------------------------------------#
1110
include $(COMMON)/stateos/make/stm32f4discovery/makefile.gnucc
1211
#----------------------------------------------------------#

.test++.sh renamed to .stdc++-test.sh

+2-2
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,8 @@ do
77
echo $file
88
cp $file stdc++/main.cpp
99
touch stdc++/main.cpp
10-
make -f stdc++.make all
10+
make -f .stdc++-test.make all
1111
rm -f stdc++/main.*
1212
done
1313

14-
make -f stdc++.make clean
14+
make -f .stdc++-test.make clean

test.make renamed to .unit-test.make

-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@ SRCS :=
66
LIBS :=
77
SCRIPT :=
88
COMMON := common
9-
109
#----------------------------------------------------------#
1110
include $(COMMON)/stateos/make/stm32f4discovery/makefile.gnucc
1211
#----------------------------------------------------------#

makefile.armcc

-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@ SRCS := src/main.c
66
LIBS :=
77
SCRIPT :=
88
COMMON := common
9-
109
#----------------------------------------------------------#
1110
include $(COMMON)/stateos/make/stm32f4discovery/makefile.armcc
1211
#----------------------------------------------------------#

makefile.clang

-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@ SRCS := src/main.cpp
66
LIBS :=
77
SCRIPT :=
88
COMMON := common
9-
109
#----------------------------------------------------------#
1110
include $(COMMON)/stateos/make/stm32f4discovery/makefile.clang
1211
#----------------------------------------------------------#

makefile.csmcc

-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@ SRCS := src/main.c
66
LIBS :=
77
SCRIPT :=
88
COMMON := common
9-
109
#----------------------------------------------------------#
1110
include $(COMMON)/stateos/make/stm32f4discovery/makefile.csmcc
1211
#----------------------------------------------------------#

makefile.gnucc

-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@ SRCS := src/main.cpp
66
LIBS :=
77
SCRIPT :=
88
COMMON := common
9-
109
#----------------------------------------------------------#
1110
include $(COMMON)/stateos/make/stm32f4discovery/makefile.gnucc
1211
#----------------------------------------------------------#

makefile.iarcc

-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@ SRCS := src/main.c
66
LIBS :=
77
SCRIPT :=
88
COMMON := common
9-
109
#----------------------------------------------------------#
1110
include $(COMMON)/stateos/make/stm32f4discovery/makefile.iarcc
1211
#----------------------------------------------------------#

0 commit comments

Comments
 (0)