Date: Thu, 26 Jun 2014 12:05:55 -0700 From: Garrett Cooper <yaneurabeya@gmail.com> To: Julio Merino <jmmv@freebsd.org> Cc: "freebsd-testing@freebsd.org" <freebsd-testing@freebsd.org> Subject: How do I extend Kyua requirements checking for FreeBSD? Message-ID: <CAGHfRMAURGkTRv29Kgd4YF%2B4VQ12_9GkOf=uCQ0BAcBLJcWXZQ@mail.gmail.com>
next in thread | raw e-mail | index | archive | help
Hello Julio! I'm looking at extending Kyua to create special FreeBSD-specific functionality, and I'm wondering how I should do it. In particular there are a couple items that could be checked as prerequisite requirements before running tests to avoid running tests: 1. Is a service running? 2. Is a driver loaded? 3. Is a driver loaded as a kernel module or is it statically compiled in to the kernel? 4. Am I running on a particular filesystem? Etc. If I was to add these "requirements functions" to kyua, how would I query the values in an interface agnostic way? I would usually set environment variables, but this makes things potentially messier (especially in C/C++ unless I create a standalone library to handle this)/harder to grep for than having a command which fetches this information, like atf-config does for the ATF tester interface. Thank you! -Garrett
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CAGHfRMAURGkTRv29Kgd4YF%2B4VQ12_9GkOf=uCQ0BAcBLJcWXZQ>