FreeBSD Bugzilla – Attachment 167254 Details for
Bug 207392
[NEW PORT] sysutils/hfm: Run tests in parallel at high frequency
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
[patch]
shar file patch
hfm.shar (text/plain), 5.22 KB, created by
Derek
on 2016-02-21 14:31:39 UTC
(
hide
)
Description:
shar file patch
Filename:
MIME Type:
Creator:
Derek
Created:
2016-02-21 14:31:39 UTC
Size:
5.22 KB
patch
obsolete
># This is a shell archive. Save it in a file, remove anything before ># this line, and then unpack it by entering "sh file". Note, it may ># create directories; files and directories will be owned by you and ># have default permissions. ># ># This archive contains: ># ># hfm ># hfm/Makefile ># hfm/pkg-descr ># hfm/distinfo ># hfm/pkg-plist ># hfm/files ># hfm/files/hfm.in ># >echo c - hfm >mkdir -p hfm > /dev/null 2>&1 >echo x - hfm/Makefile >sed 's/^X//' >hfm/Makefile << '8a7e1184c0ec4a8000d1c35dec2af07b' >X# $FreeBSD$ >X >XPORTNAME= hfm >XPORTVERSION= 1.1.3 >XDISTVERSIONPREFIX= v >XCATEGORIES= sysutils >X >XMAINTAINER= 554b8425@razorfever.net >XCOMMENT= Run tests in parallel at high frequency >X >XLICENSE= BSD2CLAUSE >X >X# gb 0.4 includes FreeBSD-specific fixes that this port requires >X# https://github.com/constabulary/gb/issues/506 >XEXTRACT_DEPENDS= gb>=0.4:${PORTSDIR}/devel/gb >XBUILD_DEPENDS= go>=1.5:${PORTSDIR}/lang/go \ >X ${LOCALBASE}/lib/libucl.a:${PORTSDIR}/textproc/libucl >X >XUSE_GITHUB= yes >X >XGH_ACCOUNT= derekmarcotte mitchellh:gu op:gl >XGH_PROJECT= hfm go-libucl:gu go-logging:gl >XGH_TAGNAME= ${DISTVERSIONFULL} f9d0e55:gu dfaf3df:gl >X >XUSERS= _hfm >XGROUPS= _hfm >X >XUSE_RC_SUBR= hfm >X >XMAKE_ARGS+= ETCDIR=${ETCDIR} TAG=${DISTVERSIONPREFIX}${PORTVERSION} >X >XNO_INSTALL= yes >XALL_TARGET= test build >X >Xpost-extract: >X ${MKDIR} ${WRKSRC}/vendor/src/github.com/mitchellh/go-libucl >X ${MV} ${WRKDIR}/go-libucl-f9d0e55/* ${WRKSRC}/vendor/src/github.com/mitchellh/go-libucl/ >X ${MKDIR} ${WRKSRC}/vendor/src/github.com/op/go-logging >X ${MV} ${WRKDIR}/go-logging-dfaf3df/* ${WRKSRC}/vendor/src/github.com/op/go-logging/ >X >Xdo-patch: >X (cd ${WRKSRC}; ${PATCH} vendor/src/github.com/mitchellh/go-libucl/libucl.go < vendor/patches/github.com/mitchellh/go-libucl/libucl.go.patch ) >X >Xdo-install: >X @${MKDIR} ${STAGEDIR}${PREFIX}/bin >X ${INSTALL_PROGRAM} ${WRKSRC}/bin/hfm ${STAGEDIR}${PREFIX}/bin >X @${MKDIR} ${STAGEDIR}${ETCDIR} >X ${INSTALL_DATA} ${WRKSRC}/examples/hfm.conf.sample ${STAGEDIR}${ETCDIR} >X @${MKDIR} ${STAGEDIR}${EXAMPLESDIR} >X ${INSTALL_DATA} ${WRKSRC}/examples/* ${STAGEDIR}${EXAMPLESDIR} >X @${MKDIR} ${STAGEDIR}${DOCSDIR} >X ${INSTALL_DATA} ${WRKSRC}/README.md ${STAGEDIR}${DOCSDIR} >X ${INSTALL_DATA} ${WRKSRC}/doc/* ${STAGEDIR}${DOCSDIR} >X >X.include <bsd.port.mk> >8a7e1184c0ec4a8000d1c35dec2af07b >echo x - hfm/pkg-descr >sed 's/^X//' >hfm/pkg-descr << '91c40435469a4ec47544be88a705bde8' >Xhfm is an application to run tests in parallel at a high frequency. If the >Xoutcome of the test results in a state change, other commands can be executed. >X >XIt is designed to be a general purpose, loosely-coupled tool, by having both >Xthe tests and the state change commands be executed by the operating system. >XFor example, one could write the test in shell or c, and have it called through >Xthe exec facility. >X >XIn practice, the overhead of spawning a new process per test limits frequency >Xthat can be achieved by the tests, and their results. Anecdotally, 5ms >Xintervals have been seen to be achievable. >X >XAn example application is to poll other network services for health, and to >Xtake actions based on their health status changes. >X >Xhttps://github.com/derekmarcotte/hfm >91c40435469a4ec47544be88a705bde8 >echo x - hfm/distinfo >sed 's/^X//' >hfm/distinfo << '57b9d1e4701324efc38fdfabd91563ba' >XSHA256 (derekmarcotte-hfm-v1.1.3_GH0.tar.gz) = 8e00fbb4a640ac5cd6473f4705043af4067be731cdabc5aeb882121a0ccae743 >XSIZE (derekmarcotte-hfm-v1.1.3_GH0.tar.gz) = 33915 >XSHA256 (mitchellh-go-libucl-f9d0e55_GH0.tar.gz) = 955e56fa334e7131ca313098fcf0a91ce89270cf1294d2a07830aa1c17b58fc0 >XSIZE (mitchellh-go-libucl-f9d0e55_GH0.tar.gz) = 9426 >XSHA256 (op-go-logging-dfaf3df_GH0.tar.gz) = d34d3afbdb07ad92f51d2a0a9f2682a4c0fcece733618a4ad27013e5ab6c8b60 >XSIZE (op-go-logging-dfaf3df_GH0.tar.gz) = 35747 >57b9d1e4701324efc38fdfabd91563ba >echo x - hfm/pkg-plist >sed 's/^X//' >hfm/pkg-plist << 'dc53c15687ebbc325a237944b51a0691' >Xbin/hfm >X%%PORTDOCS%%%%DOCSDIR%%/README.md >X%%PORTDOCS%%%%DOCSDIR%%/architecture-90dpi.png >X%%PORTDOCS%%%%DOCSDIR%%/architecture.svg >X%%PORTEXAMPLES%%%%EXAMPLESDIR%%/hfm-test-fast.conf >X%%PORTEXAMPLES%%%%EXAMPLESDIR%%/hfm-test-start-delay.conf >X%%PORTEXAMPLES%%%%EXAMPLESDIR%%/hfm.conf.sample >X@sample %%ETCDIR%%/hfm.conf.sample >dc53c15687ebbc325a237944b51a0691 >echo c - hfm/files >mkdir -p hfm/files > /dev/null 2>&1 >echo x - hfm/files/hfm.in >sed 's/^X//' >hfm/files/hfm.in << '295a71f7497c5667ce79c8e8fc5d47ab' >X#!/bin/sh >X >X# $FreeBSD$ >X# >X# PROVIDE: hfm >X# REQUIRE: LOGIN >X# KEYWORD: shutdown >X# >X# Add these lines to /etc/rc.conf.local or /etc/rc.conf >X# to enable this service: >X# >X# hfm_enable (bool): Set to NO by default. >X# Set it to YES to enable hfm. >X# >X# hfm_flags (bool): Check the sources of hfm for flags >X# >X >X. /etc/rc.subr >X >Xname=hfm >Xrcvar=hfm_enable >X >Xcommand="%%PREFIX%%/bin/${name}" >X >Xhfm_user=_hfm >Xhfm_flags=${hfm_flags:-"-config %%ETCDIR%%/${name}.conf -facility local0 -log syslog"} >X >Xpidfile="/var/run/${name}.pid" >X >Xrequired_files="%%ETCDIR%%/${name}.conf" >X >Xstart_cmd=hfm_start >Xstop_postcmd=hfm_postcmd >X >Xhfm_start() { >X echo "Staring ${name}." >X >X /usr/sbin/daemon -cf -u ${hfm_user} -p ${pidfile} ${command} ${hfm_flags} >X} >X >Xhfm_postcmd() { >X [ -f ${pidfile} ] && rm ${pidfile} >X} >X >Xload_rc_config $name >Xrun_rc_command "$1" >X >295a71f7497c5667ce79c8e8fc5d47ab >exit >
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 207392
:
167254
|
167255
|
167256
|
167261
|
167292