diff options
author | Laurent Pinchart <laurent.pinchart@ideasonboard.com> | 2019-01-05 02:51:52 +0200 |
---|---|---|
committer | Laurent Pinchart <laurent.pinchart@ideasonboard.com> | 2019-01-08 16:23:16 +0200 |
commit | 03815afdc8dcc41c4462ca753a1d4fb869748a8e (patch) | |
tree | 24392a12d8be08c9efc0229e146d1cea80535332 /test/list.cpp | |
parent | 8356f8a6ab875680087032285c3b7bbfbdbddba9 (diff) |
test: Rename list test to list-cameras
The list test generates a list binary in the test directory, which
conflicts with the C++ std::list header of the same name. The binary
gets included instead of the header file, breaking compilation.
Rename the test to avoid this.
Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Reviewed-by: Niklas Söderlund <niklas.soderlund@ragnatech.se>
Diffstat (limited to 'test/list.cpp')
-rw-r--r-- | test/list.cpp | 49 |
1 files changed, 0 insertions, 49 deletions
diff --git a/test/list.cpp b/test/list.cpp deleted file mode 100644 index e2026c99..00000000 --- a/test/list.cpp +++ /dev/null @@ -1,49 +0,0 @@ -/* SPDX-License-Identifier: GPL-2.0-or-later */ -/* - * Copyright (C) 2018, Google Inc. - * - * list.cpp - camera list tests - */ - -#include <iostream> - -#include <libcamera/camera_manager.h> - -#include "test.h" - -using namespace std; -using namespace libcamera; - -class ListTest : public Test -{ -protected: - int init() - { - cm = CameraManager::instance(); - cm->start(); - - return 0; - } - - int run() - { - unsigned int count = 0; - - for (auto name : cm->list()) { - cout << "- " << name << endl; - count++; - } - - return count ? 0 : -ENODEV; - } - - void cleanup() - { - cm->stop(); - } - -private: - CameraManager *cm; -}; - -TEST_REGISTER(ListTest) |