summaryrefslogtreecommitdiff
path: root/test/list.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'test/list.cpp')
-rw-r--r--test/list.cpp49
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)