aboutsummaryrefslogtreecommitdiffstats
path: root/devel
diff options
context:
space:
mode:
authorjbeich <jbeich@FreeBSD.org>2015-09-18 23:42:29 +0800
committerjbeich <jbeich@FreeBSD.org>2015-09-18 23:42:29 +0800
commit19d00c7038aea951d30c4136e928876b54b63772 (patch)
tree38cfca41da2cca02cc05b10deaf3aa0705d3a82a /devel
parentc032fb1ba6a12f1a209eaeb745540336835074be (diff)
downloadfreebsd-ports-graphics-19d00c7038aea951d30c4136e928876b54b63772.tar.gz
freebsd-ports-graphics-19d00c7038aea951d30c4136e928876b54b63772.tar.zst
freebsd-ports-graphics-19d00c7038aea951d30c4136e928876b54b63772.zip
devel/android-tools-simpleperf: add libbase tests
Diffstat (limited to 'devel')
-rw-r--r--devel/android-tools-simpleperf/files/Makefile7
-rw-r--r--devel/android-tools-simpleperf/files/patch-base_stringprintf__test.cpp10
2 files changed, 16 insertions, 1 deletions
diff --git a/devel/android-tools-simpleperf/files/Makefile b/devel/android-tools-simpleperf/files/Makefile
index 41de14f8071..9e9f030e5ad 100644
--- a/devel/android-tools-simpleperf/files/Makefile
+++ b/devel/android-tools-simpleperf/files/Makefile
@@ -23,7 +23,6 @@ SRCS+= thread_tree.cpp
SRCS+= utils.cpp
TEST_SRCS+= command_test.cpp
-TEST_SRCS+= gtest_main.cpp
TEST_SRCS+= record_test.cpp
TEST_SRCS+= sample_tree_test.cpp
@@ -33,6 +32,12 @@ SRCS+= file.cpp
SRCS+= logging.cpp
SRCS+= stringprintf.cpp
SRCS+= strings.cpp
+TEST_SRCS+= file_test.cpp
+TEST_SRCS+= logging_test.cpp
+TEST_SRCS+= stringprintf_test.cpp
+TEST_SRCS+= strings_test.cpp
+TEST_SRCS+= test_main.cpp
+TEST_SRCS+= test_utils.cpp
# required by base
.PATH: ${.CURDIR}/../liblog
diff --git a/devel/android-tools-simpleperf/files/patch-base_stringprintf__test.cpp b/devel/android-tools-simpleperf/files/patch-base_stringprintf__test.cpp
new file mode 100644
index 00000000000..de3c17cb2ed
--- /dev/null
+++ b/devel/android-tools-simpleperf/files/patch-base_stringprintf__test.cpp
@@ -0,0 +1,10 @@
+--- base/stringprintf_test.cpp.orig 2015-08-12 23:28:08 UTC
++++ base/stringprintf_test.cpp
+@@ -18,6 +18,7 @@
+
+ #include <gtest/gtest.h>
+
++#include <errno.h>
+ #include <string>
+
+ TEST(StringPrintfTest, HexSizeT) {