On Tue, Sep 30, 2014 at 10:00 AM, Craig Rodrigues <rod...@freebsd.org> wrote:
> So it looks like the ATF libraries in the FreeBSD base system are
>
> ABI incompatible with the ATF libraries from a git checkout?
Yes. ATF is 0.x intentionally to make no ABI guarantees for the time
being and there was a change in that function if I recall correctly --
but I'd need to look to be sure.
On Tue, Sep 30, 2014 at 1:46 AM, Julio Merino <jm...@meroh.net> wrote:On Tue, Sep 30, 2014 at 10:00 AM, Craig Rodrigues <rod...@freebsd.org> wrote:
> So it looks like the ATF libraries in the FreeBSD base system are
>
> ABI incompatible with the ATF libraries from a git checkout?
Yes. ATF is 0.x intentionally to make no ABI guarantees for the time
being and there was a change in that function if I recall correctly --
but I'd need to look to be sure.OK, I hacked the Makefiles in my git checkout so that the libraries it hadwere different versions than the ATF versions in the FreeBSD base system.I re-ran the kyua test, but still got errors in the lutok tests
https://jenkins.freebsd.org/jenkins/job/FreeBSD_HEAD-tests2/lastCompletedBuild/Is there a way to be able to run the FreeBSD ATF tests
with a kyua and atf checked out from git?
Is there a way to be able to run the FreeBSD ATF tests
with a kyua and atf checked out from git?Kyua yes, mostly.ATF no. It's part of the base system, so if you want to use a different ATF version, you have to properly replace the one in base. Same as with ports: if you want to use a different ATF, you'll have to properly update the port in place and rebuild all consumers as needed. Exactly the same as with any other library shipped by base or ports.
On Wed, Oct 1, 2014 at 12:17 PM, Craig Rodrigues <rod...@freebsd.org> wrote:On Wed, Oct 1, 2014 at 5:07 AM, 'Julio Merino' via kyua-discuss <kyua-d...@googlegroups.com> wrote:Is there a way to be able to run the FreeBSD ATF tests
with a kyua and atf checked out from git?Kyua yes, mostly.ATF no. It's part of the base system, so if you want to use a different ATF version, you have to properly replace the one in base. Same as with ports: if you want to use a different ATF, you'll have to properly update the port in place and rebuild all consumers as needed. Exactly the same as with any other library shipped by base or ports.If I "pkg install kyua", this pulls in the lutok package via a dependency.If I do:
cd /usr/ports/devel/kyua
make -V RUN_DEPENDSit shows atf. If I am running the tests in the FreeBSD base system under kyua,
does this mean that if I install kyua from ports,
I need to make sure that atf is exactly the same version as in the
base system, and if it is not, I need to forcefully uninstall the atf package?The atf in the base system is private (installed under lib/private/, no .pc files provided) to prevent anything outside of the base system from picking it up unexpectedly.Ports explicitly depend on the ports-provided version of atf to prevent conflicts with the base system.atf in base can be different from ports. This is expected to happen and therefore is a supported configuration, as long as you use the atf bundled within the base src tree and the atf package for ports.
In my case, I have modified versions of the kyua port and the atf port to pull in newer versions.If the kyua port pulls in a newer version of the atf port, but the FreeBSD base system has an older version
of atf, if I do "kyua test" in the /usr/test directory on FreeBSD, shouldn't that use the ATF libraries in the base system
and not from the atf port?
On Wed, Oct 1, 2014 at 9:19 PM, Craig Rodrigues <rod...@freebsd.org> wrote:In my case, I have modified versions of the kyua port and the atf port to pull in newer versions.If the kyua port pulls in a newer version of the atf port, but the FreeBSD base system has an older version
of atf, if I do "kyua test" in the /usr/test directory on FreeBSD, shouldn't that use the ATF libraries in the base system
and not from the atf port?Correct. Why do you think that's not happening?
Because I'm getting run-time errors from the lutok tests that seem to be
related to pulling in the pkg-installed version of the ATF libraries: https://jenkins.freebsd.org/jenkins/job/FreeBSD_HEAD-tests2/7/
On Wed, Oct 1, 2014 at 10:24 PM, Craig Rodrigues <rod...@freebsd.org> wrote:Because I'm getting run-time errors from the lutok tests that seem to be
related to pulling in the pkg-installed version of the ATF libraries: https://jenkins.freebsd.org/jenkins/job/FreeBSD_HEAD-tests2/7/lutok is not in the base system, ergo it's using the atf version from ports.
What I did not understand is that if any package includes ATF tests in C/C++,
then that package as a compile time dependency against the ATF package.
I need to recompile that package (such as lutok) against the ATF package that I have installed.