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
1
Merge Requests
1
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
nexedi
osie
Commits
07c5b898
Commit
07c5b898
authored
2 years ago
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
`
LDFLAGS
=
`
pkg-config
--libs
criterion
`
LDFLAGS
=
`
pkg-config
--libs
criterion
`
-L
$(OPEN62541_HOME)
/lib
LIB_DIR
=
$(SRC_DIR)
te
OUT_DIR
=
build/
all
:
test_common test_modio_i2c
all
:
test_common test_modio_i2c
test_keep_alive
test_common
:
test_common.o
@
mkdir
-p
$(OUT_DIR)
...
...
@@ -15,10 +15,16 @@ test_modio_i2c: test_modio_i2c.o
$(CC)
$(CFLAGS)
$(LDFLAGS)
-o
$@
$^
@
mv
$@
$(OUT_DIR)
test_keep_alive
:
test_keep_alive.o
@
mkdir
-p
$(OUT_DIR)
$(CC)
$(CFLAGS)
$(LDFLAGS)
-o
$@
$^
@
mv
$@
$(OUT_DIR)
run
:
all
@
${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_keep_alive
--tap
=
${OUT_DIR}
/test_keep_alive.tap
clean
:
...
...
@@ -26,6 +32,8 @@ clean:
@
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.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
...
...
This diff is collapsed.
Click to expand it.
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