{"id":13563,"url":"https://patchwork.libcamera.org/api/1.1/patches/13563/?format=json","web_url":"https://patchwork.libcamera.org/patch/13563/","project":{"id":1,"url":"https://patchwork.libcamera.org/api/1.1/projects/1/?format=json","name":"libcamera","link_name":"libcamera","list_id":"libcamera_core","list_email":"libcamera-devel@lists.libcamera.org","web_url":"","scm_url":"","webscm_url":""},"msgid":"<20210829113012.525417-1-vedantparanjape160201@gmail.com>","date":"2021-08-29T11:30:12","name":"[libcamera-devel,v2] test: gstreamer: Add minimal validation of camera output","commit_ref":null,"pull_url":null,"state":"new","archived":false,"hash":"259fffb7c721675a18ee8523155e4ccd2f837a7d","submitter":{"id":85,"url":"https://patchwork.libcamera.org/api/1.1/people/85/?format=json","name":"Vedant Paranjape","email":"vedantparanjape160201@gmail.com"},"delegate":null,"mbox":"https://patchwork.libcamera.org/patch/13563/mbox/","series":[{"id":2417,"url":"https://patchwork.libcamera.org/api/1.1/series/2417/?format=json","web_url":"https://patchwork.libcamera.org/project/libcamera/list/?series=2417","date":"2021-08-29T11:30:12","name":"[libcamera-devel,v2] test: gstreamer: Add minimal validation of camera output","version":2,"mbox":"https://patchwork.libcamera.org/series/2417/mbox/"}],"comments":"https://patchwork.libcamera.org/api/patches/13563/comments/","check":"pending","checks":"https://patchwork.libcamera.org/api/patches/13563/checks/","tags":{},"headers":{"Return-Path":"<libcamera-devel-bounces@lists.libcamera.org>","X-Original-To":"parsemail@patchwork.libcamera.org","Delivered-To":"parsemail@patchwork.libcamera.org","Received":["from lancelot.ideasonboard.com (lancelot.ideasonboard.com\n\t[92.243.16.209])\n\tby patchwork.libcamera.org (Postfix) with ESMTPS id 0DBF6BDC71\n\tfor <parsemail@patchwork.libcamera.org>;\n\tSun, 29 Aug 2021 11:30:32 +0000 (UTC)","from lancelot.ideasonboard.com (localhost [IPv6:::1])\n\tby lancelot.ideasonboard.com (Postfix) with ESMTP id 5EFE96916A;\n\tSun, 29 Aug 2021 13:30:31 +0200 (CEST)","from mail-pf1-x42d.google.com (mail-pf1-x42d.google.com\n\t[IPv6:2607:f8b0:4864:20::42d])\n\tby lancelot.ideasonboard.com (Postfix) with ESMTPS id 0C18B68891\n\tfor <libcamera-devel@lists.libcamera.org>;\n\tSun, 29 Aug 2021 13:30:30 +0200 (CEST)","by mail-pf1-x42d.google.com with SMTP id m26so9884471pff.3\n\tfor <libcamera-devel@lists.libcamera.org>;\n\tSun, 29 Aug 2021 04:30:29 -0700 (PDT)","from localhost.localdomain ([1.186.166.201])\n\tby smtp.googlemail.com with ESMTPSA id\n\tn3sm11538285pfo.101.2021.08.29.04.30.26\n\t(version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256);\n\tSun, 29 Aug 2021 04:30:27 -0700 (PDT)"],"Authentication-Results":"lancelot.ideasonboard.com;\n\tdkim=fail reason=\"signature verification failed\" (2048-bit key;\n\tunprotected) header.d=gmail.com header.i=@gmail.com\n\theader.b=\"d4ssuVJ/\"; dkim-atps=neutral","DKIM-Signature":"v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025;\n\th=from:to:cc:subject:date:message-id:mime-version\n\t:content-transfer-encoding;\n\tbh=RfWP4L6oVdwdQSW2c6p6xSWG1DBCHa86c4KeFSwcT7A=;\n\tb=d4ssuVJ/lFJMjbD/y3ZAPjRN4q/cAf4AUBRGSdIA1kHS5HWhGmufq8e1PW8iOjvPO4\n\tB14obpzZr8/L0FnI5R+LYqR25iK/wIx/sG9Pn6oeizyN6rRzZgUUhsrbdFRZUiJcs8Yv\n\tSx+ektUkmL+XEZQwHK6e//OUg+Z9UHH91Y5qAp3Kq6l3hBaKJEm0KOAQlfmZ4XGQ6pdq\n\t0qTE4ghYa8X5nc8pEgyRHbPuZgHSQjdeknnVXDO0ysYpPHaOwumzV8500ZkCCqo5uNeL\n\tmKn5AvoXXt5gE/IWKv6hndIN8OEU9iEGxHXluux1fDf62YAHnahepYfa5aresfQIk+cF\n\tf0pQ==","X-Google-DKIM-Signature":"v=1; a=rsa-sha256; c=relaxed/relaxed;\n\td=1e100.net; s=20161025;\n\th=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version\n\t:content-transfer-encoding;\n\tbh=RfWP4L6oVdwdQSW2c6p6xSWG1DBCHa86c4KeFSwcT7A=;\n\tb=UyxU9qx5BNEIQX0YkBfofMz5B6JYDtAy7QnJ+8hLxObqKkw0ppjh82+JA/pFk8i5JV\n\tGDC2LkgkzdOrXeDtfwlUbN8RL34OeqpLe7nHDf5per0Qitw5q4Q1/P+KnDAEsfc2m31T\n\ttMdaOvkVh0JpS5Fj5LdvKiTj/xIFPG5mKQt3MX4ryHgXo9exVIZIwlWD/zm8rMvjtgWj\n\tJU5T3/ds8DqIIvijZlHa0pjCUHppoFlQPCwNPrZtbOZyNwnn+KSaAAxn9QIJtuNhscvg\n\tnzVIyYOVuJsAcMVhzoukL5v9gUykVHyKSsfwHPgZY9CVRuVtaaFuyUBpW0t8umPUF6+l\n\tu/Zg==","X-Gm-Message-State":"AOAM531oe2Sz2nRs8vKy0BW2bllefDhIwHdahxcp3+fkv09vrKF3Bkfl\n\t+nuy6wj0saIEf+Hc810owf07qxXQ/IsoFw==","X-Google-Smtp-Source":"ABdhPJwEJFkuE9I+eAx8V0rpQs0Wbps3MY3ROOHO01GaPdB6JNk51IMxe+dKuJR3JztQJ2v7xAExMQ==","X-Received":"by 2002:a65:62c4:: with SMTP id\n\tm4mr16846489pgv.453.1630236628009; \n\tSun, 29 Aug 2021 04:30:28 -0700 (PDT)","From":"Vedant Paranjape <vedantparanjape160201@gmail.com>","To":"libcamera-devel@lists.libcamera.org","Date":"Sun, 29 Aug 2021 17:00:12 +0530","Message-Id":"<20210829113012.525417-1-vedantparanjape160201@gmail.com>","X-Mailer":"git-send-email 2.25.1","MIME-Version":"1.0","Content-Transfer-Encoding":"8bit","Subject":"[libcamera-devel] [PATCH v2] test: gstreamer: Add minimal\n\tvalidation of camera output","X-BeenThere":"libcamera-devel@lists.libcamera.org","X-Mailman-Version":"2.1.29","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>","Cc":"Vedant Paranjape <vedantparanjape160201@gmail.com>","Errors-To":"libcamera-devel-bounces@lists.libcamera.org","Sender":"\"libcamera-devel\" <libcamera-devel-bounces@lists.libcamera.org>"},"content":"Read stats property of fakesink which has Sink Statistics, It is\nexpected to be a non-zero number after running gstreamer element\nfor two seconds.\n\nSigned-off-by: Vedant Paranjape <vedantparanjape160201@gmail.com>\n---\n test/gstreamer/gstreamer_single_stream_test.cpp | 7 +++++++\n 1 file changed, 7 insertions(+)","diff":"diff --git a/test/gstreamer/gstreamer_single_stream_test.cpp b/test/gstreamer/gstreamer_single_stream_test.cpp\nindex 4c8d4804..6d977262 100644\n--- a/test/gstreamer/gstreamer_single_stream_test.cpp\n+++ b/test/gstreamer/gstreamer_single_stream_test.cpp\n@@ -134,8 +134,15 @@ protected:\n \t\tg_autoptr(GstBus) bus = gst_element_get_bus(pipeline_);\n \t\tg_autoptr(GstMessage) msg = gst_bus_timed_pop_filtered(bus, timeout, msgType);\n \n+\t\tgint sinkStats;\n+\t\tg_object_get(sink0_, \"stats\", &sinkStats, NULL);\n+\n \t\tgst_element_set_state(pipeline_, GST_STATE_NULL);\n \n+\t\tif (sinkStats == 0) {\n+\t\t\treturn TestFail;\n+\t\t}\n+\n \t\t/* Parse error message */\n \t\tif (msg == NULL)\n \t\t\treturn TestPass;\n","prefixes":["libcamera-devel","v2"]}