On Thu, Aug 1, 2019 at 6:33 PM Ilya Maximets <[email protected]> wrote:
> > On Thu, Aug 1, 2019 at 5:57 PM Lucas Alvares Gomes <lucasagomes at
> gmail.com>
> > wrote:
> >
> >> Thanks Numan,
> >>
> >> I've manually tested it (using the snippet example in the commit
> >> message) locally in an env of mine and it works.
> >>
> >
> > Thanks for the review. Right now this patch is failing in travis CI. It
> > runs "make distcheck" and it is failing
> > I am working on it.
>
> I guess, you need to add '--with-ovs-source' to DISTCHECK_CONFIGURE_FLAGS
> for it to work.
>
That's right. But it is turning to be a bit tricky. In
.travis/linux-build.sh I am doing something like this now (still WIP)
*******
function configure_ovs()
{
git clone https://github.com/openvswitch/ovs.git ovs_src
pushd ovs_src
./boot.sh && ./configure $* || { cat config.log; exit 1; }
make -j4
popd
}
function configure_ovn()
{
configure_ovs
./boot.sh && ./configure --with-ovs-source=ovs_src $* || { cat
config.log; exit 1; }
}
export DISTCHECK_CONFIGURE_FLAGS="$OPTS --with-ovs-source=$PWD/ovs_src"
if ! make distcheck -j4 TESTSUITEFLAGS="-j4" RECHECK=yes; then
# testsuite.log is necessary for debugging.
cat */_build/tests/testsuite.log
exit 1
fi
***************
In the function configure_ovn, I need to pass --with-ovs-source=ovs_src.
If I pass --with-ovs-source=$PWD/ovs_src, then configure of make distcheck
fails with the error
########
if test -d "ovn-2.12.90"; then find "ovn-2.12.90" -type d ! -perm -200
-exec chmod u+w {} ';' && rm -rf "ovn-2.12.90" || { sleep 5 && rm -rf
"ovn-2.12.90"; }; else :; fi
test -d "ovn-2.12.90" || mkdir "ovn-2.12.90"
cp: cannot stat
'.//home/nusiddiq/workspace_cpp/ovn-org/ovn_tst/ovs_src/ovsdb/ovsdb-idlc.1':
No such file or directory
make[2]: *** [Makefile:2744: distdir-am] Error 1
make[2]: Leaving directory '/home/nusiddiq/workspace_cpp/ovn-org/ovn_tst'
make[1]: *** [Makefile:2739: distdir] Error 2
##########
Thanks
Numan
> Best regards, Ilya Maximets.
>
_______________________________________________
dev mailing list
[email protected]
https://mail.openvswitch.org/mailman/listinfo/ovs-dev