public inbox for cygwin-apps@cygwin.com
 help / color / mirror / Atom feed
* [PATCH cygport] cmake.cygclass: Add src_test
@ 2023-12-17  1:19 Daisuke Fujimura
  0 siblings, 0 replies; only message in thread
From: Daisuke Fujimura @ 2023-12-17  1:19 UTC (permalink / raw)
  To: cygwin-apps

See https://cygwin.com/pipermail/cygwin-apps/2023-October/043227.html

> src_test is not redefined in cmake.cygclass (and ninja.cygclass) in cygport-0.36.3. Therefore, I defined src_test in json-c.cygport.
>
> - https://github.com/cygwin/cygport/blob/0.36.6/cygclass/cmake.cygclass
> - https://github.com/cygwin/cygport/blob/0.36.6/cygclass/ninja.cygclass
>
> I agree that it would be preferable to have src_test defined in one of these cygclasses.


The test is executed with or without CYGCMAKE_GENERATOR=Ninja.


diff --git a/cygclass/cmake.cygclass b/cygclass/cmake.cygclass
index cab75cf3..d2a7ef09 100644
--- a/cygclass/cmake.cygclass
+++ b/cygclass/cmake.cygclass
@@ -215,6 +215,14 @@ src_compile() {
 }
 #****

+#****o* cmake.cygclass/src_test (cmake)
+#  DEFINITION
+src_test() {
+ cd ${B}
+ ctest
+}
+#****
+
 #****o* cmake.cygclass/src_install (cmake)
 #  DEFINITION
 src_install() {

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2023-12-17  1:19 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-12-17  1:19 [PATCH cygport] cmake.cygclass: Add src_test Daisuke Fujimura

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).