[libcamera-devel] Usage of test folder

Jacopo Mondi jacopo at jmondi.org
Mon Jun 15 14:59:26 CEST 2020



On Mon, Jun 15, 2020 at 06:20:07PM +0530, naidu nama wrote:
> Hi team,
> I am not able to run the command ninja test
> root at IM-RT-LP-444:/home/vnama/camera/libcamera# ninja test
> ninja: error: loading 'build.ninja': No such file or directory

All ninja invocations shall be run from your build directory.

>
> And where does the test results will store(eg:under
> test/camera->./capture(executable is there).where does this result
> store).

No, the executable files are located in
$build/test/ not in the top-level directory test/ where the source
files are.

Please have a look at the meson build system documentation. This is
nothing libcamera specific.

Thanks
  j

>
> Thanks,
> naidu.
>
> On Mon, Jun 15, 2020 at 1:06 PM Jacopo Mondi <jacopo at jmondi.org> wrote:
> >
> > Hi Naidu,
> >
> > On Mon, Jun 15, 2020 at 12:42:40PM +0530, naidu nama wrote:
> > > Hi team,
> > > I am able to run the libcamera using gstreamer plugin
> > > but I want to know the usage of test folder under libcamera directory
> >
> > I am not sure to fully understand your question, are you wondering how
> > to run tests ?
> >
> > The test/ directory contains unit tests, roughly divided into
> > categories (camera, controls, etc..)
> >
> > Tests can be run indivdually as they're exectutables, but they are
> > mainly run through the meson unit test system
> > https://mesonbuild.com/Unit-tests.html
> >
> > You can simply run 'ninja test' and have all of them executed by the
> > meson build system.
> >
> > Thanks
> >   j
> > > _______________________________________________
> > > libcamera-devel mailing list
> > > libcamera-devel at lists.libcamera.org
> > > https://lists.libcamera.org/listinfo/libcamera-devel


More information about the libcamera-devel mailing list