<?xml version="1.0" encoding="UTF-8"?>
<phpunit colors="true">
    <logging>
        <log type="coverage-html" target="/tmp/report" lowUpperBound="35"
             highLowerBound="70"/>
        <log type="coverage-clover" target="/tmp/coverage.xml"/>
        <log type="coverage-php" target="/tmp/coverage.serialized"/>
        <log type="coverage-text" target="php://stdout" showUncoveredFiles="false"/>
        <log type="json" target="/tmp/logfile.json"/>
        <log type="tap" target="/tmp/logfile.tap"/>
        <log type="junit" target="/tmp/logfile.xml" logIncompleteSkipped="false"/>
        <log type="testdox-html" target="/tmp/testdox.html"/>
        <log type="testdox-text" target="/tmp/testdox.txt"/>
    </logging>
    <filter>
        <whitelist processUncoveredFilesFromWhitelist="true">
            <directory suffix=".php">./src/</directory>
        </whitelist>
    </filter>
    <testsuites>
        <testsuite name="Sitewards Setup Test Suite">
            <directory>./tests/</directory>
        </testsuite>
    </testsuites>
</phpunit>

Update the name of the test suite cause this is KICKASS Testing

<?xml version="1.0" encoding="UTF-8"?>
<phpunit colors="true">
    <logging>
        <log type="coverage-html" target="/tmp/report" lowUpperBound="35"
             highLowerBound="70"/>
        <log type="coverage-clover" target="/tmp/coverage.xml"/>
        <log type="coverage-php" target="/tmp/coverage.serialized"/>
        <log type="coverage-text" target="php://stdout" showUncoveredFiles="false"/>
        <log type="json" target="/tmp/logfile.json"/>
        <log type="tap" target="/tmp/logfile.tap"/>
        <log type="junit" target="/tmp/logfile.xml" logIncompleteSkipped="false"/>
        <log type="testdox-html" target="/tmp/testdox.html"/>
        <log type="testdox-text" target="/tmp/testdox.txt"/>
    </logging>
    <filter>
        <whitelist processUncoveredFilesFromWhitelist="true">
            <directory suffix=".php">./src/</directory>
        </whitelist>
    </filter>
    <testsuites>
        <testsuite name="KickAss Test Suite">
            <directory>./tests/</directory>
        </testsuite>
    </testsuites>
</phpunit>


<?xml version="1.0" encoding="UTF-8"?>

<phpunit bootstrap="./test/AmazonSQS/bootstrap.php" colors="true">
  <testsuites>
    <testsuite name="Test Suite">
      <directory suffix="Test.php">./test/AmazonSQS/</directory>
    </testsuite>
  </testsuites>
</phpunit>

Exclude vendor folder from code coverage report

<?xml version="1.0" encoding="UTF-8"?>

<phpunit bootstrap="./test/AmazonSQS/bootstrap.php" colors="true">
  <testsuites>
    <testsuite name="Test Suite">
      <directory suffix="Test.php">./test/AmazonSQS/</directory>
    </testsuite>
  </testsuites>
  <filter>
    <blacklist>
      <directory suffix=".php">/vendor</directory>
    </blacklist>
  </filter>
</phpunit>


<?xml version="1.0"?>
<ruleset name="Coding Standard for the AMP Toolbox PHP Library">

	<!-- Use PSR-12 as baseline standard -->
	<rule ref="PSR12">
		<!-- We cannot use constant visibility because of PHP 5.6 compat -->
		<exclude name="PSR12.Properties.ConstantVisibility.NotFound" />
	</rule>

	<!-- Exclude resources folder -->
	<exclude-pattern>resources/*</exclude-pattern>

	<!-- Exclude Composer vendor folder -->
	<exclude-pattern>vendor/*</exclude-pattern>

	<!-- Include sniffs for PHP cross-version compatibility. -->
	<config name="testVersion" value="5.6-"/>
	<rule ref="PHPCompatibilityWP">
		<exclude-pattern>bin/*</exclude-pattern>
	</rule>

	<arg value="s"/>
	<arg name="extensions" value="php"/>
	<file>.</file>

	<!-- Strip the filepaths down to the relevant bit. -->
	<arg name="basepath" value="./"/>

	<!-- Check up to 20 files simultaneously. -->
	<arg name="parallel" value="20"/>

    <!-- Executable scripts are meant to have side-effects. -->
    <rule ref="PSR1.Files.SideEffects">
        <exclude-pattern>bin/*</exclude-pattern>
    </rule>

	<rule ref="Generic.Files.LineLength.TooLong">
		<exclude-pattern>tests/*</exclude-pattern>
	</rule>
</ruleset>

Fix running phpcs when installed as composer package

<?xml version="1.0"?>
<ruleset name="Coding Standard for the AMP Toolbox PHP Library">

	<!-- Use PSR-12 as baseline standard -->
	<rule ref="PSR12">
		<!-- We cannot use constant visibility because of PHP 5.6 compat -->
		<exclude name="PSR12.Properties.ConstantVisibility.NotFound" />
	</rule>

	<!-- Exclude resources folder -->
	<exclude-pattern>resources/*</exclude-pattern>

	<!-- Exclude Composer vendor folder -->
	<exclude-pattern>amp-toolbox/vendor/</exclude-pattern>

	<!-- Include sniffs for PHP cross-version compatibility. -->
	<config name="testVersion" value="5.6-"/>
	<rule ref="PHPCompatibilityWP">
		<exclude-pattern>bin/*</exclude-pattern>
	</rule>

	<arg value="s"/>
	<arg name="extensions" value="php"/>
	<file>.</file>

	<!-- Strip the filepaths down to the relevant bit. -->
	<arg name="basepath" value="./"/>

	<!-- Check up to 20 files simultaneously. -->
	<arg name="parallel" value="20"/>

    <!-- Executable scripts are meant to have side-effects. -->
    <rule ref="PSR1.Files.SideEffects">
        <exclude-pattern>bin/*</exclude-pattern>
    </rule>

	<rule ref="Generic.Files.LineLength.TooLong">
		<exclude-pattern>tests/*</exclude-pattern>
	</rule>
</ruleset>


# DOCKER-VERSION 1.0.0
#
# Ceph Daemon
#
# VERSION 0.0.1

FROM cdxvirt/ceph-base:base-10.2.6-1
MAINTAINER Sébastien Han "seb@redhat.com"

# Add templates for confd
ADD ./confd/templates/* /etc/confd/templates/
ADD ./confd/conf.d/* /etc/confd/conf.d/

# Add bootstrap script, ceph defaults key/values for KV store
ADD entrypoint.sh config.*.sh ceph.defaults check_zombie_mons.py remove-mon.sh /
# Add cdxvirt scripts
ADD cdxvirt /cdxvirt
RUN mv /cdxvirt/ceph-api /usr/bin/ceph-api

# Add volumes for Ceph config and data
VOLUME ["/etc/ceph","/var/lib/ceph", "/etc/ganesha"]

# Execute the entrypoint
WORKDIR /
ENTRYPOINT ["/entrypoint.sh"]

Downgrade Ceph to 10.2.5 for some stable purpose

# DOCKER-VERSION 1.0.0
#
# Ceph Daemon
#
# VERSION 0.0.1

FROM cdxvirt/ceph-base:base-10.2.5-2
MAINTAINER Sébastien Han "seb@redhat.com"

# Add templates for confd
ADD ./confd/templates/* /etc/confd/templates/
ADD ./confd/conf.d/* /etc/confd/conf.d/

# Add bootstrap script, ceph defaults key/values for KV store
ADD entrypoint.sh config.*.sh ceph.defaults check_zombie_mons.py remove-mon.sh /
# Add cdxvirt scripts
ADD cdxvirt /cdxvirt
RUN mv /cdxvirt/ceph-api /usr/bin/ceph-api

# Add volumes for Ceph config and data
VOLUME ["/etc/ceph","/var/lib/ceph", "/etc/ganesha"]

# Execute the entrypoint
WORKDIR /
ENTRYPOINT ["/entrypoint.sh"]


# Copyright 2018 The gRPC Authors
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
#     http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.

FROM alpine:3.7

RUN apk add --update build-base python python-dev py-pip

RUN pip install --upgrade pip

RUN pip install virtualenv

Install bash in alpine distribtest image

# Copyright 2018 The gRPC Authors
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
#     http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.

FROM alpine:3.7

RUN apk add --update build-base python python-dev py-pip

RUN pip install --upgrade pip

RUN pip install virtualenv

# bash is required for our test script invocation
# ideally, we want to fix the invocation mechanism
# so we can remove this, but it has to be here for
# now:
RUN apk add --update bash


# Copyright 2020 The Kubernetes Authors.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
#     http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.

FROM gcr.io/distroless/base:latest
ADD apiextensions-apiserver /
ENTRYPOINT ["/apiextensions-apiserver"]

Update image base to `gcr.io/distroless/base-debian10:latest`

# Copyright 2020 The Kubernetes Authors.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
#     http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.

FROM gcr.io/distroless/base-debian10:latest
ADD apiextensions-apiserver /
ENTRYPOINT ["/apiextensions-apiserver"]


INSTALLDIR=	${DESTDIR}${datadir}/darwinports/Tcl/package1.0

SRCS=	package.tcl portdmg.tcl portmpkg.tcl portpkg.tcl portrpmpackage.tcl \
	portdpkg.tcl

include ../../Mk/dports.subdir.mk
include ../../Mk/dports.autoconf.mk

all::

clean::

distclean::

install::
	$(INSTALL) -d -o ${DSTUSR} -g ${DSTGRP} -m 775 ${DESTDIR}${datadir}/darwinports
	$(INSTALL) -d -o ${DSTUSR} -g ${DSTGRP} -m 775 ${DESTDIR}${datadir}/darwinports/Tcl
	$(INSTALL) -d -o ${DSTUSR} -g ${DSTGRP} -m 775 ${INSTALLDIR}
	$(SILENT)set -x; for file in ${SRCS}; do \
		$(INSTALL) -o ${DSTUSR} -g ${DSTGRP} -m 444 $$file ${INSTALLDIR}; \
	done
	$(SILENT) $(TCLSH) ../pkg_mkindex.tcl ${INSTALLDIR}

Patch for Makefile to make it work without GNU make Submitted by: blb@pobox.com Reviewed by: ssen@

INSTALLDIR=	${DESTDIR}${datadir}/darwinports/Tcl/package1.0

SRCS=	package.tcl portdmg.tcl portmpkg.tcl portpkg.tcl portrpmpackage.tcl \
	portdpkg.tcl

include ../../Mk/dports.autoconf.mk

all::

clean::

distclean::

install::
	$(INSTALL) -d -o ${DSTUSR} -g ${DSTGRP} -m 775 ${DESTDIR}${datadir}/darwinports
	$(INSTALL) -d -o ${DSTUSR} -g ${DSTGRP} -m 775 ${DESTDIR}${datadir}/darwinports/Tcl
	$(INSTALL) -d -o ${DSTUSR} -g ${DSTGRP} -m 775 ${INSTALLDIR}
	$(SILENT)set -x; for file in ${SRCS}; do \
		$(INSTALL) -o ${DSTUSR} -g ${DSTGRP} -m 444 $$file ${INSTALLDIR}; \
	done
	$(SILENT) $(TCLSH) ../pkg_mkindex.tcl ${INSTALLDIR}


FROM alpine:latest
MAINTAINER Philip O'Toole <philip.otoole@yahoo.com>

ENV RQLITE_VERSION=6.8.0

RUN apk update && \
    apk --no-cache add curl tar && \
    curl -L https://github.com/rqlite/rqlite/releases/download/v${RQLITE_VERSION}/rqlite-v${RQLITE_VERSION}-linux-amd64-musl.tar.gz -o rqlite-v${RQLITE_VERSION}-linux-amd64-musl.tar.gz && \
    tar xvfz rqlite-v${RQLITE_VERSION}-linux-amd64-musl.tar.gz && \
    cp rqlite-v${RQLITE_VERSION}-linux-amd64-musl/rqlited /bin && \
    rm -fr rqlite-v${RQLITE_VERSION}-linux-amd64-musl rqlite-v${RQLITE_VERSION}-linux-amd64-musl.tar.gz && \
    apk del curl tar

RUN mkdir -p /rqlite/file

VOLUME /rqlite/file

EXPOSE 4001 4002

COPY docker-entrypoint.sh /bin/docker-entrypoint.sh
ENTRYPOINT ["docker-entrypoint.sh"]

CMD ["rqlite"]

Add all rqlite binaries to 6.8.0

FROM alpine:latest
MAINTAINER Philip O'Toole <philip.otoole@yahoo.com>

ENV RQLITE_VERSION=6.8.0

RUN apk update && \
    apk --no-cache add curl tar && \
    curl -L https://github.com/rqlite/rqlite/releases/download/v${RQLITE_VERSION}/rqlite-v${RQLITE_VERSION}-linux-amd64-musl.tar.gz -o rqlite-v${RQLITE_VERSION}-linux-amd64-musl.tar.gz && \
    tar xvfz rqlite-v${RQLITE_VERSION}-linux-amd64-musl.tar.gz && \
    cp rqlite-v${RQLITE_VERSION}-linux-amd64-musl/* /bin && \
    rm -fr rqlite-v${RQLITE_VERSION}-linux-amd64-musl rqlite-v${RQLITE_VERSION}-linux-amd64-musl.tar.gz && \
    apk del curl tar

RUN mkdir -p /rqlite/file

VOLUME /rqlite/file

EXPOSE 4001 4002

COPY docker-entrypoint.sh /bin/docker-entrypoint.sh
ENTRYPOINT ["docker-entrypoint.sh"]

CMD ["rqlite"]


# A Dockerfile that sets up a full Gym install with test dependencies
ARG PYTHON_VERSION
FROM python:$PYTHON_VERSION

SHELL ["/bin/bash", "-o", "pipefail", "-c"]

RUN apt-get -y update \
    && apt-get install --no-install-recommends -y \
    unzip \
    libglu1-mesa-dev \
    libgl1-mesa-dev \
    libosmesa6-dev \
    xvfb \
    patchelf \
    ffmpeg cmake \
    && apt-get autoremove -y \
    && apt-get clean \
    && rm -rf /var/lib/apt/lists/* \
    # Download mujoco
    && mkdir /root/.mujoco \
    && cd /root/.mujoco \
    && wget -qO- 'https://github.com/deepmind/mujoco/releases/download/2.1.0/mujoco210-linux-x86_64.tar.gz' | tar -xzvf -

ENV LD_LIBRARY_PATH="$LD_LIBRARY_PATH:/root/.mujoco/mujoco210/bin"

COPY . /usr/local/gym/
WORKDIR /usr/local/gym/

RUN if [ "python:${PYTHON_VERSION}" = "python:3.6.15" ] ; then pip install .[box2d,classic_control,toy_text,other] pytest=="7.0.1" --no-cache-dir; else pip install .[testing] --no-cache-dir; fi

ENTRYPOINT ["/usr/local/gym/bin/docker_entrypoint"]

Rename to gymnasium in Dockerfile

# A Dockerfile that sets up a full Gym install with test dependencies
ARG PYTHON_VERSION
FROM python:$PYTHON_VERSION

SHELL ["/bin/bash", "-o", "pipefail", "-c"]

RUN apt-get -y update \
    && apt-get install --no-install-recommends -y \
    unzip \
    libglu1-mesa-dev \
    libgl1-mesa-dev \
    libosmesa6-dev \
    xvfb \
    patchelf \
    ffmpeg cmake \
    && apt-get autoremove -y \
    && apt-get clean \
    && rm -rf /var/lib/apt/lists/* \
    # Download mujoco
    && mkdir /root/.mujoco \
    && cd /root/.mujoco \
    && wget -qO- 'https://github.com/deepmind/mujoco/releases/download/2.1.0/mujoco210-linux-x86_64.tar.gz' | tar -xzvf -

ENV LD_LIBRARY_PATH="$LD_LIBRARY_PATH:/root/.mujoco/mujoco210/bin"

COPY . /usr/local/gymnasium/
WORKDIR /usr/local/gymnasium/

RUN if [ "python:${PYTHON_VERSION}" = "python:3.6.15" ] ; then pip install .[box2d,classic_control,toy_text,other] pytest=="7.0.1" --no-cache-dir; else pip install .[testing] --no-cache-dir; fi

ENTRYPOINT ["/usr/local/gymnasium/bin/docker_entrypoint"]


# $FreeBSD$

PROG=	asf
SRCS=	asf.c
MAN=	asf.8
WARNS=	0
.include <bsd.prog.mk>

Use implicit SRCS list, remove WARNS=0, the code is WARNS=4 clean now, which is more than enough.

# $FreeBSD$

PROG=	asf
MAN=	asf.8

.include <bsd.prog.mk>


PROG=	manpath
SRCS=	manpath.c
MAN1=	manpath.1

DPADD=	${LIBMAN}
LDADD=	${LIBMAN}

CFLAGS+= -DMAIN -DSTDC_HEADERS -DPOSIX -DHAS_TROFF -DDO_UNCOMPRESS
CFLAGS+= -DALT_SYSTEMS -I${.CURDIR}/../lib -I${.OBJDIR}/../lib
CLEANFILES+=	${MAN1}
MANDEPEND+=	${MAN1}

${MAN1}: ${.CURDIR}/manpath.man
	@${ECHO} Making ${.TARGET:T} from ${.ALLSRC:T}; \
	sed -e 's,%libdir%,${libdir},' -e 's,%bindir%,${bindir},' \
	    -e 's,%pager%,${pager},' -e 's,%troff%,${troff},' \
	    -e 's,%manpath_config_file%,${manpath_config_file},' \
	${.CURDIR}/manpath.man > ${MAN1}

afterinstall:
	${INSTALL} -c -o bin -g bin -m 644 ${.CURDIR}/manpath.config \
	    ${DESTDIR}${manpath_config_file}.sample

.include <bsd.prog.mk>

Use BINOWN and BINGRP (some people do change these...)

PROG=	manpath
SRCS=	manpath.c
MAN1=	manpath.1

DPADD=	${LIBMAN}
LDADD=	${LIBMAN}

CFLAGS+= -DMAIN -DSTDC_HEADERS -DPOSIX -DHAS_TROFF -DDO_UNCOMPRESS
CFLAGS+= -DALT_SYSTEMS -I${.CURDIR}/../lib -I${.OBJDIR}/../lib
CLEANFILES+=	${MAN1}
MANDEPEND+=	${MAN1}

${MAN1}: ${.CURDIR}/manpath.man
	@${ECHO} Making ${.TARGET:T} from ${.ALLSRC:T}; \
	sed -e 's,%libdir%,${libdir},' -e 's,%bindir%,${bindir},' \
	    -e 's,%pager%,${pager},' -e 's,%troff%,${troff},' \
	    -e 's,%manpath_config_file%,${manpath_config_file},' \
	${.CURDIR}/manpath.man > ${MAN1}

afterinstall:
	${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 644
	    ${.CURDIR}/manpath.config ${DESTDIR}${manpath_config_file}.sample

.include <bsd.prog.mk>


<phpunit bootstrap="./phpunit.php">
    <testsuites>
        <testsuite>
            <directory>./tests</directory>
        </testsuite>
    </testsuites>
</phpunit>

Add whitelist for code coverage

<phpunit bootstrap="./phpunit.php">
    <testsuites>
        <testsuite>
            <directory>./tests</directory>
        </testsuite>
    </testsuites>
    <filter>
      <whitelist processUncoveredFilesFromWhitelist="true">
        <directory suffix=".php">./src/</directory>
      </whitelist>
    </filter>
</phpunit>


<?xml version="1.0" encoding="UTF-8"?>

<phpunit bootstrap="tests/bootstrap.php"
         backupGlobals="false"
         backupStaticAttributes="false"
         strict="true"
         verbose="true"
         colors="true"
         timeoutForSmallTests="5"
         stopOnFailure="true">
  <testsuites>
    <testsuite name="BEAR.Resource">
      <directory suffix="Test.php">tests</directory>
    </testsuite>
  </testsuites>

  <logging>
    <log type="coverage-html" target="build/coverage" title="BEAR.Resource"
         charset="UTF-8" yui="true" highlight="true"
         lowUpperBound="35" highLowerBound="70"/>
    <log type="coverage-clover" target="build/logs/clover.xml"/>
    <log type="junit" target="build/logs/junit.xml" logIncompleteSkipped="false"/>
  </logging>

  <filter>
    <whitelist addUncoveredFilesFromWhitelist="true">
      <directory suffix=".php">src</directory>
    </whitelist>
  </filter>
</phpunit>

Allow more time for slow http request.

<?xml version="1.0" encoding="UTF-8"?>

<phpunit bootstrap="tests/bootstrap.php"
         backupGlobals="false"
         backupStaticAttributes="false"
         strict="true"
         verbose="true"
         colors="true"
         timeoutForSmallTests="60"
         stopOnFailure="true">
  <testsuites>
    <testsuite name="BEAR.Resource">
      <directory suffix="Test.php">tests</directory>
    </testsuite>
  </testsuites>

  <logging>
    <log type="coverage-html" target="build/coverage" title="BEAR.Resource"
         charset="UTF-8" yui="true" highlight="true"
         lowUpperBound="35" highLowerBound="70"/>
    <log type="coverage-clover" target="build/logs/clover.xml"/>
    <log type="junit" target="build/logs/junit.xml" logIncompleteSkipped="false"/>
  </logging>

  <filter>
    <whitelist addUncoveredFilesFromWhitelist="true">
      <directory suffix=".php">src</directory>
    </whitelist>
  </filter>
</phpunit>


# $FreeBSD$

PROG=	gstat
NOMAN=
SRCS=	gstat.c
WARNS?=	5
DPADD=	${LIBGEOM} ${LIBDEVSTAT} ${LIBKVM} ${LIBBSDXML} ${LIBCURSES} ${LIBSBUF}
LDADD=	-lgeom -ldevstat -lkvm -lbsdxml -lcurses -lsbuf

.include <bsd.prog.mk>

Install the gstat manual page.

# $FreeBSD$

PROG=	gstat
MAN=	gstat.8
SRCS=	gstat.c
WARNS?=	5
DPADD=	${LIBGEOM} ${LIBDEVSTAT} ${LIBKVM} ${LIBBSDXML} ${LIBCURSES} ${LIBSBUF}
LDADD=	-lgeom -ldevstat -lkvm -lbsdxml -lcurses -lsbuf

.include <bsd.prog.mk>


FROM lambci/lambda-base:build

# https://golang.org/doc/devel/release.html
ENV GOLANG_VERSION=1.14 \
    GOPATH=/go \
    PATH=/go/bin:/usr/local/go/bin:$PATH \
    AWS_EXECUTION_ENV=AWS_Lambda_go1.x

WORKDIR /go/src/handler

RUN rm -rf /var/runtime /var/lang && \
  curl https://lambci.s3.amazonaws.com/fs/go1.x.tgz | tar -zx -C / && \
  curl https://storage.googleapis.com/golang/go${GOLANG_VERSION}.linux-amd64.tar.gz | tar -zx -C /usr/local && \
  go get github.com/golang/dep/cmd/dep && \
  go install github.com/golang/dep/cmd/dep && \
  go get golang.org/x/vgo

# Add these as a separate layer as they get updated frequently
RUN pip install -U awscli boto3 aws-sam-cli==0.47.0 aws-lambda-builders==0.8.0 --no-cache-dir

CMD ["dep", "ensure"]

Update build-go1.x image to Go 1.14.2

FROM lambci/lambda-base:build

# https://golang.org/doc/devel/release.html
ENV GOLANG_VERSION=1.14.2 \
    GOPATH=/go \
    PATH=/go/bin:/usr/local/go/bin:$PATH \
    AWS_EXECUTION_ENV=AWS_Lambda_go1.x

WORKDIR /go/src/handler

RUN rm -rf /var/runtime /var/lang && \
  curl https://lambci.s3.amazonaws.com/fs/go1.x.tgz | tar -zx -C / && \
  curl https://storage.googleapis.com/golang/go${GOLANG_VERSION}.linux-amd64.tar.gz | tar -zx -C /usr/local && \
  go get github.com/golang/dep/cmd/dep && \
  go install github.com/golang/dep/cmd/dep && \
  go get golang.org/x/vgo

# Add these as a separate layer as they get updated frequently
RUN pip install -U awscli boto3 aws-sam-cli==0.47.0 aws-lambda-builders==0.8.0 --no-cache-dir

CMD ["dep", "ensure"]


#	$Id: Makefile,v 1.1 1997/06/28 01:04:49 brian Exp $

PROG=	pppctl
SRCS=	pppctl.c
CFLAGS+=-Wall -Wmissing-prototypes
LDADD+= -ledit -ltermcap
DPADD+= ${LIBEDIT} ${LIBTERMCAP}
MAN8=	pppctl.8

.include <bsd.prog.mk>

Add OpenBSD build support Remove -Wmissing-prototypes

#	$Id: Makefile,v 1.2 1997/11/07 20:20:12 brian Exp $

PROG=	pppctl
SRCS=	pppctl.c
CFLAGS+=-Wall
LDADD+= -ledit -ltermcap
DPADD+= ${LIBEDIT} ${LIBTERMCAP}

OPSYS!=	uname -s
.if (${OPSYS} == "OpenBSD")
MAN=	pppctl.8
.else
MAN8=	pppctl.8
.endif

.include <bsd.prog.mk>


# Note that this files is under a "BSD" copyright (c) by David O'Brien 1997,
# even though it may live in src/gnu/...

# $FreeBSD$

.PATH:	${.CURDIR}/../../../contrib/cpio

SUBDIR=	doc

PROG=	cpio

CFLAGS+= -I${.CURDIR} -I${.CURDIR}/../../../contrib/cpio
CFLAGS+= -DRETSIGTYPE=void -DHAVE_SYS_MTIO_H=1 -DSTDC_HEADERS=1 \
	 -DHAVE_UNISTD_H=1 -DHAVE_STRING_H=1 -DHAVE_FCNTL_H=1 -DHAVE_UTIME_H=1 \
	 -DHAVE_STRERROR=1 -DHAVE_VPRINTF=1 -DDIRENT=1 -DHAVE_LCHOWN \
	 -DHAVE_SYS_PARAM_H=1

SRCS =  copyin.c copyout.c copypass.c defer.c dirname.c dstring.c error.c \
	filemode.c getopt.c getopt1.c global.c idcache.c main.c makepath.c \
	rtapelib.c stripslash.c tar.c userspec.c util.c version.c \
	xmalloc.c xstrdup.c

.include <bsd.prog.mk>

Remove getopt*.c, we already have compatible getopt_long() in libc

# Note that this files is under a "BSD" copyright (c) by David O'Brien 1997,
# even though it may live in src/gnu/...

# $FreeBSD$

.PATH:	${.CURDIR}/../../../contrib/cpio

SUBDIR=	doc

PROG=	cpio

CFLAGS+= -I${.CURDIR} -I${.CURDIR}/../../../contrib/cpio
CFLAGS+= -DRETSIGTYPE=void -DHAVE_SYS_MTIO_H=1 -DSTDC_HEADERS=1 \
	 -DHAVE_UNISTD_H=1 -DHAVE_STRING_H=1 -DHAVE_FCNTL_H=1 -DHAVE_UTIME_H=1 \
	 -DHAVE_STRERROR=1 -DHAVE_VPRINTF=1 -DDIRENT=1 -DHAVE_LCHOWN \
	 -DHAVE_SYS_PARAM_H=1

SRCS =  copyin.c copyout.c copypass.c defer.c dirname.c dstring.c error.c \
	filemode.c global.c idcache.c main.c makepath.c \
	rtapelib.c stripslash.c tar.c userspec.c util.c version.c \
	xmalloc.c xstrdup.c

.include <bsd.prog.mk>


#	$FreeBSD$

SRCDIR=	${.CURDIR}/../../contrib/sort
.PATH: ${SRCDIR}

PROG=	sort
SRCS=	append.c fields.c files.c fsort.c init.c msort.c sort.c tmp.c
MAN=	sort.1
CFLAGS+= -I${SRCDIR} -include ${.CURDIR}/netbsd.h

.include <bsd.prog.mk>

Use the new features of cdefs.h.

#	$FreeBSD$

SRCDIR=	${.CURDIR}/../../contrib/sort
.PATH: ${SRCDIR}

PROG=	sort
SRCS=	append.c fields.c files.c fsort.c init.c msort.c sort.c tmp.c
MAN=	sort.1
CFLAGS+= -I${SRCDIR} -DNO__RCSID -DNO__SCCSID

.include <bsd.prog.mk>


set(CHIZU_VERSION "@CHIZU_VERSION_VERSION@")

@PACKAGE_INIT@

set_and_check(CHIZU_INCLUDE_DIR "@PACKAGE_INCLUDE_INSTALL_DIR@")
set_and_check(CHIZU_LIBRARY_DIR "@PACKAGE_LIB_INSTALL_DIR@")

check_required_components(chizu)

if (NOT TARGET chizu)
include(${CMAKE_CURRENT_LIST_DIR}/chizu-targets.cmake)
endif()

set(CHIZU_LIBRARY CHIZU)
set(CHIZU_LIBRARY_DIR ${CHIZU_LIBRARY_DIR})
set(CHIZU_INCLUDE_DIR ${CHIZU_INCLUDE_DIR})

Fix chizu lib name in config file

set(CHIZU_VERSION "@CHIZU_VERSION_VERSION@")

@PACKAGE_INIT@

set_and_check(CHIZU_INCLUDE_DIR "@PACKAGE_INCLUDE_INSTALL_DIR@")
set_and_check(CHIZU_LIBRARY_DIR "@PACKAGE_LIB_INSTALL_DIR@")

check_required_components(chizu)

if (NOT TARGET chizu)
include(${CMAKE_CURRENT_LIST_DIR}/chizu-targets.cmake)
endif()

set(CHIZU_LIBRARY chizu)
set(CHIZU_LIBRARY_DIR ${CHIZU_LIBRARY_DIR})
set(CHIZU_INCLUDE_DIR ${CHIZU_INCLUDE_DIR})


<?xml version="1.0" encoding="UTF-8"?>
<phpunit backupGlobals="false"
         backupStaticAttributes="false"
         syntaxCheck="false"
         bootstrap="src/autoload.php">

    <testsuites>
        <testsuite name="Factory">
            <directory suffix="Test.php">tests</directory>
        </testsuite>
    </testsuites>

    <filter>
        <whitelist addUncoveredFilesFromWhitelist="true">
            <directory suffix=".php">src</directory>
        </whitelist>
    </filter>

    <logging>
        <log type="coverage-html" target="build/coverage/html" title="Factory"
             charset="UTF-8" highlight="true" lowUpperBound="35" highLowerBound="70"/>
    </logging>

</phpunit>

Exclude autoloader from code coverage

<?xml version="1.0" encoding="UTF-8"?>
<phpunit backupGlobals="false"
         backupStaticAttributes="false"
         syntaxCheck="false"
         bootstrap="src/autoload.php">

    <testsuites>
        <testsuite name="Factory">
            <directory suffix="Test.php">tests</directory>
        </testsuite>
    </testsuites>

    <filter>
        <whitelist addUncoveredFilesFromWhitelist="true">
            <directory suffix=".php">src</directory>
            <exclude>
                <file>src/autoload.php</file>
            </exclude>
        </whitelist>
    </filter>

    <logging>
        <log type="coverage-html" target="build/coverage/html" title="Factory"
             charset="UTF-8" highlight="true" lowUpperBound="35" highLowerBound="70"/>
    </logging>

</phpunit>


<?xml version="1.0" encoding="UTF-8"?>

<phpunit backupGlobals="false"
         backupStaticAttributes="false"
         beStrictAboutTestsThatDoNotTestAnything="true"
         beStrictAboutOutputDuringTests="true"
         enforceTimeLimit="true"
         bootstrap="./tests/bootstrap.php"
         colors="true"
         verbose="true">
    <testsuite name="Joind.in Test Suite">
        <directory>tests/</directory>
    </testsuite>
    <logging>
        <log type="coverage-html" target="build/coverage"
             charset="UTF-8" yui="true" highlight="true"
             lowUpperBound="35" highLowerBound="70"/>
        <log type="coverage-clover" target="build/logs/clover.xml"/>
        <log type="junit" target="build/logs/junit.xml" logIncompleteSkipped="false"/>
    </logging>

    <filter>
        <whitelist processUncoveredFilesFromWhitelist="false">
            <directory suffix=".php">src/controllers</directory>
            <directory suffix=".php">src/inc</directory>
            <directory suffix=".php">src/models</directory>
            <directory suffix=".php">src/services</directory>
            <directory suffix=".php">src/views</directory>
            <exclude>
                <!-- excluded because it both defines symbols and has side effects -->
                <file>inc/Autoloader.php</file>
            </exclude>
        </whitelist>
    </filter>
</phpunit>

Remove no-longer valid log option 'charset'

<?xml version="1.0" encoding="UTF-8"?>

<phpunit backupGlobals="false"
         backupStaticAttributes="false"
         beStrictAboutTestsThatDoNotTestAnything="true"
         beStrictAboutOutputDuringTests="true"
         enforceTimeLimit="true"
         bootstrap="./tests/bootstrap.php"
         colors="true"
         verbose="true">
    <testsuite name="Joind.in Test Suite">
        <directory>tests/</directory>
    </testsuite>
    <logging>
        <log type="coverage-html" target="build/coverage"
             yui="true" highlight="true"
             lowUpperBound="35" highLowerBound="70"/>
        <log type="coverage-clover" target="build/logs/clover.xml"/>
        <log type="junit" target="build/logs/junit.xml" logIncompleteSkipped="false"/>
    </logging>

    <filter>
        <whitelist processUncoveredFilesFromWhitelist="false">
            <directory suffix=".php">src/controllers</directory>
            <directory suffix=".php">src/inc</directory>
            <directory suffix=".php">src/models</directory>
            <directory suffix=".php">src/services</directory>
            <directory suffix=".php">src/views</directory>
            <exclude>
                <!-- excluded because it both defines symbols and has side effects -->
                <file>inc/Autoloader.php</file>
            </exclude>
        </whitelist>
    </filter>
</phpunit>


#---------------------------------------------------------------------------
#
# $FreeBSD$
#
#	last edit-date: [Tue Dec 14 21:17:46 1999]
#
#---------------------------------------------------------------------------

PROG            =       dtmfdecode
SRC             =       dtmfdecode.c

# libm is only necessary if USE_COS is defined in the source
#LDADD          +=      -lm

CFLAGS          +=      -Wall -g -DDEBUG
MAN1		=	dtmfdecode.1

test:   ${PROG}
        uudecode -p < dtmfsounds.al.uu | ./${PROG}

.include <bsd.prog.mk>

Replace spaces with a tab to fix build breakage


PROG=   koi2alt
NOMAN=	noman
BINDIR= /usr/libexec/lpr/ru

SAMPLES=bjc-240.sh.sample

afterinstall:
	cd ${.CURDIR} && \
	    ${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m ${SHAREMODE} \
	    ${SAMPLES} ${BINDIR}

.include <bsd.prog.mk>

Add DESTDIR to afterinstall Submitted by: jhay

PROG=   koi2alt
NOMAN=	noman
BINDIR= /usr/libexec/lpr/ru

SAMPLES=bjc-240.sh.sample

afterinstall:
	cd ${.CURDIR} && \
	    ${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m ${SHAREMODE} \
	    ${SAMPLES} ${DESTDIR}${BINDIR}

.include <bsd.prog.mk>


# From:	@(#)Makefile	8.3 (Berkeley) 4/2/94
# $Id: Makefile,v 1.4 1994/09/29 13:05:44 csgr Exp $

PROG=	passwd
SRCS=	local_passwd.c passwd.c pw_copy.c pw_util.c
LDADD=	-lcrypt
.PATH:  ${.CURDIR}/../../usr.bin/chpass ${.CURDIR}/../../usr.sbin/vipw \
	${.CURDIR}/../rlogin
CFLAGS+=-DCRYPT -I${.CURDIR} -I${.CURDIR}/../../usr.sbin/vipw \
	-I${.CURDIR}/../../usr.bin/chpass

.if exists(${DESTDIR}/usr/lib/libkrb.a) && (defined(MAKE_KERBEROS) \
	|| defined(MAKE_EBONES))
SRCS+=	krb_passwd.c
CFLAGS+=-DKERBEROS
LDADD+=-lkrb -ldes
DPADD=	${LIBKRB} ${LIBDES}
DISTRIBUTION=	krb
.endif

BINOWN=	root
BINMODE=4555
INSTALLFLAGS=-fschg

.include <bsd.prog.mk>

Kill old Kerberos password-changing support:

# From:	@(#)Makefile	8.3 (Berkeley) 4/2/94
# $Id: Makefile,v 1.5 1994/11/20 23:21:06 wollman Exp $

PROG=	passwd
SRCS=	local_passwd.c passwd.c pw_copy.c pw_util.c
LDADD=	-lcrypt
.PATH:  ${.CURDIR}/../../usr.bin/chpass ${.CURDIR}/../../usr.sbin/vipw \
	${.CURDIR}/../rlogin
CFLAGS+=-DCRYPT -I${.CURDIR} -I${.CURDIR}/../../usr.sbin/vipw \
	-I${.CURDIR}/../../usr.bin/chpass

BINOWN=	root
BINMODE=4555
INSTALLFLAGS=-fschg

.include <bsd.prog.mk>


#	@(#)Makefile	8.1 (Berkeley) 6/6/93

PROG=	iostat
CFLAGS+=-I/sys -I${.CURDIR}/../../usr.bin/vmstat
MAN8=	iostat.8
DPADD=	${LIBKVM}
LDADD=	-lkvm
BINGRP=	kmem
BINMODE=2555

.include <bsd.prog.mk>

Remove -I/sys and add -I${.CURDIR}/../../sys

#	@(#)Makefile	8.1 (Berkeley) 6/6/93

PROG=	iostat
CFLAGS+=-I${.CURDIR}/../../usr.bin/vmstat -I${.CURDIR}/../../sys
MAN8=	iostat.8
DPADD=	${LIBKVM}
LDADD=	-lkvm
BINGRP=	kmem
BINMODE=2555

.include <bsd.prog.mk>


# $FreeBSD$

.include "../Makefile.inc0"

.PATH: ${SRCDIR}/binutils

LIB=	binutils
SRCS+=	arlex.l \
	arparse.y \
	arsup.c \
	binemul.c \
	bucomm.c \
	budemang.c \
	debug.c \
	emul_vanilla.c \
	filemode.c \
	ieee.c \
	rdcoff.c \
	rddbg.c \
	rename.c \
	stabs.c \
	unwind-ia64.c \
	version.c \
	wrstabs.c
WARNS?=	0
CFLAGS+= -DTARGET=\"${BINUTILS_ARCH}-obrien-freebsd\"
CFLAGS+= -DBFD_VERSION_STRING=\"${VERSION}\"
CFLAGS+= -D_GNU_SOURCE
CFLAGS+= -I${SRCDIR}/binutils
CFLAGS+= -I${SRCDIR}/bfd
INTERNALLIB=

.include <bsd.lib.mk>

Add new upstream file, and update TARGET definition.

# $FreeBSD$

.include "../Makefile.inc0"

.PATH: ${SRCDIR}/binutils

LIB=	binutils
SRCS+=	arlex.l \
	arparse.y \
	arsup.c \
	binemul.c \
	bucomm.c \
	budemang.c \
	debug.c \
	dwarf.c \
	emul_vanilla.c \
	filemode.c \
	ieee.c \
	rdcoff.c \
	rddbg.c \
	rename.c \
	stabs.c \
	unwind-ia64.c \
	version.c \
	wrstabs.c
WARNS?=	0
CFLAGS+= -DTARGET=\"${TARGET_TUPLE}\"
CFLAGS+= -DBFD_VERSION_STRING=\"${VERSION}\"
CFLAGS+= -D_GNU_SOURCE
CFLAGS+= -I${SRCDIR}/binutils
CFLAGS+= -I${SRCDIR}/bfd
INTERNALLIB=

.include <bsd.lib.mk>


FROM node:8-alpine

RUN mkdir /src \
  && mkdir /tool

COPY package.json /tool

# Install node tools
RUN cd /tool \
  && npm install \
  # Make npm executables quack like binaries.
  && ln -s /tool/node_modules/.bin/eslint /usr/bin/eslint \
  && ln -s /tool/node_modules/.bin/csslint /usr/bin/csslint \
  && ln -s /tool/node_modules/.bin/jscs /usr/bin/jscs \
  && ln -s /tool/node_modules/.bin/jshint /usr/bin/jshint \
  && ln -s /tool/node_modules/.bin/sass-lint /usr/bin/sass-lint \
  && ln -s /tool/node_modules/.bin/standard /usr/bin/standard \
  && ln -s /tool/node_modules/.bin/tslint /usr/bin/tslint \
  && ln -s /tool/node_modules/.bin/xo /usr/bin/xo

WORKDIR /src

Put package.json in a place eslint can find it.

FROM node:8-alpine

RUN mkdir /src \
  && mkdir /tool

COPY package.json /tool

# Install node tools
RUN cd /tool \
  && npm install \
  # Make npm executables quack like binaries.
  && ln -s /tool/node_modules/.bin/eslint /usr/bin/eslint \
  && ln -s /tool/node_modules/.bin/csslint /usr/bin/csslint \
  && ln -s /tool/node_modules/.bin/jscs /usr/bin/jscs \
  && ln -s /tool/node_modules/.bin/jshint /usr/bin/jshint \
  && ln -s /tool/node_modules/.bin/sass-lint /usr/bin/sass-lint \
  && ln -s /tool/node_modules/.bin/standard /usr/bin/standard \
  && ln -s /tool/node_modules/.bin/tslint /usr/bin/tslint \
  && ln -s /tool/node_modules/.bin/xo /usr/bin/xo \
  # Move package.json so that it is an ancestor of /src allowing
  # eslint and xo to use it for config
  && mv /tool/package.json /

WORKDIR /src


#!/bin/bash

GPG_BIN="/usr/bin/gpg"
GPG2_BIN="/usr/bin/gpg2"

function gpg_get_key ()
{
	recipient="$1"

	$GPG_BIN --export -a "$recipient"
	return $?
}

function gpg2_get_key ()
{
	recipient="$1"

	$GPG2_BIN --export -a "$recipient"
	return $?
}

if [ $# -lt 1 ]; then
	echo "Usage: $0 <RECIPIENT>"
	exit 1
fi

recipient="$1"

if [ -x $GPG2_BIN ]; then
	gpg2_get_key "$recipient"
	exit $?
elif [ -x $GPG_BIN ]; then
	gpg_get_key "$recipient"
	exit $?
fi

echo "$0: cannot execute GPG binary."

exit 1

Use long options for clarity and --batch mode.

#!/bin/bash

#
# Copyright (c) 2014, PGPSender.org
#

GPG_BIN="/usr/bin/gpg"
GPG2_BIN="/usr/bin/gpg2"

function gpg_get_key ()
{
	recipient="$1"

	$GPG_BIN --batch --export --armor "$recipient"
	return $?
}

function gpg2_get_key ()
{
	recipient="$1"

	$GPG2_BIN --batch --export --armor "$recipient"
	return $?
}

if [ $# -lt 1 ]; then
	echo "Usage: $0 <RECIPIENT>"
	exit 1
fi

recipient="$1"

if [ -x $GPG2_BIN ]; then
	gpg2_get_key "$recipient"
	exit $?
elif [ -x $GPG_BIN ]; then
	gpg_get_key "$recipient"
	exit $?
fi

echo "$0: cannot execute GPG binary."

exit 1


# Fstar build container
FROM everest_windows_base_image:1

ARG BUILDLOGFILE
ARG MAXTHREADS
ARG TARGET

#USER "NT AUTHORITY\SYSTEM"

#BUILD FSTAR
RUN md ${MYHOME}\FStar
COPY / ${MYHOME}/FStar/
WORKDIR ${MYHOME}/FStar

RUN powershell.exe -c Write-Host (Get-Date).ToString() >> %BUILDLOGFILE%
COPY build.sh ${MYHOME}/FStar/build.sh
RUN powershell.exe c:\ewerest\bash.ps1 ./build.sh %TARGET% %BUILDLOGFILE% %MAXTHREADS%

RUN powershell.exe -c Write-Host (Get-Date).ToString() >> %BUILDLOGFILE%

# Generate query-stats.
# List the hints that fail to replay.
RUN powershell.exe c:\ewerest\bash.ps1 .scripts/query-stats.py -f %BUILDLOGFILE% -F html -o log_no_replay.html -n all '--filter=fstar_usedhints=+' '--filter=fstar_tag=-' -g

# Worst offenders (longest times)
RUN powershell.exe c:\ewerest\bash.ps1 .scripts/query-stats.py -f %BUILDLOGFILE% -F html -o log_worst.html -c -g -n 10

Move the log files out from c:\user, and set the everest account password

# Fstar build container
FROM everest_windows_base_image:1

ARG BUILDLOGFILE
ARG MAXTHREADS
ARG TARGET

#USER "NT AUTHORITY\SYSTEM"

#BUILD FSTAR
RUN md ${MYHOME}\FStar
COPY / ${MYHOME}/FStar/
WORKDIR ${MYHOME}/FStar

RUN powershell.exe -c Write-Host (Get-Date).ToString() >> %BUILDLOGFILE%
COPY build.sh ${MYHOME}/FStar/build.sh
RUN powershell.exe c:\ewerest\bash.ps1 ./build.sh %TARGET% %BUILDLOGFILE% %MAXTHREADS%

RUN powershell.exe -c Write-Host (Get-Date).ToString() >> %BUILDLOGFILE%

# Generate query-stats.
# List the hints that fail to replay.
RUN powershell.exe c:\ewerest\bash.ps1 .scripts/query-stats.py -f %BUILDLOGFILE% -F html -o /cygdrive/c/ewerest/log_no_replay.html -n all '--filter=fstar_usedhints=+' '--filter=fstar_tag=-' -g

# Worst offenders (longest times)
RUN powershell.exe c:\ewerest\bash.ps1 .scripts/query-stats.py -f %BUILDLOGFILE% -F html -o /cygdrive/c/ewerest/log_worst.html -c -g -n 10

# Now seal the image, ready for SSH access.
USER root
RUN net user everest Docker!


<?xml version="1.0" encoding="UTF-8"?>

<phpunit
         xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
         xsi:noNamespaceSchemaLocation="http://schema.phpunit.de/4.3/phpunit.xsd"
         backupGlobals="false"
         backupStaticAttributes="false"
         colors="true"
         convertErrorsToExceptions="true"
         convertNoticesToExceptions="true"
         convertWarningsToExceptions="true"
         stopOnFailure="false"
         syntaxCheck="false"
         bootstrap="tests/bootstrap.php"
>

    <php>
        <ini name="error_reporting" value="-1"/>
        <env name="MONGODB_URI" value="mongodb://127.0.0.1:27017"/>
        <env name="MONGODB_DATABASE" value="phplib_test"/>
    </php>

    <testsuites>
        <testsuite name="MongoDB CRUD Test Suite">
            <directory>./tests/</directory>
        </testsuite>
    </testsuites>
</phpunit>

Reduce default server selection timeout for tests

<?xml version="1.0" encoding="UTF-8"?>

<phpunit
         xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
         xsi:noNamespaceSchemaLocation="http://schema.phpunit.de/4.3/phpunit.xsd"
         backupGlobals="false"
         backupStaticAttributes="false"
         colors="true"
         convertErrorsToExceptions="true"
         convertNoticesToExceptions="true"
         convertWarningsToExceptions="true"
         stopOnFailure="false"
         syntaxCheck="false"
         bootstrap="tests/bootstrap.php"
>

    <php>
        <ini name="error_reporting" value="-1"/>
        <env name="MONGODB_URI" value="mongodb://127.0.0.1:27017/?serverSelectionTimeoutMS=100"/>
        <env name="MONGODB_DATABASE" value="phplib_test"/>
    </php>

    <testsuites>
        <testsuite name="MongoDB CRUD Test Suite">
            <directory>./tests/</directory>
        </testsuite>
    </testsuites>
</phpunit>


<?xml version="1.0" encoding="UTF-8"?>
<phpunit xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
         xsi:noNamespaceSchemaLocation="https://schema.phpunit.de/9.1/phpunit.xsd"
         bootstrap="vendor/autoload.php"
         executionOrder="depends,defects"
         forceCoversAnnotation="false"
         beStrictAboutCoversAnnotation="true"
         beStrictAboutOutputDuringTests="true"
         beStrictAboutTodoAnnotatedTests="true"
         cacheResult="true"
         colors="true"
         verbose="true">
    <testsuites>
        <testsuite name="default">
            <directory suffix="Test.php">tests</directory>
        </testsuite>
    </testsuites>

    <filter>
        <whitelist processUncoveredFilesFromWhitelist="true">
            <directory suffix=".php">src</directory>
        </whitelist>
    </filter>

    <logging>
        <log type="coverage-text" target="php://stdout" showUncoveredFiles="false"/>
        <log type="coverage-html" target="build/coverage-html"/>
    </logging>
</phpunit>

Update to PHPUnit 9 configuration format

<?xml version="1.0" encoding="UTF-8"?>
<phpunit xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="https://schema.phpunit.de/9.3/phpunit.xsd" bootstrap="vendor/autoload.php" executionOrder="depends,defects" forceCoversAnnotation="false" beStrictAboutCoversAnnotation="true" beStrictAboutOutputDuringTests="true" beStrictAboutTodoAnnotatedTests="true" cacheResult="true" colors="true" verbose="true">
  <coverage processUncoveredFiles="true">
    <include>
      <directory suffix=".php">src</directory>
    </include>
    <report>
      <html outputDirectory="build/coverage-html"/>
      <text outputFile="php://stdout" showUncoveredFiles="false"/>
    </report>
  </coverage>
  <testsuites>
    <testsuite name="default">
      <directory suffix="Test.php">tests</directory>
    </testsuite>
  </testsuites>
  <logging/>
</phpunit>


#	@(#)Makefile	8.1 (Berkeley) 6/6/93
# $FreeBSD$

PROG=	du
DPADD=	${LIBM}
LDADD=	-lm

.include <bsd.prog.mk>

Mark du(1) as WARNS6 clean.

#	@(#)Makefile	8.1 (Berkeley) 6/6/93
# $FreeBSD$

PROG=	du
WARNS?=	6
DPADD=	${LIBM}
LDADD=	-lm

.include <bsd.prog.mk>


FROM centos:7

RUN yum update -y \
    && yum install -y centos-release-scl \
    && yum install -y epel-release \
    && yum update -y \
    && yum install -y \
         cmake3 \
         devtoolset-7 \
         devtoolset-7-libasan-devel \
         devtoolset-7-libubsan-devel \
         git \
         make \
         openssl-devel \
    && yum clean all

ENV CXX=/opt/rh/devtoolset-7/root/usr/bin/g++

Update CentOS 7 image to use GCC 8

FROM centos:7

RUN yum update -y \
    && yum install -y centos-release-scl \
    && yum install -y epel-release \
    && yum update -y \
    && yum install -y \
         cmake3 \
         devtoolset-8 \
         devtoolset-8-libasan-devel \
         devtoolset-8-libubsan-devel \
         git \
         make \
         openssl-devel \
    && yum clean all

ENV CXX=/opt/rh/devtoolset-8/root/usr/bin/g++


<?xml version="1.0" encoding="UTF-8"?>

<phpunit bootstrap="_tests/Unit/bootstrap.php" colors="true">
    <testsuites>
        <testsuite name="pH7CMS Protected">
            <directory>_tests/Unit</directory>
        </testsuite>
    </testsuites>

    <filter>
        <whitelist>
            <directory suffix=".php">_protected</directory>
            <exclude>
                <directory>_protected/library</directory>
                <directory>_protected/vendor</directory>
            </exclude>
        </whitelist>
    </filter>

    <logging>
        <log type="coverage-text" target="php://stdout" showUncoveredFiles="true" showOnlySummary="true" />
        <log type="coverage-html" target="coverage" />
    </logging>
</phpunit>

Fix "headers already sent" when using headers with phpunit

<?xml version="1.0" encoding="UTF-8"?>

<phpunit
    bootstrap="_tests/Unit/bootstrap.php"
    processIsolation="true"
    colors="true">
    <testsuites>
        <testsuite name="pH7CMS Protected">
            <directory>_tests/Unit</directory>
        </testsuite>
    </testsuites>

    <filter>
        <whitelist>
            <directory suffix=".php">_protected</directory>
            <exclude>
                <directory>_protected/library</directory>
                <directory>_protected/vendor</directory>
            </exclude>
        </whitelist>
    </filter>

    <logging>
        <log type="coverage-text" target="php://stdout" showUncoveredFiles="true" showOnlySummary="true" />
        <log type="coverage-html" target="coverage" />
    </logging>
</phpunit>


FROM node:12.18
WORKDIR /app
COPY print/package*.json ./
RUN npm install
COPY print .
RUN npm run build
EXPOSE 80
CMD npm run start

Optimize print docker images by using multi-stage build

# build stage
FROM node:12.18 AS build-stage
WORKDIR /app
COPY print .
RUN npm install
RUN npm run build

# production stage
FROM node:12.18 AS production-stage
WORKDIR /app

COPY --from=build-stage /app/node_modules ./node_modules
COPY --from=build-stage /app/.nuxt ./.nuxt
COPY --from=build-stage /app/static ./static
COPY print/nuxt.config.js .

EXPOSE 80
CMD ./node_modules/.bin/nuxt start


INSTALLDIR=	${DESTDIR}${prefix}/share/darwinports/resources/port1.0/group

RSRCS=		perl5-1.0.tcl zope-1.0.tcl

include ../../../../Mk/dports.autoconf.mk

all:

clean:

distclean:

install:
	$(INSTALL) -d -o ${DSTUSR} -g ${DSTGRP} -m 775 ${INSTALLDIR}
	$(SILENT)set -x; for file in ${RSRCS}; do \
		$(INSTALL) -o ${DSTUSR} -g ${DSTGRP} -m 444 $$file ${INSTALLDIR}; \
	done

Add python to the makefile.

INSTALLDIR=	${DESTDIR}${prefix}/share/darwinports/resources/port1.0/group

RSRCS=		perl5-1.0.tcl python-1.0.tcl zope-1.0.tcl

include ../../../../Mk/dports.autoconf.mk

all:

clean:

distclean:

install:
	$(INSTALL) -d -o ${DSTUSR} -g ${DSTGRP} -m 775 ${INSTALLDIR}
	$(SILENT)set -x; for file in ${RSRCS}; do \
		$(INSTALL) -o ${DSTUSR} -g ${DSTGRP} -m 444 $$file ${INSTALLDIR}; \
	done


makedir := $(dir $(lastword $(MAKEFILE_LIST)))
topdir  := $(makedir)/..

srpm:
	dnf -y install npm jq
	$(MAKE) -C $(topdir) srpm
	cp $(topdir)/*.src.rpm $(outdir)

Add git to the `make srpm` environment

makedir := $(dir $(lastword $(MAKEFILE_LIST)))
topdir  := $(makedir)/..

srpm:
	dnf -y install npm jq git
	$(MAKE) -C $(topdir) srpm
	cp $(topdir)/*.src.rpm $(outdir)


#!/bin/sh

cd "@abs_top_builddir@/tests/twisted/tools"

export SOFIASIP_DEBUG=all
ulimit -c unlimited
exec > sofiasip-testing.log 2>&1

if test -n "$SOFIASIP_TEST_VALGRIND"; then
	export G_DEBUG=gc-friendly
	export G_SLICE=always-malloc
	SOFIASIP_WRAPPER="valgrind --leak-check=full"
fi

exec $SOFIASIP_WRAPPER @abs_top_builddir@/src/telepathy-sofiasip

Add SIP traffic to telepathy-sofiasip test logs

#!/bin/sh

cd "@abs_top_builddir@/tests/twisted/tools"

export TPSIP_DEBUG=all
export TPORT_LOG=1
ulimit -c unlimited
exec > sofiasip-testing.log 2>&1

if test -n "$SOFIASIP_TEST_VALGRIND"; then
	export G_DEBUG=gc-friendly
	export G_SLICE=always-malloc
	SOFIASIP_WRAPPER="valgrind --leak-check=full"
fi

exec $SOFIASIP_WRAPPER @abs_top_builddir@/src/telepathy-sofiasip


PROJECT_DIR = $(CURDIR)
BUILD_DIR = /tmp/openSUSE_13.1_root
OUTPUT_DIR = /tmp/openSUSE_13.1_root_result

build :: clean
	sudo /usr/sbin/kiwi --prepare $(PROJECT_DIR) --root $(BUILD_DIR)
	mkdir -p $(OUTPUT_DIR)
	sudo /usr/sbin/kiwi --create $(BUILD_DIR) --type docker -d $(OUTPUT_DIR)

clean ::
	sudo rm -rf $(BUILD_DIR)
	sudo rm -rf $(OUTPUT_DIR)
	sudo rm -f $(BUILD_DIR).log

import ::
	docker import - opensuse:13.1 < $(OUTPUT_DIR)/suse-13.1-docker-guest-docker.x86_64-1.0.0.tbz

Fix docker tarball path for opensuse:13.1 image

PROJECT_DIR = $(CURDIR)
BUILD_DIR = /tmp/openSUSE_13.1_root
OUTPUT_DIR = /tmp/openSUSE_13.1_root_result

build :: clean
	sudo /usr/sbin/kiwi --prepare $(PROJECT_DIR) --root $(BUILD_DIR)
	mkdir -p $(OUTPUT_DIR)
	sudo /usr/sbin/kiwi --create $(BUILD_DIR) --type docker -d $(OUTPUT_DIR)

clean ::
	sudo rm -rf $(BUILD_DIR)
	sudo rm -rf $(OUTPUT_DIR)
	sudo rm -f $(BUILD_DIR).log

import ::
	docker import - opensuse:13.1 < $(OUTPUT_DIR)/suse-13.1-docker-guest-docker.x86_64-1.0.0.tar.xz


# $FreeBSD$

# The order of some of these are rather important.  Some depend on previous
# subdirs.

SUBDIR= cc_fbsd cc_tools cc_int cccp cpp cc1 cc cc1plus c++ c++filt doc

.if !defined(NO_OBJC)
SUBDIR+= cc1obj
.endif

.if !defined(NO_FORTRAN)
SUBDIR+= f77 f771 f77doc
.endif

.include <bsd.subdir.mk>

Make the SUBDIR list more granular to assist in my GCC hacking.

# $FreeBSD$

# The order of some of these are rather important.  Some depend on previous
# subdirs.

SUBDIR= cc_fbsd cc_tools cc_int cccp cc1 cc

.if !defined(NO_CPP)
SUBDIR+= cpp
.endif

.if !defined(NO_CXX)
SUBDIR+= cc1plus c++ c++filt doc
.endif

.if !defined(NO_OBJC)
SUBDIR+= cc1obj
.endif

.if !defined(NO_FORTRAN)
SUBDIR+= f77 f771 f77doc
.endif

.include <bsd.subdir.mk>


$FreeBSD$

PROG=	burncd
MAN8=	burncd.8

.include <bsd.prog.mk>

Fix 'make world' breakage caused by missing comment character.

# $FreeBSD$

PROG=	burncd
MAN8=	burncd.8

.include <bsd.prog.mk>


#	@(#)Makefile	8.1 (Berkeley) 6/19/93

PROG=	routed
SRCS=	af.c if.c input.c main.c output.c startup.c tables.c timer.c \
	trace.c inet.c
MAN8=	routed.8
#SUBDIR=	query trace
DPADD=	${LIBCOMPAT}
LDADD=	-lcompat

.include <bsd.prog.mk>

.if (${MACHINE} == "vax")
# The following can be deleted where not appropriate to use the kernel's
# inline code expansions.
INLINE=	/sys/vax/inline/obj/inline
C2=	/usr/libexec/c2
.c.o:
	${CC} -S ${CFLAGS} ${.CURDIR}/${.PREFIX}.c
	@${C2} ${.PREFIX}.s | ${INLINE} | ${AS} -o ${.PREFIX}.o
	@rm -f ${.PREFIX}.s
.endif

Clean up Makefile. Still needs -lcompat for insque/remque.

#	@(#)Makefile	8.1 (Berkeley) 6/19/93
#	$Id$

PROG=	routed
SRCS=	af.c if.c input.c main.c output.c startup.c tables.c timer.c \
	trace.c inet.c
MAN8=	routed.8
#SUBDIR=	query trace
DPADD=	${LIBCOMPAT}
LDADD=	-lcompat

.include <bsd.prog.mk>


MAN8=   adduser.8

clean obj:

beforeinstall:
	install -c -o ${BINOWN} -g ${BINGRP} -m ${BINMODE} \
	    ${.CURDIR}/adduser.perl ${DESTDIR}${BINDIR}/adduser

.include <bsd.prog.mk>

Remove extra targets per Bruce suggestion. Use more macros instead of hardcoded things

MAN8=   adduser.8

beforeinstall:
	${INSTALL} ${COPY} -o ${BINOWN} -g ${BINGRP} -m ${BINMODE} \
	    ${.CURDIR}/adduser.perl ${DESTDIR}${BINDIR}/adduser

.include <bsd.prog.mk>


<!-- insert_bottom "[data-hook='cart_buttons']" -->
<%= render :partial => "spree/amazon/login" %>

Hide pay with amazon button if the payment method hasn't been configured

<!-- insert_bottom "[data-hook='cart_buttons']" -->
<% if Spree::Gateway::Amazon.count > 0 %>
  <%= render :partial => "spree/amazon/login" %>
<% end %>


# DOCKER-VERSION 1.2.0
ARG CONTAINER_IMAGE
FROM ${CONTAINER_IMAGE}

ARG proxy
ENV http_proxy=$proxy

# Create root, i.e. C:\solution
WORKDIR /solution

# Copy entire directory (rely on storeForLocal to limit to only to required, unlike containerBuild)
COPY automation automation

# Shared bootstrap between Docker and Vagrant
COPY bootstrapPython.ps1 .
RUN automation\provisioning\runner.bat bootstrapPython.ps1

# Install runtime dependencies at System Level
RUN RMDIR /Q/S C:\python38\lib\site-packages
ADD site-packages.tar.gz /

# Install the application
ADD cbe.tar.gz .
COPY manage.py .
RUN python manage.py migrate
RUN python manage.py createsuperuser superuser super@hero.net passw0rd

CMD ["python", "manage.py", "runserver"]

Use single string for startup command

# DOCKER-VERSION 1.2.0
ARG CONTAINER_IMAGE
FROM ${CONTAINER_IMAGE}

ARG proxy
ENV http_proxy=$proxy

# Create root, i.e. C:\solution
WORKDIR /solution

# Copy entire directory (rely on storeForLocal to limit to only to required, unlike containerBuild)
COPY automation automation

# Shared bootstrap between Docker and Vagrant
COPY bootstrapPython.ps1 .
RUN automation\provisioning\runner.bat bootstrapPython.ps1

# Install runtime dependencies at System Level
RUN RMDIR /Q/S C:\python38\lib\site-packages
ADD site-packages.tar.gz /

# Install the application
ADD cbe.tar.gz .
COPY manage.py .
RUN python manage.py migrate
RUN python manage.py createsuperuser superuser super@hero.net passw0rd

CMD "python -u manage.py runserver 0.0.0.0:8000"


# $FreeBSD$

SUBDIR= bc binutils cc cpio dc dialog diff diff3 \
	gperf grep groff gzip man patch rcs sdiff send-pr sort tar texinfo

.if !defined(NO_CVS)
SUBDIR+=cvs
.endif

.if defined(WANT_AOUT)
.if ${MACHINE_ARCH} == "i386"
SUBDIR+=as ld
.endif
.endif

.include <bsd.subdir.mk>

Disable building of the a.out gas and ld. They will become ports.

# $FreeBSD$

SUBDIR= bc binutils cc cpio dc dialog diff diff3 \
	gperf grep groff gzip man patch rcs sdiff send-pr sort tar texinfo

.if !defined(NO_CVS)
SUBDIR+=cvs
.endif

.include <bsd.subdir.mk>


FROM php:7.2-apache-stretch

MAINTAINER Click & Mortar <contact@clickandmortar.fr>

RUN apt-get update \
    && DEBIAN_FRONTEND=noninteractive apt-get install -y \
        git wget zip zlib1g-dev libpng-dev libfreetype6-dev libjpeg62-turbo-dev \
    && wget https://getcomposer.org/composer.phar -O /usr/local/bin/composer \
    && chmod +x /usr/local/bin/composer \
    && docker-php-ext-install pdo pdo_mysql opcache zip \
    && pecl install apcu \
    && docker-php-ext-enable apcu \
    && docker-php-ext-configure gd --with-freetype-dir=/usr/include/ --with-jpeg-dir=/usr/include/ \
    && docker-php-ext-install -j$(nproc) gd \
    && a2enmod rewrite \
    && sed -i 's/Listen 80$/Listen 8080/g' /etc/apache2/ports.conf

COPY php.ini /usr/local/etc/php/conf.d/custom.ini
COPY apache-vhost.conf /etc/apache2/sites-available/000-default.conf

RUN useradd -s /bin/bash -d /home/docker -m -g www-data docker

USER docker

WORKDIR /app

EXPOSE 8080

Add missing JSON & INTL extensions

FROM php:7.2-apache-stretch

MAINTAINER Click & Mortar <contact@clickandmortar.fr>

RUN apt-get update \
    && DEBIAN_FRONTEND=noninteractive apt-get install -y \
        git wget zip zlib1g-dev libicu-dev libpng-dev libfreetype6-dev libjpeg62-turbo-dev \
    && wget https://getcomposer.org/composer.phar -O /usr/local/bin/composer \
    && chmod +x /usr/local/bin/composer \
    && docker-php-ext-install pdo pdo_mysql opcache zip json \
    && pecl install apcu \
    && docker-php-ext-enable apcu \
    && docker-php-ext-configure gd --with-freetype-dir=/usr/include/ --with-jpeg-dir=/usr/include/ \
    && docker-php-ext-install -j$(nproc) gd \
    && docker-php-ext-configure intl \
    && docker-php-ext-install intl \
    && a2enmod rewrite \
    && sed -i 's/Listen 80$/Listen 8080/g' /etc/apache2/ports.conf

COPY php.ini /usr/local/etc/php/conf.d/custom.ini
COPY apache-vhost.conf /etc/apache2/sites-available/000-default.conf

RUN useradd -s /bin/bash -d /home/docker -m -g www-data docker

USER docker

WORKDIR /app

EXPOSE 8080


@PACKAGE_INIT@
set_and_check(TINYSPLINECXX_INCLUDE_DIRS "@PACKAGE_TINYSPLINE_INSTALL_INCLUDE_DIR@")
set_and_check(TINYSPLINECXX_LIBRARY_DIRS "@PACKAGE_TINYSPLINE_INSTALL_LIBRARY_DIR@")
set_and_check(TINYSPLINECXX_BINARY_DIRS "@PACKAGE_TINYSPLINE_INSTALL_BINARY_DIR@")
set(TINYSPLINECXX_VERSION "@TINYSPLINE_VERSION@")
set(TINYSPLINECXX_DEFINITIONS "@TINYSPLINE_CXX_DEFINITIONS@")

include("${CMAKE_CURRENT_LIST_DIR}/tinysplinecxx-targets.cmake")
set(TINYSPLINECXX_LIBRARIES tinysplinecxx::tinysplinecxx)

mark_as_advanced(
	TINYSPLINECXX_INCLUDE_DIRS
	TINYSPLINECXX_LIBRARY_DIRS
	TINYSPLINECXX_BINARY_DIRS
	TINYSPLINECXX_VERSION
	TINYSPLINECXX_DEFINITIONS
	TINYSPLINECXX_LIBRARIES)

include(FindPackageHandleStandardArgs)
find_package_handle_standard_args(tinysplinecxx
	REQUIRED_VARS
		TINYSPLINECXX_INCLUDE_DIRS
		TINYSPLINECXX_LIBRARY_DIRS
		TINYSPLINECXX_BINARY_DIRS
		TINYSPLINECXX_LIBRARIES
	VERSION_VAR
		TINYSPLINE_VERSION)

Fix TINYSPLINECXX_BINARY_DIRS in CMake config file

@PACKAGE_INIT@
set_and_check(TINYSPLINECXX_INCLUDE_DIRS "@PACKAGE_TINYSPLINE_INSTALL_INCLUDE_DIR@")
set_and_check(TINYSPLINECXX_LIBRARY_DIRS "@PACKAGE_TINYSPLINE_INSTALL_LIBRARY_DIR@")
set(TINYSPLINECXX_BINARY_DIRS "@PACKAGE_TINYSPLINE_INSTALL_BINARY_DIR@")
set(TINYSPLINECXX_VERSION "@TINYSPLINE_VERSION@")
set(TINYSPLINECXX_DEFINITIONS "@TINYSPLINE_CXX_DEFINITIONS@")

include("${CMAKE_CURRENT_LIST_DIR}/tinysplinecxx-targets.cmake")
set(TINYSPLINECXX_LIBRARIES tinysplinecxx::tinysplinecxx)

mark_as_advanced(
	TINYSPLINECXX_INCLUDE_DIRS
	TINYSPLINECXX_LIBRARY_DIRS
	TINYSPLINECXX_BINARY_DIRS
	TINYSPLINECXX_VERSION
	TINYSPLINECXX_DEFINITIONS
	TINYSPLINECXX_LIBRARIES)

include(FindPackageHandleStandardArgs)
find_package_handle_standard_args(tinysplinecxx
	REQUIRED_VARS
		TINYSPLINECXX_INCLUDE_DIRS
		TINYSPLINECXX_LIBRARY_DIRS
		TINYSPLINECXX_BINARY_DIRS
		TINYSPLINECXX_LIBRARIES
	VERSION_VAR
		TINYSPLINE_VERSION)


<phpunit bootstrap="./Bootstrap.php" colors="true">
    <testsuites>
        <testsuite name="Zend Framework Test Suite">
            <directory>./</directory>
        </testsuite>
    </testsuites>

    <groups>
        <exclude>
            <group>disable</group>
            <group>Zend_Dojo</group>
        </exclude>
    </groups>
</phpunit>

Update the list of components/groups to exclude from the run

<phpunit bootstrap="./Bootstrap.php" colors="true">
    <testsuites>
        <testsuite name="Zend Framework Test Suite">
            <directory>./Zend</directory>
            <exclude>./Zend/_files/</exclude>
            <exclude>./Zend/AllTests/</exclude>
            <exclude>./Zend/Amf/</exclude>
            <exclude>./Zend/Date/</exclude>
            <exclude>./Zend/Dojo/</exclude>
            <exclude>./Zend/Queue/</exclude>
            <exclude>./Zend/Service/</exclude>
            <exclude>./Zend/Test/</exclude>
            <exclude>./Zend/Wildfire/</exclude>
        </testsuite>
    </testsuites>

    <groups>
        <exclude>
            <group>disable</group>
            <group>Zend_Amf</group>
            <group>Zend_Date</group>
            <group>Zend_Dojo</group>
            <group>Zend_Queue</group>
            <group>Zend_Service</group>
            <group>Zend_Test</group>
            <group>Zend_Wildfire</group>
        </exclude>
    </groups>
</phpunit>


# $FreeBSD$

AWKSRC=	${.CURDIR}/../../contrib/one-true-awk
.PATH: ${AWKSRC}

PROG=	nawk
SRCS=	awkgram.y b.c lex.c lib.c main.c parse.c proctab.c run.c tran.c

CFLAGS+= -I. -I${AWKSRC}

DPADD=	${LIBM}
LDADD=	-lm

.if ${MACHINE_ARCH} == "sparc64"
LINKS+=	${BINDIR}/nawk ${BINDIR}/awk
MLINKS+=	nawk.1 awk.1
.endif

CLEANFILES+=	maketab proctab.c ytab.c ytab.h

ytab.h: awkgram.h
	ln -sf ${.ALLSRC} ${.TARGET}

proctab.c: maketab
	./maketab > proctab.c

build-tools: maketab
maketab: ytab.h ${AWKSRC}/maketab.c
	${CC} ${CFLAGS} ${AWKSRC}/maketab.c -o maketab

CLEANFILES+=	nawk.1
nawk.1: awk.1
	ln -sf ${.ALLSRC} ${.TARGET}

.include <bsd.prog.mk>

Make this compile in a standalone environment. Tidy up CLEANFILES. Use built-in rules for building "maketab".

# $FreeBSD$

AWKSRC=	${.CURDIR}/../../contrib/one-true-awk
.PATH: ${AWKSRC}

PROG=	nawk
SRCS=	awkgram.y b.c lex.c lib.c main.c parse.c proctab.c run.c tran.c ytab.h

CFLAGS+= -I. -I${AWKSRC}

DPADD=	${LIBM}
LDADD=	-lm

.if ${MACHINE_ARCH} == "sparc64"
LINKS+=	${BINDIR}/nawk ${BINDIR}/awk
MLINKS+=	nawk.1 awk.1
.endif

CLEANFILES+=	maketab proctab.c ytab.h

ytab.h: awkgram.h
	ln -sf ${.ALLSRC} ${.TARGET}

proctab.c: maketab
	./maketab > proctab.c

build-tools: maketab
maketab: ytab.h ${AWKSRC}/maketab.c

CLEANFILES+=	nawk.1
nawk.1: awk.1
	ln -sf ${.ALLSRC} ${.TARGET}

.include <bsd.prog.mk>


# Makefile copyright James Raynard (jraynard@freebsd.org) 1997
#
# $Id: Makefile,v 1.7 1997/10/14 18:32:33 jraynard Exp $

.include "${.CURDIR}/../Makefile.inc"

.PATH:	${.CURDIR}/../../../contrib/awk

PROG=	awk
SRCS=	array.c awktab.c builtin.c eval.c field.c gawkmisc.c io.c main.c \
	missing.c msg.c node.c re.c version.c dfa.c getopt.c getopt1.c
MAN1=	doc/awk.1

YACC = bison -y

CFLAGS+=	-I${.CURDIR} -I${.CURDIR}/../../../contrib/awk
CFLAGS+=	-DHAVE_CONFIG_H -DGAWK -DDEFPATH=\".\"
CLEANFILES	+=awktab.c y.output y.tab.h

SUBDIR+= doc

DPADD+= ${LIBGNUREGEX} ${LIBM}
LDADD+= -lgnuregex -lm

awktab.c:	${.CURDIR}/../../../contrib/awk/awk.y
	$(YACC) -v $> && mv y.tab.c awktab.c

.include <bsd.prog.mk>

Add -funsigned-char to CFLAGS (for ctype macros)

# Makefile copyright James Raynard (jraynard@freebsd.org) 1997
#
# $Id: Makefile,v 1.8 1997/10/15 14:01:31 ache Exp $

.include "${.CURDIR}/../Makefile.inc"

.PATH:	${.CURDIR}/../../../contrib/awk

PROG=	awk
SRCS=	array.c awktab.c builtin.c eval.c field.c gawkmisc.c io.c main.c \
	missing.c msg.c node.c re.c version.c dfa.c getopt.c getopt1.c
MAN1=	doc/awk.1

YACC = bison -y

# Important for ctype macros!
CFLAGS+=        -funsigned-char

CFLAGS+=	-I${.CURDIR} -I${.CURDIR}/../../../contrib/awk
CFLAGS+=	-DHAVE_CONFIG_H -DGAWK -DDEFPATH=\".\"
CLEANFILES	+=awktab.c y.output y.tab.h

SUBDIR+= doc

DPADD+= ${LIBGNUREGEX} ${LIBM}
LDADD+= -lgnuregex -lm

awktab.c:	${.CURDIR}/../../../contrib/awk/awk.y
	$(YACC) -v $> && mv y.tab.c awktab.c

.include <bsd.prog.mk>


set(CTEST_CUSTOM_COVERAGE_EXCLUDE
  ${CTEST_CUSTOM_COVERAGE_EXCLUDE}
  "/molequeue/testing/"
  "/moc_"
  "/ui_"
  "/thirdparty/"
)

set(CTEST_CUSTOM_WARNING_EXCEPTION
  ${CTEST_CUSTOM_WARNING_EXCEPTION}
  # We don't care about warnings from third party libraries:
  "/thirdparty/"
  # Nested Qt foreach loops produce this warning:
  "_container_.* shadows a previous local"
  "shadowed declaration is here"
)

Update third party warning exclusion regex.

set(CTEST_CUSTOM_COVERAGE_EXCLUDE
  ${CTEST_CUSTOM_COVERAGE_EXCLUDE}
  "/molequeue/testing/"
  "/moc_"
  "/ui_"
  "/thirdparty/"
)

set(CTEST_CUSTOM_WARNING_EXCEPTION
  ${CTEST_CUSTOM_WARNING_EXCEPTION}
  # We don't care about warnings from third party libraries:
  ".*thirdparty.*"
  # Nested Qt foreach loops produce this warning:
  "_container_.* shadows a previous local"
  "shadowed declaration is here"
)


/ insert_bottom "[data-hook='admin_variant_form_fields']"

- if Spree::Config[:track_inventory_levels]
  .field.checkbox{ "data-hook" => "on_hand" }
    %label
      = f.check_box :on_demand
      = t(:on_demand)
  .field{ "data-hook" => "on_hand" }
    = f.label :on_hand, t(:on_hand)
    .fullwidth
      = f.text_field :on_hand

Remove unnecessary data-hooks from stock management deface override

/ insert_bottom "[data-hook='admin_variant_form_fields']"

- if Spree::Config[:track_inventory_levels]
  .field.checkbox
    %label
      = f.check_box :on_demand
      = t(:on_demand)
  .field
    = f.label :on_hand, t(:on_hand)
    .fullwidth
      = f.text_field :on_hand


# $FreeBSD$

PROG=		objformat
NOMAN=		not yet
CFLAGS+=	-DMAIN

.if ${OBJFORMAT} == elf
CFLAGS+=	-DFREEBSD_ELF
.else
CFLAGS+=	-DFREEBSD_AOUT
.endif

LINKS+=	${BINDIR}/objformat ${BINDIR}/addr2line
LINKS+=	${BINDIR}/objformat ${BINDIR}/ar
LINKS+=	${BINDIR}/objformat ${BINDIR}/as
LINKS+=	${BINDIR}/objformat ${BINDIR}/ld
LINKS+=	${BINDIR}/objformat ${BINDIR}/nm
LINKS+=	${BINDIR}/objformat ${BINDIR}/objcopy
LINKS+=	${BINDIR}/objformat ${BINDIR}/objdump
LINKS+=	${BINDIR}/objformat ${BINDIR}/ranlib
LINKS+=	${BINDIR}/objformat ${BINDIR}/size
LINKS+=	${BINDIR}/objformat ${BINDIR}/strings
LINKS+=	${BINDIR}/objformat ${BINDIR}/strip

.include <bsd.prog.mk>

Add objformat links for gdb and (while we're at it) c++filt. This means we can (assuming an a.out gdb is present) debug a.out kernels and crashdumps with gdb -aout.

# $FreeBSD$

PROG=		objformat
NOMAN=		not yet
CFLAGS+=	-DMAIN

.if ${OBJFORMAT} == elf
CFLAGS+=	-DFREEBSD_ELF
.else
CFLAGS+=	-DFREEBSD_AOUT
.endif

LINKS+=	${BINDIR}/objformat ${BINDIR}/addr2line
LINKS+=	${BINDIR}/objformat ${BINDIR}/ar
LINKS+=	${BINDIR}/objformat ${BINDIR}/as
LINKS+=	${BINDIR}/objformat ${BINDIR}/c++filt
LINKS+=	${BINDIR}/objformat ${BINDIR}/gdb
LINKS+=	${BINDIR}/objformat ${BINDIR}/ld
LINKS+=	${BINDIR}/objformat ${BINDIR}/nm
LINKS+=	${BINDIR}/objformat ${BINDIR}/objcopy
LINKS+=	${BINDIR}/objformat ${BINDIR}/objdump
LINKS+=	${BINDIR}/objformat ${BINDIR}/ranlib
LINKS+=	${BINDIR}/objformat ${BINDIR}/size
LINKS+=	${BINDIR}/objformat ${BINDIR}/strings
LINKS+=	${BINDIR}/objformat ${BINDIR}/strip

.include <bsd.prog.mk>


if(NOT "${PACKAGE_FIND_VERSION}" VERSION_GREATER "@SimpleITK_VERSION@")
  set(PACKAGE_VERSION_COMPATIBLE 1) # compatible with older
  if("${PACKAGE_FIND_VERSION}" VERSION_EQUAL "${PACKAGE_VERSION}")
    set(PACKAGE_VERSION_EXACT 1) # exact match for this version
  endif()
endif()

Add SimpleITK_VERSION variable defined after find_package

set(PACKAGE_VERSION "@SimpleITK_VERSION@")

if(NOT "${PACKAGE_FIND_VERSION}" VERSION_GREATER "@SimpleITK_VERSION@")
  set(PACKAGE_VERSION_COMPATIBLE 1) # compatible with older
  if("${PACKAGE_FIND_VERSION}" VERSION_EQUAL "${PACKAGE_VERSION}")
    set(PACKAGE_VERSION_EXACT 1) # exact match for this version
  endif()
endif()


FROM gcr.io/exponentjs/android-tools:latest

WORKDIR /root

# Perform NPM Installs (in a cacheable way)
RUN npm install -g gulp-cli

COPY ./tools/package.json ./tools/package.json
RUN cd ./tools && npm install

COPY ./tools-public/package.json ./tools-public/package.json
RUN cd ./tools-public && npm install

# Copy Exponent
COPY ./__internal__ ./__internal__
COPY ./template-files ./template-files
COPY ./android ./android
COPY ./tools ./tools
COPY ./tools-public ./tools-public
COPY ./package.json ./package.json

ENV SHELL_APP_BUILDER 1

RUN mkdir -p ./android/exponentview/src/main/java/host/exp/exponent/generated/
RUN cd ./tools-public && gulp generate-dynamic-macros --buildConstantsPath ../android/exponentview/src/main/java/host/exp/exponent/generated/ExponentBuildConstants.java --platform android

Add cpp dir to android docker base

FROM gcr.io/exponentjs/android-tools:latest

WORKDIR /root

# Perform NPM Installs (in a cacheable way)
RUN npm install -g gulp-cli

COPY ./tools/package.json ./tools/package.json
RUN cd ./tools && npm install

COPY ./tools-public/package.json ./tools-public/package.json
RUN cd ./tools-public && npm install

# Copy Exponent
COPY ./__internal__ ./__internal__
COPY ./template-files ./template-files
COPY ./android ./android
COPY ./tools ./tools
COPY ./tools-public ./tools-public
COPY ./cpp ./cpp
COPY ./package.json ./package.json

ENV SHELL_APP_BUILDER 1

RUN mkdir -p ./android/exponentview/src/main/java/host/exp/exponent/generated/
RUN cd ./tools-public && gulp generate-dynamic-macros --buildConstantsPath ../android/exponentview/src/main/java/host/exp/exponent/generated/ExponentBuildConstants.java --platform android


# $FreeBSD$

MAINTAINER=	des@freebsd.org
SCRIPTS=	sockstat.pl
MAN=		sockstat.1

.include <bsd.prog.mk>

Drop maintainership of this, it serves no purpose.

# $FreeBSD$

SCRIPTS=	sockstat.pl
MAN=		sockstat.1

.include <bsd.prog.mk>


[Desktop Entry]
Type=Application
_Name=Characters
_Comment=Utility application to find and insert unusual characters
Icon=gnome-characters
Exec=gapplication launch org.gnome.Characters
DBusActivatable=true
StartupNotify=true
Categories=GNOME;GTK;Utility;
_Keywords=characters;unicode;

Put Characters in the Utilities folder

[Desktop Entry]
Type=Application
_Name=Characters
_Comment=Utility application to find and insert unusual characters
Icon=gnome-characters
Exec=gapplication launch org.gnome.Characters
DBusActivatable=true
StartupNotify=true
Categories=GNOME;GTK;Utility;X-GNOME-Utilities;
_Keywords=characters;unicode;


# DOCKER-VERSION 1.0.0
#
# Ceph Daemon
#
# VERSION 0.0.1

FROM cdxvirt/ceph-base:10.2.3-2
MAINTAINER Sébastien Han "seb@redhat.com"

# Add templates for confd
ADD ./confd/templates/* /etc/confd/templates/
ADD ./confd/conf.d/* /etc/confd/conf.d/

# Add bootstrap script, ceph defaults key/values for KV store
ADD entrypoint.sh config.*.sh ceph.defaults check_zombie_mons.py remove-mon.sh scale.sh etcd-watcher.sh /

# Add volumes for Ceph config and data
VOLUME ["/etc/ceph","/var/lib/ceph", "/etc/ganesha"]

# Execute the entrypoint
WORKDIR /
ENTRYPOINT ["/entrypoint.sh"]

Upgrade ceph-base from ceph-base:10.2.3-2 to ceph-base:10.2.5-1

# DOCKER-VERSION 1.0.0
#
# Ceph Daemon
#
# VERSION 0.0.1

FROM cdxvirt/ceph-base:10.2.5-1
MAINTAINER Sébastien Han "seb@redhat.com"

# Add templates for confd
ADD ./confd/templates/* /etc/confd/templates/
ADD ./confd/conf.d/* /etc/confd/conf.d/

# Add bootstrap script, ceph defaults key/values for KV store
ADD entrypoint.sh config.*.sh ceph.defaults check_zombie_mons.py remove-mon.sh scale.sh etcd-watcher.sh /

# Add volumes for Ceph config and data
VOLUME ["/etc/ceph","/var/lib/ceph", "/etc/ganesha"]

# Execute the entrypoint
WORKDIR /
ENTRYPOINT ["/entrypoint.sh"]


# $FreeBSD$

.include "../Makefile.inc"

.PATH: ${GCCDIR} ${GCCDIR}/doc		${GCCDIR}/../libiberty

PROG=	gcov
SRCS=	gcov.c version.c
NOMAN=	#true

DPADD=	${LIBCC_INT}
LDADD=	${LIBCC_INT}

.include <bsd.prog.mk>

Install the gcov(1) manpage; kernbb(8) references it.

# $FreeBSD$

.include "../Makefile.inc"

.PATH: ${GCCDIR} ${GCCDIR}/doc		${GCCDIR}/../libiberty

PROG=	gcov
SRCS=	gcov.c version.c

DPADD=	${LIBCC_INT}
LDADD=	${LIBCC_INT}

.include <bsd.prog.mk>


<phpunit
    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
    xsi:noNamespaceSchemaLocation="../../vendor/phpunit/phpunit/phpunit.xsd"
    backupGlobals="false"
    backupStaticAttributes="false"
    bootstrap="../../vendor/autoload.php"
    colors="true"
    columns="max"
    verbose="true"
    convertErrorsToExceptions="true"
    convertNoticesToExceptions="true"
    convertWarningsToExceptions="true"
    processIsolation="false"
    stopOnFailure="false"
>
    <filter>
        <whitelist>
            <directory>../../classes</directory>
        </whitelist>
    </filter>
    <testsuites>
        <testsuite name="Unit Tests">
            <directory>.</directory>
        </testsuite>
    </testsuites>
</phpunit>

Set console columns to 120

<phpunit
    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
    xsi:noNamespaceSchemaLocation="../../vendor/phpunit/phpunit/phpunit.xsd"
    backupGlobals="false"
    backupStaticAttributes="false"
    bootstrap="../../vendor/autoload.php"
    colors="true"
    columns="max"
    verbose="true"
    convertErrorsToExceptions="true"
    convertNoticesToExceptions="true"
    convertWarningsToExceptions="true"
    processIsolation="false"
    stopOnFailure="false"
>
    <php>
        <!-- https://github.com/symfony/console/blob/v3.3.12/Terminal.php#L24-L36 -->
        <env name="COLUMNS" value="120"/>
    </php>
    <filter>
        <whitelist>
            <directory>../../classes</directory>
        </whitelist>
    </filter>
    <testsuites>
        <testsuite name="Unit Tests">
            <directory>.</directory>
        </testsuite>
    </testsuites>
</phpunit>


FROM alpine:3.8

RUN apk update \
    && apk add --no-cache \
        build-base \
        cmake \
        git \
        file \
        curl \
        yaml-cpp-dev \
        bison

# Google Test
ENV GTEST_ROOT=/opt/gtest
ARG GTEST_VER=4e4df226fc197c0dda6e37f5c8c3845ca1e73a49
RUN mkdir -p ${GTEST_ROOT} \
    && cd /tmp \
    && curl -o gtest.tar.gz \
      -L https://github.com/google/googletest/archive/${GTEST_VER}.tar.gz \
    && tar -zxvf gtest.tar.gz --strip-components=1 -C ${GTEST_ROOT} \
    && rm gtest.tar.gz

# YAEP
RUN cd /tmp \
    && git clone --depth 1 https://github.com/sanssecours/yaep.git \
    && cd yaep \
    && env CXXFLAGS='-fPIC' ./configure \
    && make -C src install

# Create User:Group
# The id is important as jenkins docker agents use the same id that is running
# on the slaves to execute containers
ARG JENKINS_USERID
RUN adduser \
    -u ${JENKINS_USERID} \
    -D \
    jenkins
USER ${JENKINS_USERID}

RUN git config --global user.email 'Jenkins <autobuilder@libelektra.org>' \
    && git config --global user.name 'Jenkins'

Remove temporary data from Alpine image

FROM alpine:3.8

RUN apk update \
    && apk add --no-cache \
        build-base \
        cmake \
        git \
        file \
        curl \
        yaml-cpp-dev \
        bison

# Google Test
ENV GTEST_ROOT=/opt/gtest
ARG GTEST_VER=4e4df226fc197c0dda6e37f5c8c3845ca1e73a49
RUN mkdir -p ${GTEST_ROOT} \
    && cd /tmp \
    && curl -o gtest.tar.gz \
      -L https://github.com/google/googletest/archive/${GTEST_VER}.tar.gz \
    && tar -zxvf gtest.tar.gz --strip-components=1 -C ${GTEST_ROOT} \
    && rm gtest.tar.gz

# YAEP
RUN cd /tmp \
    && git clone --depth 1 https://github.com/sanssecours/yaep.git \
    && cd yaep \
    && env CXXFLAGS='-fPIC' ./configure \
    && make -C src install \
    && cd .. \
    && rm -r yaep

# Create User:Group
# The id is important as jenkins docker agents use the same id that is running
# on the slaves to execute containers
ARG JENKINS_USERID
RUN adduser \
    -u ${JENKINS_USERID} \
    -D \
    jenkins
USER ${JENKINS_USERID}

RUN git config --global user.email 'Jenkins <autobuilder@libelektra.org>' \
    && git config --global user.name 'Jenkins'


<?xml version="1.0" encoding="UTF-8"?>

<phpunit
    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
    xsi:noNamespaceSchemaLocation="vendor/phpunit/phpunit/phpunit.xsd"
    colors="true"
    beStrictAboutOutputDuringTests="true"
    beStrictAboutTodoAnnotatedTests="true"
    failOnRisky="true"
    failOnWarning="false"
    bootstrap="tests/bootstrap.php"
>
    <php>
        <ini name="error_reporting" value="-1" />
        <ini name="serialize_precision" value="14"/>
    </php>

    <testsuites>
        <testsuite name="JMS Serializer Test Suite">
            <directory>./tests</directory>
        </testsuite>
    </testsuites>

    <groups>
        <exclude>
            <group>performance</group>
        </exclude>
    </groups>
    <filter>
        <whitelist>
            <directory>src</directory>
        </whitelist>
    </filter>
</phpunit>

Make tests timezone-independent by default

<?xml version="1.0" encoding="UTF-8"?>

<phpunit
    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
    xsi:noNamespaceSchemaLocation="vendor/phpunit/phpunit/phpunit.xsd"
    colors="true"
    beStrictAboutOutputDuringTests="true"
    beStrictAboutTodoAnnotatedTests="true"
    failOnRisky="true"
    failOnWarning="false"
    bootstrap="tests/bootstrap.php"
>
    <php>
        <ini name="error_reporting" value="-1" />
        <ini name="serialize_precision" value="14"/>
        <ini name="date.timezone" value="UTC"/>
    </php>

    <testsuites>
        <testsuite name="JMS Serializer Test Suite">
            <directory>./tests</directory>
        </testsuite>
    </testsuites>

    <groups>
        <exclude>
            <group>performance</group>
        </exclude>
    </groups>
    <filter>
        <whitelist>
            <directory>src</directory>
        </whitelist>
    </filter>
</phpunit>


<?xml version="1.0" encoding="UTF-8"?>

<phpunit backupGlobals="false"
         backupStaticAttributes="false"
         colors="true"
         convertErrorsToExceptions="true"
         convertNoticesToExceptions="true"
         convertWarningsToExceptions="true"
         processIsolation="false"
         stopOnFailure="false"
         syntaxCheck="false"
         bootstrap="./vendor/autoload.php"
>
    <testsuites>
        <testsuite name="Markdown Test Suite">
            <directory>./Tests/</directory>
        </testsuite>
    </testsuites>

    <filter>
        <whitelist>
            <directory>./</directory>
            <exclude>
                <directory>./Resources</directory>
                <directory>./Tests</directory>
            </exclude>
        </whitelist>
    </filter>
</phpunit>

Exclude vendors from the code coverage

<?xml version="1.0" encoding="UTF-8"?>

<phpunit backupGlobals="false"
         backupStaticAttributes="false"
         colors="true"
         convertErrorsToExceptions="true"
         convertNoticesToExceptions="true"
         convertWarningsToExceptions="true"
         processIsolation="false"
         stopOnFailure="false"
         syntaxCheck="false"
         bootstrap="./vendor/autoload.php"
>
    <testsuites>
        <testsuite name="Markdown Test Suite">
            <directory>./Tests/</directory>
        </testsuite>
    </testsuites>

    <filter>
        <whitelist>
            <directory>./</directory>
            <exclude>
                <directory>./Resources</directory>
                <directory>./Tests</directory>
                <directory>./vendor</directory>
            </exclude>
        </whitelist>
    </filter>
</phpunit>


<?xml version="1.0" encoding="UTF-8"?>

<phpunit xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
         xsi:noNamespaceSchemaLocation="http://schema.phpunit.de/4.1/phpunit.xsd"
         backupGlobals="false"
         colors="true"
         bootstrap="vendor/autoload.php"
>
    <php>
        <ini name="error_reporting" value="-1" />
    </php>

    <testsuites>
        <testsuite name="Symfony Polyfill Test Suite">
            <directory>./tests/</directory>
        </testsuite>
    </testsuites>

    <filter>
        <whitelist>
            <directory>./src/</directory>
            <exclude>
                <directory>./src/*/Resources</directory>
                <directory>./src/*/*/Resources</directory>
            </exclude>
        </whitelist>
    </filter>

    <listeners>
        <listener class="Symfony\Polyfill\Util\TestListener" />
    </listeners>
</phpunit>

Fix outdated DTD in configuration

<?xml version="1.0" encoding="UTF-8"?>

<phpunit xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
         xsi:noNamespaceSchemaLocation="https://schema.phpunit.de/5.3/phpunit.xsd"
         colors="true"
         bootstrap="vendor/autoload.php"
>
    <php>
        <ini name="error_reporting" value="-1" />
    </php>

    <testsuites>
        <testsuite name="Symfony Polyfill Test Suite">
            <directory>./tests/</directory>
        </testsuite>
    </testsuites>

    <filter>
        <whitelist>
            <directory>./src/</directory>
            <exclude>
                <directory>./src/*/Resources</directory>
                <directory>./src/*/*/Resources</directory>
            </exclude>
        </whitelist>
    </filter>

    <listeners>
        <listener class="Symfony\Polyfill\Util\TestListener" />
    </listeners>
</phpunit>


# build stage
FROM node:lts-alpine@sha256:2ae9624a39ce437e7f58931a5747fdc60224c6e40f8980db90728de58e22af7c AS build-stage

COPY common /common

WORKDIR /app
COPY frontend/package*.json ./
RUN npm ci
COPY frontend .
RUN npm run build

# production stage
FROM nginx:stable-alpine@sha256:7ae8e5c3080f6012f8dc719e2308e60e015fcfa281c3b12bf95614bd8b6911d6 as production-stage
RUN mkdir /app
WORKDIR /app
COPY --from=build-stage /app/dist /app
COPY .docker-hub/frontend/nginx.conf /etc/nginx/nginx.conf

Update node:lts-alpine Docker digest to 61f5ce6

# build stage
FROM node:lts-alpine@sha256:61f5ce614667fc85b4ff48b4f4817073da6844c2da67dd15b15bc2b7175823c4 AS build-stage

COPY common /common

WORKDIR /app
COPY frontend/package*.json ./
RUN npm ci
COPY frontend .
RUN npm run build

# production stage
FROM nginx:stable-alpine@sha256:7ae8e5c3080f6012f8dc719e2308e60e015fcfa281c3b12bf95614bd8b6911d6 as production-stage
RUN mkdir /app
WORKDIR /app
COPY --from=build-stage /app/dist /app
COPY .docker-hub/frontend/nginx.conf /etc/nginx/nginx.conf


<?xml version="1.0" encoding="UTF-8"?>
<phpunit
	colors="true"
	processIsolation="false"
	stopOnFailure="false"
	syntaxCheck="false"
	bootstrap="vendor/autoload.php"
    verbose="true"
	>
	<php>
		<ini name="memory_limit" value="-1"/>
		<ini name="apc.enable_cli" value="1"/>
	</php>

	<filter>
		<whitelist>
			<directory suffix=".php">.</directory>
			<exclude>
				<directory>./build/</directory>
				<directory>./etc/</directory>
				<directory>./vendor/</directory>
				<directory>./tests/</directory>
			</exclude>
		</whitelist>
	</filter>

	<logging>
        <log type="coverage-text" target="php://stdout" showUncoveredFiles="true"/>
		<log type="coverage-html" target="build/coverage"/>
		<log type="coverage-clover" target="build/logs/clover.xml"/>
		<log type="coverage-crap4j" target="build/logs/crap4j.xml"/>
		<log type="junit" target="build/logs/junit.xml" logIncompleteSkipped="false"/>
	</logging>

	<!-- Add any additional test suites you want to run here -->
	<testsuites>
		<testsuite name="All Tests">
			<directory>./tests/</directory>
		</testsuite>
	</testsuites>

</phpunit>

Exclude Phakefiles from unit tests

<?xml version="1.0" encoding="UTF-8"?>
<phpunit
	colors="true"
	processIsolation="false"
	stopOnFailure="false"
	syntaxCheck="false"
	bootstrap="vendor/autoload.php"
    verbose="true"
	>
	<php>
		<ini name="memory_limit" value="-1"/>
		<ini name="apc.enable_cli" value="1"/>
	</php>

	<filter>
		<whitelist>
			<directory suffix=".php">.</directory>
			<exclude>
				<directory>./build/</directory>
				<directory>./etc/</directory>
				<directory>./src/Phakefiles/</directory>
				<directory>./tests/</directory>
				<directory>./vendor/</directory>
				<file>./Phakefile.php</file>
			</exclude>
		</whitelist>
	</filter>

	<logging>
        <log type="coverage-text" target="php://stdout" showUncoveredFiles="true"/>
		<log type="coverage-html" target="build/coverage"/>
		<log type="coverage-clover" target="build/logs/clover.xml"/>
		<log type="coverage-crap4j" target="build/logs/crap4j.xml"/>
		<log type="junit" target="build/logs/junit.xml" logIncompleteSkipped="false"/>
	</logging>

	<!-- Add any additional test suites you want to run here -->
	<testsuites>
		<testsuite name="All Tests">
			<directory>./tests/</directory>
		</testsuite>
	</testsuites>

</phpunit>


<?xml version="1.0" encoding="UTF-8"?>

<phpunit xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
         xsi:noNamespaceSchemaLocation="http://schema.phpunit.de/4.1/phpunit.xsd"
         backupGlobals="false"
         colors="true"
         bootstrap="vendor/autoload.php"
>
    <testsuites>
        <testsuite name="Symfony DependencyInjection Component Test Suite">
            <directory>./Tests/</directory>
        </testsuite>
    </testsuites>

    <filter>
        <whitelist>
            <directory>./</directory>
            <exclude>
                <directory>./Resources</directory>
                <directory>./Tests</directory>
                <directory>./vendor</directory>
            </exclude>
        </whitelist>
    </filter>
</phpunit>

Adjust error_reporting to allow deprecation messages for 3.0

<?xml version="1.0" encoding="UTF-8"?>

<phpunit xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
         xsi:noNamespaceSchemaLocation="http://schema.phpunit.de/4.1/phpunit.xsd"
         backupGlobals="false"
         colors="true"
         bootstrap="vendor/autoload.php"
>
    <php>
        <!-- Disable E_USER_DEPRECATED until 3.0 -->
        <!-- php -r 'echo -1 & ~E_USER_DEPRECATED;' -->
        <ini name="error_reporting" value="-16385"/>
    </php>

    <testsuites>
        <testsuite name="Symfony DependencyInjection Component Test Suite">
            <directory>./Tests/</directory>
        </testsuite>
    </testsuites>

    <filter>
        <whitelist>
            <directory>./</directory>
            <exclude>
                <directory>./Resources</directory>
                <directory>./Tests</directory>
                <directory>./vendor</directory>
            </exclude>
        </whitelist>
    </filter>
</phpunit>


<?xml version="1.0" encoding="utf-8" ?>

<phpunit xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
         xsi:noNamespaceSchemaLocation="http://schema.phpunit.de/4.1/phpunit.xsd"
         backupGlobals="false"
         colors="true"
         bootstrap="vendor/autoload.php"
>
    <testsuites>
        <testsuite name="Analyst Test Suite">
            <directory>./tests/</directory>
        </testsuite>
    </testsuites>

    <logging>
        <log type="coverage-clover" target="build/logs/clover.xml" />
    </logging>

    <filter>
        <whitelist processUncoveredFilesFromWhitelist="true">
            <directory suffix=".php">./src/DaybreakStudios/Analyst/</directory>
        </whitelist>
    </filter>
</phpunit>

Exclude exceptions from PHPUnit coverage tests

<?xml version="1.0" encoding="utf-8" ?>

<phpunit xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
         xsi:noNamespaceSchemaLocation="http://schema.phpunit.de/4.1/phpunit.xsd"
         backupGlobals="false"
         colors="true"
         bootstrap="vendor/autoload.php"
>
    <testsuites>
        <testsuite name="Analyst Test Suite">
            <directory>./tests/</directory>
        </testsuite>
    </testsuites>

    <logging>
        <log type="coverage-clover" target="build/logs/clover.xml" />
    </logging>

    <filter>
        <whitelist processUncoveredFilesFromWhitelist="true">
            <directory suffix=".php">./src/DaybreakStudios/Analyst/</directory>

            <exclude>
                <directory suffix=".php">./src/DaybreakStudios/Analyst/Exception/</directory>
            </exclude>
        </whitelist>
    </filter>
</phpunit>


#!/bin/sh

export MEDINRIA_PLUGIN_PATH=@CPACK_PACKAGING_INSTALL_PREFIX@/plugins
export LD_LIBRARY_PATH=@CPACK_PACKAGING_INSTALL_PREFIX@/lib:@CPACK_PACKAGING_INSTALL_PREFIX@/lib/InsightToolkit:@CPACK_PACKAGING_INSTALL_PREFIX@/lib/vtk-5.8:$LD_LIBRARY_PATH
@CPACK_PACKAGING_INSTALL_PREFIX@/bin/medInria $*

Fix path to vtk libs in linux launcher


<?xml version="1.0" encoding="UTF-8"?>
<phpunit backupGlobals="false"
         backupStaticAttributes="false"
         colors="true"
         convertErrorsToExceptions="true"
         convertNoticesToExceptions="true"
         convertWarningsToExceptions="true"
         processIsolation="false"
         stopOnFailure="false"
         syntaxCheck="false"
         bootstrap="vendor/autoload.php"
        >
    <testsuite name="Prooph Common Test Suite">
        <directory>./tests/</directory>
    </testsuite>

    <filter>
        <whitelist>
            <directory>./src/</directory>
        </whitelist>
    </filter>
</phpunit>

Update PHPUnit configuration for phpunit@9

<?xml version="1.0" encoding="UTF-8"?>
<phpunit backupGlobals="false"
         backupStaticAttributes="false"
         colors="true"
         convertErrorsToExceptions="true"
         convertNoticesToExceptions="true"
         convertWarningsToExceptions="true"
         processIsolation="false"
         stopOnFailure="false"
         bootstrap="vendor/autoload.php"
        >
    <testsuite name="Prooph Common Test Suite">
        <directory>./tests/</directory>
    </testsuite>

    <coverage>
        <include>
            <directory suffix=".php">src</directory>
        </include>
    </coverage>
</phpunit>


<?xml version="1.0" encoding="UTF-8"?>
<phpunit bootstrap="bootstrap.php"
         backupGlobals="false"
         backupStaticAttributes="false"
         colors="true"
         verbose="true"
         convertErrorsToExceptions="true"
         convertNoticesToExceptions="true"
         convertWarningsToExceptions="true"
         processIsolation="true"
         stopOnFailure="false">
    <testsuites>
        <testsuite name="TacticianBundle Test Suite">
            <directory>tests/</directory>
        </testsuite>
    </testsuites>
    <filter>
        <blacklist>
            <directory suffix=".php">Tests/</directory>
            <directory suffix=".php">vendor/</directory>
        </blacklist>
    </filter>
    <logging>
        <log type="tap" target="build/report.tap"/>
        <log type="junit" target="build/report.junit.xml"/>
        <log type="coverage-html" target="build/coverage" charset="UTF-8" yui="true" highlight="true"/>
        <log type="coverage-text" target="build/coverage.txt"/>
        <log type="coverage-clover" target="build/logs/clover.xml"/>
    </logging>
</phpunit>

Stop nagging about tests without assertions

<?xml version="1.0" encoding="UTF-8"?>
<phpunit bootstrap="bootstrap.php"
         backupGlobals="false"
         backupStaticAttributes="false"
         colors="true"
         verbose="true"
         convertErrorsToExceptions="true"
         convertNoticesToExceptions="true"
         convertWarningsToExceptions="true"
         beStrictAboutTestsThatDoNotTestAnything="false"
         processIsolation="true"
         stopOnFailure="false">
    <testsuites>
        <testsuite name="TacticianBundle Test Suite">
            <directory>tests/</directory>
        </testsuite>
    </testsuites>
    <filter>
        <blacklist>
            <directory suffix=".php">Tests/</directory>
            <directory suffix=".php">vendor/</directory>
        </blacklist>
    </filter>
    <logging>
        <log type="tap" target="build/report.tap"/>
        <log type="junit" target="build/report.junit.xml"/>
        <log type="coverage-html" target="build/coverage" charset="UTF-8" yui="true" highlight="true"/>
        <log type="coverage-text" target="build/coverage.txt"/>
        <log type="coverage-clover" target="build/logs/clover.xml"/>
    </logging>
</phpunit>


FROM ruby:2.7

RUN curl -sS https://dl.yarnpkg.com/debian/pubkey.gpg | apt-key add -
RUN echo "deb https://dl.yarnpkg.com/debian/ stable main" | tee /etc/apt/sources.list.d/yarn.list

RUN curl -sL https://deb.nodesource.com/setup_12.x | bash -

RUN apt-get update -qq \
    && apt-get install -y --no-install-recommends build-essential \
    libpq-dev postgresql-client \
    libxml2-dev libxslt1-dev \
    libmagickwand-dev imagemagick \
    nodejs \
    yarn \
    && rm -rf /var/lib/apt/lists/*

RUN mkdir /app
WORKDIR /app

ADD Gemfile* /app/
RUN bundle install --jobs=$(nproc)
RUN gem install ruby-debug-ide

ADD package.json /app/
ADD yarn.lock /app/
RUN yarn install

COPY . /app

COPY .docker/entrypoint.sh /usr/bin/
RUN chmod +x /usr/bin/entrypoint.sh
ENTRYPOINT ["entrypoint.sh"]
EXPOSE 3000

CMD ["rails", "server", "-b", "0.0.0.0"]

Adjust Docker setup to run Rails without root

FROM ruby:2.7

USER root

ARG UID=1000
ARG GID=1000

RUN curl -sS https://dl.yarnpkg.com/debian/pubkey.gpg | apt-key add -
RUN echo "deb https://dl.yarnpkg.com/debian/ stable main" | tee /etc/apt/sources.list.d/yarn.list

RUN curl -sL https://deb.nodesource.com/setup_12.x | bash -

RUN apt-get update -qq \
    && apt-get install -y --no-install-recommends build-essential \
    libpq-dev postgresql-client \
    libxml2-dev libxslt1-dev \
    libmagickwand-dev imagemagick \
    nodejs \
    yarn \
    && rm -rf /var/lib/apt/lists/*

RUN mkdir /app \
    && mkdir /cache
WORKDIR /app

RUN addgroup --gid ${GID} app \
	&& adduser --gecos "" --disabled-password --shell /bin/bash --uid ${UID} --gid ${GID} app \
	&& chown "${UID}:${GID}" -R /app/ \
    && chown "${UID}:${GID}" -R /cache/

COPY .docker/entrypoint.sh /usr/bin/
RUN chmod +x /usr/bin/entrypoint.sh

USER app:app

ADD Gemfile* /app/
RUN bundle install --jobs=$(nproc)
RUN gem install ruby-debug-ide

ADD package.json /app/
ADD yarn.lock /app/
RUN yarn install

COPY . /app

ENTRYPOINT ["entrypoint.sh"]
EXPOSE 3000

CMD ["rails", "server", "-b", "0.0.0.0"]


#! /bin/sh
srcdir=@abs_srcdir@
PACKAGE=@PACKAGE@
VERSION=@VERSION@

if test -f $srcdir/.git/HEAD; then
    GIT_REPO="$srcdir/.git"
    GIT_HEAD_ID=`GIT_DIR=$GIT_REPO git describe`
elif test -f $srcdir/CLOOG_HEAD; then
    GIT_HEAD_ID=`cat $srcdir/CLOOG_HEAD`
else
    GIT_HEAD_ID="$PACKAGE-$VERSION-UNKNOWN"
fi

echo $GIT_HEAD_ID | sed -e 's/cloog-//'

Use git option rev-parse instead of non-working option describe in genversion

#! /bin/sh
srcdir=@abs_srcdir@
PACKAGE=@PACKAGE@
VERSION=@VERSION@

if test -f $srcdir/.git/HEAD; then
    GIT_REPO="$srcdir/.git"
    GIT_HEAD_ID="$PACKAGE-$VERSION-`GIT_DIR=$GIT_REPO git rev-parse --short HEAD`"
elif test -f $srcdir/CLOOG_HEAD; then
    GIT_HEAD_ID=`cat $srcdir/CLOOG_HEAD`
else
    GIT_HEAD_ID="$PACKAGE-$VERSION-UNKNOWN"
fi

echo $GIT_HEAD_ID | sed -e 's/cloog-//'


PROG=	man
SRCS=	man.c manpath.c glob.c
BINMODE=2555
BINGRP=	man

.if exists(${.CURDIR}/../lib/obj)
LDADD=  -L${.CURDIR}/../lib/obj -lman
CFLAGS+= -I${.CURDIR}/../lib/obj
.else
LDADD=  -L${.CURDIR}/../lib/ -lman
.endif

.if exists(${.CURDIR}/obj)
MAN1=   ${.CURDIR}/obj/man.1
.else
MAN1=   ${.CURDIR}/man.1
.endif

DPADD+=  ${MAN1}
CFLAGS+= -I${.CURDIR}/../lib -DSTDC_HEADERS -DPOSIX -DHAS_TROFF
CFLAGS+= -DDO_COMPRESS -DALT_SYSTEMS -DSETREUID -DCATMODE=0664
CLEANFILES+=	${MAN1}

${MAN1}: ${.CURDIR}/man.man
	sed -e 's,%libdir%,${libdir},' -e 's,%bindir%,${bindir},' \
	    -e 's,%pager%,${pager},' -e 's,%troff%,${troff},' \
	    -e 's,%manpath_config_file%,${manpath_config_file},' \
	    -e 's,%compress%,${compress},' \
	${.CURDIR}/man.man > ${MAN1}

.include <bsd.prog.mk>

Make man the default owner, don't bother with sgid.

PROG=	man
SRCS=	man.c manpath.c glob.c
BINMODE=4555
BINOWN=	man

.if exists(${.CURDIR}/../lib/obj)
LDADD=  -L${.CURDIR}/../lib/obj -lman
CFLAGS+= -I${.CURDIR}/../lib/obj
.else
LDADD=  -L${.CURDIR}/../lib/ -lman
.endif

.if exists(${.CURDIR}/obj)
MAN1=   ${.CURDIR}/obj/man.1
.else
MAN1=   ${.CURDIR}/man.1
.endif

DPADD+=  ${MAN1}
CFLAGS+= -I${.CURDIR}/../lib -DSTDC_HEADERS -DPOSIX -DHAS_TROFF
CFLAGS+= -DDO_COMPRESS -DALT_SYSTEMS -DSETREUID -DCATMODE=0664
CLEANFILES+=	${MAN1}

${MAN1}: ${.CURDIR}/man.man
	sed -e 's,%libdir%,${libdir},' -e 's,%bindir%,${bindir},' \
	    -e 's,%pager%,${pager},' -e 's,%troff%,${troff},' \
	    -e 's,%manpath_config_file%,${manpath_config_file},' \
	    -e 's,%compress%,${compress},' \
	${.CURDIR}/man.man > ${MAN1}

.include <bsd.prog.mk>


<?xml version="1.0" encoding="UTF-8"?>
<phpunit bootstrap="vendor/autoload.php" verbose="true" colors="true">
	<testsuites>
		<testsuite>
			<directory>tests/</directory>
		</testsuite>
	</testsuites>

	<filter>
		<whitelist>
			<directory suffix=".php">src/</directory>
		</whitelist>
	</filter>

	<logging>
		<log type="coverage-clover" target="build/logs/clover.xml"/>
		<log type="coverage-text" target="php://stdout"/>
		<log type="coverage-html" target="build/coverage/" lowUpperBound="35" highLowerBound="70"/>
	</logging>
</phpunit>

Fix "Element 'testsuite': The attribute 'name' is required but missing."

<?xml version="1.0" encoding="UTF-8"?>
<phpunit bootstrap="vendor/autoload.php" verbose="true" colors="true">
	<testsuites>
		<testsuite name="Main">
			<directory>tests/</directory>
		</testsuite>
	</testsuites>

	<filter>
		<whitelist>
			<directory suffix=".php">src/</directory>
		</whitelist>
	</filter>

	<logging>
		<log type="coverage-clover" target="build/logs/clover.xml"/>
		<log type="coverage-text" target="php://stdout"/>
		<log type="coverage-html" target="build/coverage/" lowUpperBound="35" highLowerBound="70"/>
	</logging>
</phpunit>


<?xml version="1.0"?>
<phpunit bootstrap="./vendor/autoload.php" colors="true">
    <testsuite name="StrictPhp functional tests">
        <directory suffix=".phpt">./tests/functional</directory>
    </testsuite>
</phpunit>

Comment functional test suite and create unit tests suite

<?xml version="1.0"?>
<phpunit bootstrap="./vendor/autoload.php" colors="true">
    <!--<testsuite name="StrictPhp functional tests">-->
        <!--<directory suffix=".phpt">./tests/functional</directory>-->
    <!--</testsuite>-->
    <testsuite name="StrictPhp unitary tests">
        <directory suffix="php">tests/src/</directory>
    </testsuite>
</phpunit>


<?xml version="1.0" encoding="UTF-8"?>
<!-- Generated by PHP Project Wizard (PPW) 1.0.4 on Tue Mar 22 10:10:56 CET 2011 -->

<phpunit bootstrap="vendor/autoload.php"
         backupGlobals="false"
         backupStaticAttributes="false"
         strict="true"
         colors="true"
         verbose="true">
  <testsuites>
    <testsuite name="notification">
      <directory suffix="Test.php">tests</directory>
    </testsuite>
  </testsuites>

  <logging>
    <log type="coverage-html" target="build/coverage" title="notification"
         charset="UTF-8" yui="true" highlight="true"
         lowUpperBound="35" highLowerBound="70"/>
    <log type="coverage-clover" target="build/logs/clover.xml"/>
    <log type="junit" target="build/logs/junit.xml" logIncompleteSkipped="false"/>
  </logging>

  <filter>
    <whitelist addUncoveredFilesFromWhitelist="true">
      <directory suffix=".php">src</directory>
    </whitelist>
  </filter>
</phpunit>

Add newline character at the end of the file


<phpunit
         xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
         xsi:noNamespaceSchemaLocation="vendor/phpunit/phpunit/phpunit.xsd"
         bootstrap="vendor/autoload.php"
         backupGlobals="false"
         backupStaticAttributes="false"
         colors="true"
         columns="max"
         verbose="true"
         convertErrorsToExceptions="true"
         convertNoticesToExceptions="true"
         convertWarningsToExceptions="true"
         processIsolation="false"
         stopOnFailure="false">
    <php>
        <const name="BASE_PATH" value="."/>
    </php>
    <filter>
        <whitelist>
            <directory>classes</directory>
            <exclude>
                <directory>classes/Provider</directory>
            </exclude>
        </whitelist>
    </filter>

    <testsuites>
        <testsuite name="all">
            <directory>tests</directory>
        </testsuite>
    </testsuites>
</phpunit>

Update phpunit settings to ignore the API

<phpunit
         xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
         xsi:noNamespaceSchemaLocation="vendor/phpunit/phpunit/phpunit.xsd"
         bootstrap="vendor/autoload.php"
         backupGlobals="false"
         backupStaticAttributes="false"
         colors="true"
         columns="max"
         verbose="true"
         convertErrorsToExceptions="true"
         convertNoticesToExceptions="true"
         convertWarningsToExceptions="true"
         defaultTestSuite="all"
         processIsolation="false"
         stopOnFailure="false">
    <php>
        <const name="BASE_PATH" value="."/>
    </php>
    <filter>
        <whitelist>
            <directory>classes</directory>
            <exclude>
                <directory>classes/Provider</directory>
                <directory>classes/Http/API</directory>
                <directory>classes/Infrastructure/Oauth</directory>
            </exclude>
        </whitelist>
    </filter>

    <testsuites>
        <testsuite name="all">
            <directory>tests</directory>
            <exclude>tests/Http/API</exclude>
        </testsuite>
    </testsuites>
</phpunit>


<!-- insert_after "erb[silent]:contains('content_for :page_actions')"
     original '99c890667b7e1803e5d04ce1048a475f3402db4a'
-->
<li>
  <%= button_link_to Spree.t(:stock_removal), spree.admin_stock_removals_path, :icon => 'icon-plus', :id => 'admin_stock_removal' %>
</li>

Update route in override file

<!-- insert_after "erb[silent]:contains('content_for :page_actions')"
     original '99c890667b7e1803e5d04ce1048a475f3402db4a'
-->
<li>
  <%= button_link_to Spree.t(:stock_removal), spree.new_admin_stock_removals_path, :icon => 'icon-plus', :id => 'admin_stock_removal' %>
</li>


SET(CTEST_EXTRA_COVERAGE_GLOB "*.php")

SET(CTEST_CUSTOM_COVERAGE_EXCLUDE
  ${CTEST_CUSTOM_COVERAGE_EXCLUDE}
  "/tests/"
  "/testing/"
  "/append_coverage.php"
  "/prepend_coverage.php"
  )

Improve coverage reporting accuracy. On Windows, on dash19, the "/tests/" files were still being reported in the overall coverage results. Correct the exclude regular expression so that full path file names with "\" in them may also match the exclude expression.

SET(CTEST_EXTRA_COVERAGE_GLOB "*.php")

SET(CTEST_CUSTOM_COVERAGE_EXCLUDE
  ${CTEST_CUSTOM_COVERAGE_EXCLUDE}
  "[/\\\\]tests[/\\\\]"
  "[/\\\\]testing[/\\\\]"
  "[/\\\\]append_coverage.php"
  "[/\\\\]prepend_coverage.php"
  )


<?xml version="1.0" encoding="UTF-8"?>

<phpunit bootstrap="vendor/autoload.php">
    <testsuites>
        <testsuite name="Blueman Test Suite">
            <directory>./test/Blueman/</directory>
        </testsuite>
    </testsuites>
</phpunit>

Add phpunit whitelist for a better code coverage report

<?xml version="1.0" encoding="UTF-8"?>

<phpunit bootstrap="vendor/autoload.php">
    <testsuites>
        <testsuite name="Blueman Test Suite">
            <directory>./test/Blueman/</directory>
        </testsuite>
    </testsuites>

    <filter>
        <whitelist processUncoveredFilesFromWhitelist="true">
            <directory>./src</directory>
        </whitelist>
    </filter>
</phpunit>