Show a patch.

GET /api/patches/1259/?format=api
HTTP 200 OK
Allow: GET, PUT, PATCH, HEAD, OPTIONS
Content-Type: application/json
Vary: Accept

{
    "id": 1259,
    "url": "https://patchwork.libcamera.org/api/patches/1259/?format=api",
    "web_url": "https://patchwork.libcamera.org/patch/1259/",
    "project": {
        "id": 1,
        "url": "https://patchwork.libcamera.org/api/projects/1/?format=api",
        "name": "libcamera",
        "link_name": "libcamera",
        "list_id": "libcamera_core",
        "list_email": "libcamera-devel@lists.libcamera.org",
        "web_url": "",
        "scm_url": "",
        "webscm_url": ""
    },
    "msgid": "<20190522210220.1631-5-paul.elder@ideasonboard.com>",
    "date": "2019-05-22T21:02:19",
    "name": "[libcamera-devel,RFC,4/5] test: ipa_manager: add test for IPAManager",
    "commit_ref": null,
    "pull_url": null,
    "state": "superseded",
    "archived": false,
    "hash": "f08f0f97a1f019c561bbf15756418ca12697c92c",
    "submitter": {
        "id": 17,
        "url": "https://patchwork.libcamera.org/api/people/17/?format=api",
        "name": "Paul Elder",
        "email": "paul.elder@ideasonboard.com"
    },
    "delegate": null,
    "mbox": "https://patchwork.libcamera.org/patch/1259/mbox/",
    "series": [
        {
            "id": 317,
            "url": "https://patchwork.libcamera.org/api/series/317/?format=api",
            "web_url": "https://patchwork.libcamera.org/project/libcamera/list/?series=317",
            "date": "2019-05-22T21:02:15",
            "name": "Add IPAManager",
            "version": 1,
            "mbox": "https://patchwork.libcamera.org/series/317/mbox/"
        }
    ],
    "comments": "https://patchwork.libcamera.org/api/patches/1259/comments/",
    "check": "pending",
    "checks": "https://patchwork.libcamera.org/api/patches/1259/checks/",
    "tags": {},
    "headers": {
        "Return-Path": "<paul.elder@ideasonboard.com>",
        "Received": [
            "from perceval.ideasonboard.com (perceval.ideasonboard.com\n\t[213.167.242.64])\n\tby lancelot.ideasonboard.com (Postfix) with ESMTPS id 452C360C0D\n\tfor <libcamera-devel@lists.libcamera.org>;\n\tWed, 22 May 2019 23:02:42 +0200 (CEST)",
            "from localhost.localdomain (unknown [96.44.9.117])\n\tby perceval.ideasonboard.com (Postfix) with ESMTPSA id 6AD85596;\n\tWed, 22 May 2019 23:02:41 +0200 (CEST)"
        ],
        "DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/simple; d=ideasonboard.com;\n\ts=mail; t=1558558961;\n\tbh=okBm1Vv2R6907wIYqTilAnTJMPeHIBnVm4ai4Bvas3U=;\n\th=From:To:Cc:Subject:Date:In-Reply-To:References:From;\n\tb=IkVfCqF/OOCqoCc8qtaM2x/5QYZfXxqOXboh/F3rM40B8iy2Ne/Bzi3POzaFDa6Nv\n\tqxOvNx/ofJX8av0iotrxadovZBzyFQ6N46faT/Ad+CxkQlucL6J7g02MjCbI528TK+\n\tSat0tK/QFbZoJiNoS/rvlNrHS0gpZaLvHV+qDDK8=",
        "From": "Paul Elder <paul.elder@ideasonboard.com>",
        "To": "libcamera-devel@lists.libcamera.org",
        "Date": "Wed, 22 May 2019 17:02:19 -0400",
        "Message-Id": "<20190522210220.1631-5-paul.elder@ideasonboard.com>",
        "X-Mailer": "git-send-email 2.20.1",
        "In-Reply-To": "<20190522210220.1631-1-paul.elder@ideasonboard.com>",
        "References": "<20190522210220.1631-1-paul.elder@ideasonboard.com>",
        "MIME-Version": "1.0",
        "Content-Transfer-Encoding": "8bit",
        "Subject": "[libcamera-devel] [RFC PATCH 4/5] test: ipa_manager: add test for\n\tIPAManager",
        "X-BeenThere": "libcamera-devel@lists.libcamera.org",
        "X-Mailman-Version": "2.1.23",
        "Precedence": "list",
        "List-Id": "<libcamera-devel.lists.libcamera.org>",
        "List-Unsubscribe": "<https://lists.libcamera.org/options/libcamera-devel>,\n\t<mailto:libcamera-devel-request@lists.libcamera.org?subject=unsubscribe>",
        "List-Archive": "<https://lists.libcamera.org/pipermail/libcamera-devel/>",
        "List-Post": "<mailto:libcamera-devel@lists.libcamera.org>",
        "List-Help": "<mailto:libcamera-devel-request@lists.libcamera.org?subject=help>",
        "List-Subscribe": "<https://lists.libcamera.org/listinfo/libcamera-devel>,\n\t<mailto:libcamera-devel-request@lists.libcamera.org?subject=subscribe>",
        "X-List-Received-Date": "Wed, 22 May 2019 21:02:42 -0000"
    },
    "content": "Add simple test to test IPA module acquiring through IPAManager.\n\nSigned-off-by: Paul Elder <paul.elder@ideasonboard.com>\n---\n test/ipa/ipa_manager_test.cpp | 43 +++++++++++++++++++++++++++++++++++\n test/ipa/meson.build          |  3 ++-\n 2 files changed, 45 insertions(+), 1 deletion(-)\n create mode 100644 test/ipa/ipa_manager_test.cpp",
    "diff": "diff --git a/test/ipa/ipa_manager_test.cpp b/test/ipa/ipa_manager_test.cpp\nnew file mode 100644\nindex 0000000..13be202\n--- /dev/null\n+++ b/test/ipa/ipa_manager_test.cpp\n@@ -0,0 +1,43 @@\n+/* SPDX-License-Identifier: GPL-2.0-or-later */\n+/*\n+ * Copyright (C) 2019, Google Inc.\n+ *\n+ * load-so.cpp - loading .so tests\n+ */\n+\n+#include <iostream>\n+#include <string.h>\n+\n+#include \"ipa_module.h\"\n+#include \"ipa_manager.h\"\n+\n+#include \"test.h\"\n+\n+using namespace std;\n+using namespace libcamera;\n+\n+class IPAManagerTest : public Test\n+{\n+protected:\n+\tint run() override\n+\t{\n+\t\tIPAManager *ipam = new IPAManager();\n+\n+\t\tipam->addDir(\"test/ipa\");\n+\n+\t\tstruct IPAModuleInfo info;\n+\t\tinfo.ipaAPIVersion = 1;\n+\t\tinfo.pipelineVersion = 8999;\n+\t\tstrcpy(info.pipelineName, \"bleep\");\n+\t\tconst IPAModule *ipa = ipam->acquireIPA(info);\n+\n+\t\tif (!ipa || strcmp(ipa->info().name, \"It's under nine thousand!\")) {\n+\t\t\tcerr << \"failed to acquire IPA\" << endl;\n+\t\t\treturn TestFail;\n+\t\t}\n+\n+\t\treturn TestPass;\n+\t}\n+};\n+\n+TEST_REGISTER(IPAManagerTest)\ndiff --git a/test/ipa/meson.build b/test/ipa/meson.build\nindex 6df0671..a489ed4 100644\n--- a/test/ipa/meson.build\n+++ b/test/ipa/meson.build\n@@ -9,7 +9,8 @@ foreach m : ipa_modules_sources\n endforeach\n \n ipa_test = [\n-    ['ipa_test', 'ipa_test.cpp'],\n+    ['ipa_test',         'ipa_test.cpp'],\n+    ['ipa_manager_test', 'ipa_manager_test.cpp'],\n ]\n \n foreach t : ipa_test\n",
    "prefixes": [
        "libcamera-devel",
        "RFC",
        "4/5"
    ]
}