On Fri, Jan 20, 2023 at 4:04 PM Simon Horman <[email protected]> wrote:
> On Thu, Jan 05, 2023 at 12:39:18PM +0100, Ales Musil wrote: > > Add simple script that allows user to run tests and builds > > using container. At the same time add example Dockerfile for > > Fedora 37. > > > > Basic usage is: > > ./utilities/containers/ci.sh > > > > This will compile the project with GCC, it expects podman > > as container platform with default image being "ovn-org/ovn-tests". > > > > The test parameters can be specified as environment variables. > > > > Signed-off-by: Ales Musil <[email protected]> > > ... > > > diff --git a/utilities/containers/ci.sh b/utilities/containers/ci.sh > > new file mode 100755 > > index 000000000..0a380f88c > > --- /dev/null > > +++ b/utilities/containers/ci.sh > > @@ -0,0 +1,137 @@ > > +#!/bin/bash -xe > > +# Copyright (c) 2022, Red Hat, Inc. > > +# > > +# 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. > > +# > > + > > +OVN_PATH=${OVN_PATH:-$PWD} > > +OVS_PATH=${OVS_PATH:-$OVN_PATH/ovs} > > +CONTAINER_CMD=${CONTAINER_CMD:-podman} > > +CONTAINER_WORKSPACE="/workspace" > > +CONTAINER_WORKDIR="/workspace/ovn-tmp" > > +IMAGE_NAME=${IMAGE_NAME:-"ovn-org/ovn-tests"} > > + > > +# Test variables > > +ARCH=${ARH:-$(uname -i)} > > nit: ARH -> ARCH ? > > ... > > You are right, I'll fix that in v2. Thanks, Ales -- Ales Musil Senior Software Engineer - OVN Core Red Hat EMEA <https://www.redhat.com> [email protected] IM: amusil <https://red.ht/sig> _______________________________________________ dev mailing list [email protected] https://mail.openvswitch.org/mailman/listinfo/ovs-dev
