pkgsrc-WIP-changes archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
libnitrokey: tests
Module Name: pkgsrc-wip
Committed By: nikita <nikita%NetBSD.org@localhost>
Pushed By: nikita
Date: Thu Apr 27 23:17:53 2023 +0200
Changeset: 27c8c3d72164be3a8c40355e13df5a348ad6d8eb
Modified Files:
libnitrokey/Makefile
libnitrokey/options.mk
Log Message:
libnitrokey: tests
To see a diff of this commit:
https://wip.pkgsrc.org/cgi-bin/gitweb.cgi?p=pkgsrc-wip.git;a=commitdiff;h=27c8c3d72164be3a8c40355e13df5a348ad6d8eb
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
diffstat:
libnitrokey/Makefile | 4 ----
libnitrokey/options.mk | 8 +++++++-
2 files changed, 7 insertions(+), 5 deletions(-)
diffs:
diff --git a/libnitrokey/Makefile b/libnitrokey/Makefile
index 29b3c9de1d..6e814637d1 100644
--- a/libnitrokey/Makefile
+++ b/libnitrokey/Makefile
@@ -16,10 +16,6 @@ USE_TOOLS+= pkg-config
.include "options.mk"
# libudev-devd
-# These tests do not require any device to be connected
-# -DCOMPILE_OFFLINE_TESTS=ON
-# catch2
-
# actual hardware tests
# 1. require a connected Nitrokey
# 2. may kill data on your Nitrokey
diff --git a/libnitrokey/options.mk b/libnitrokey/options.mk
index 391fe1acf4..dc1f53e736 100644
--- a/libnitrokey/options.mk
+++ b/libnitrokey/options.mk
@@ -2,7 +2,7 @@
PKG_OPTIONS_VAR= PKG_OPTIONS.py-pynitrokey
-PKG_SUPPORTED_OPTIONS+= doc
+PKG_SUPPORTED_OPTIONS+= doc tests
.include "../../mk/bsd.options.mk"
@@ -11,3 +11,9 @@ DEPENDS+= doxygen-[0-9]*:../../devel/doxygen
DEPENDS+= graphviz-[0-9]*:../../graphics/graphviz
# else switch this off in cmake
.endif
+
+.if ${PKG_OPTIONS:Mtests}
+# These tests do not require any device to be connected
+CMAKE_ARGS+= -DCOMPILE_OFFLINE_TESTS=ON
+TEST_DEPENDS+= catch2-[0-9]*:../../devel/catch2
+.endif
Home |
Main Index |
Thread Index |
Old Index