on master help sign in
Put fs event executable under manual-tests flag
caf0b55Harendra Kumar
src/Streamly/Internal/FileSystem/Event/Darwin.hs+7
@@ -1020,4 +1020,11 @@ showEvent ev@Event{..} =
1020 where showev f str = if f ev then "\n" ++ str else ""
1020 where showev f str = if f ev then "\n" ++ str else ""
1021#else
1021#else
1022module Streamly.Internal.FileSystem.Event.Darwin () where
1022module Streamly.Internal.FileSystem.Event.Darwin () where
1023+#warning "Autoconf did not find the definition \
1024+kFSEventStreamCreateFlagFileEvents in Darwin header files.\
1025+Do you have Cocoa framework header files installed?\
1026+Not compiling the Streamly.Internal.FileSystem.Event.Darwin module. \
1027+Programs depending on this module may not compile. \
1028+Check if HAVE_DECL_KFSEVENTSTREAMCREATEFLAGFILEEVENTS is defined in config.h \
1029+generated from src/config.h.in"
1023#endif
1030#endif
streamly.cabal+6−1
@@ -210,6 +210,11 @@ flag use-c-malloc
210 manual: True
210 manual: True
211 default: False
211 default: False
212
212
213+flag manual-tests
214+ description: Builds tests that are to be run manually
215+ manual: True
216+ default: False
217+
213-------------------------------------------------------------------------------
218-------------------------------------------------------------------------------
214-- Common stanzas
219-- Common stanzas
215-------------------------------------------------------------------------------
220-------------------------------------------------------------------------------
@@ -881,7 +886,7 @@ executable FileSystem.Event
881 build-depends:
886 build-depends:
882 streamly
887 streamly
883 , base >= 4.8 && < 5
888 , base >= 4.8 && < 5
884− if os(windows)
889+ if !flag(manual-tests) || os(windows)
885 buildable: False
890 buildable: False
886
891
887-------------------------------------------------------------------------------
892-------------------------------------------------------------------------------