Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
osie
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Nikola Balog
osie
Commits
07c5b898
Commit
07c5b898
authored
Nov 11, 2022
by
Balakrishna Balakrishna
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Modification of unit test make file
parent
bdf86576
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
2 deletions
+10
-2
tests/unit_test/Makefile
tests/unit_test/Makefile
+10
-2
No files found.
tests/unit_test/Makefile
View file @
07c5b898
CFLAGS
=
-Wall
-Wno-missing-braces
-ggdb
`
pkg-config
--cflags
criterion
`
CFLAGS
=
-Wall
-Wno-missing-braces
-ggdb
`
pkg-config
--cflags
criterion
`
LDFLAGS
=
`
pkg-config
--libs
criterion
`
LDFLAGS
=
`
pkg-config
--libs
criterion
`
-L
$(OPEN62541_HOME)
/lib
LIB_DIR
=
$(SRC_DIR)
te
LIB_DIR
=
$(SRC_DIR)
te
OUT_DIR
=
build/
OUT_DIR
=
build/
all
:
test_common test_modio_i2c
all
:
test_common test_modio_i2c
test_keep_alive
test_common
:
test_common.o
test_common
:
test_common.o
@
mkdir
-p
$(OUT_DIR)
@
mkdir
-p
$(OUT_DIR)
...
@@ -15,10 +15,16 @@ test_modio_i2c: test_modio_i2c.o
...
@@ -15,10 +15,16 @@ test_modio_i2c: test_modio_i2c.o
$(CC)
$(CFLAGS)
$(LDFLAGS)
-o
$@
$^
$(CC)
$(CFLAGS)
$(LDFLAGS)
-o
$@
$^
@
mv
$@
$(OUT_DIR)
@
mv
$@
$(OUT_DIR)
test_keep_alive
:
test_keep_alive.o
@
mkdir
-p
$(OUT_DIR)
$(CC)
$(CFLAGS)
$(LDFLAGS)
-o
$@
$^
@
mv
$@
$(OUT_DIR)
run
:
all
run
:
all
@
${OUT_DIR}
/test_common
--tap
=
${OUT_DIR}
/test_common.tap
@
${OUT_DIR}
/test_common
--tap
=
${OUT_DIR}
/test_common.tap
@
${OUT_DIR}
/test_modio_i2c
--tap
=
${OUT_DIR}
/test_modio_i2c.tap
@
${OUT_DIR}
/test_modio_i2c
--tap
=
${OUT_DIR}
/test_modio_i2c.tap
@
${OUT_DIR}
/test_keep_alive
--tap
=
${OUT_DIR}
/test_keep_alive.tap
clean
:
clean
:
...
@@ -26,6 +32,8 @@ clean:
...
@@ -26,6 +32,8 @@ clean:
@
rm
$(OUT_DIR)
test_common.tap 2>/dev/null
||
true
@
rm
$(OUT_DIR)
test_common.tap 2>/dev/null
||
true
@
rm
$(OUT_DIR)
test_modio_i2c 2>/dev/null
||
true
@
rm
$(OUT_DIR)
test_modio_i2c 2>/dev/null
||
true
@
rm
$(OUT_DIR)
test_modio_i2c.tap 2>/dev/null
||
true
@
rm
$(OUT_DIR)
test_modio_i2c.tap 2>/dev/null
||
true
@
rm
$(OUT_DIR)
test_keep_alive 2>/dev/null
||
true
@
rm
$(OUT_DIR)
test_keep_alive.tap 2>/dev/null
||
true
@
rm
*
.o 2>/dev/null
||
true
@
rm
*
.o 2>/dev/null
||
true
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment