From: Andreas Reichel <[email protected]>

Use function faking framework for mocking in unit tests.
Integrate it into the project as git submodule.

Signed-off-by: Andreas Reichel <[email protected]>
---
 .gitmodules             | 3 +++
 fff                     | 1 +
 tools/tests/Makefile.am | 3 ++-
 3 files changed, 6 insertions(+), 1 deletion(-)
 create mode 100644 .gitmodules
 create mode 160000 fff

diff --git a/.gitmodules b/.gitmodules
new file mode 100644
index 0000000..971d7e7
--- /dev/null
+++ b/.gitmodules
@@ -0,0 +1,3 @@
+[submodule "fff"]
+       path = fff
+       url = https://github.com/meekrosoft/fff
diff --git a/fff b/fff
new file mode 160000
index 0000000..719dd8b
--- /dev/null
+++ b/fff
@@ -0,0 +1 @@
+Subproject commit 719dd8b6a39a34d0dbf71eeccd4bcd8c5e84c9b4
diff --git a/tools/tests/Makefile.am b/tools/tests/Makefile.am
index ec96981..30dbb85 100644
--- a/tools/tests/Makefile.am
+++ b/tools/tests/Makefile.am
@@ -15,7 +15,8 @@ OBJCOPY ?= objcopy
 AM_CPPFLAGS = \
        -I$(top_srcdir)/include \
        -I$(top_srcdir)/swupdate-adapter \
-       -I$(top_srcdir)/tools
+       -I$(top_srcdir)/tools \
+       -I$(top_srcdir)/fff
 
 AM_CFLAGS = \
        -Wno-unused-parameter \
-- 
2.14.2

-- 
You received this message because you are subscribed to the Google Groups "EFI 
Boot Guard" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/efibootguard-dev/20171024122629.16634-4-andreas.reichel.ext%40siemens.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to