From nobody Tue Feb 10 05:17:51 2026 Delivered-To: importer@patchew.org Received-SPF: pass (zohomail.com: domain of redhat.com designates 170.10.133.124 as permitted sender) client-ip=170.10.133.124; envelope-from=libvir-list-bounces@redhat.com; helo=us-smtp-delivery-124.mimecast.com; Authentication-Results: mx.zohomail.com; spf=pass (zohomail.com: domain of redhat.com designates 170.10.133.124 as permitted sender) smtp.mailfrom=libvir-list-bounces@redhat.com; dmarc=fail(p=none dis=none) header.from=gmail.com Return-Path: Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.133.124]) by mx.zohomail.com with SMTPS id 1630585822226984.4867903376557; Thu, 2 Sep 2021 05:30:22 -0700 (PDT) Received: from mimecast-mx01.redhat.com (mimecast-mx01.redhat.com [209.132.183.4]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-316-jH3_nvFyN-mJHuYGMYmgYw-1; Thu, 02 Sep 2021 08:30:19 -0400 Received: from smtp.corp.redhat.com (int-mx01.intmail.prod.int.phx2.redhat.com [10.5.11.11]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx01.redhat.com (Postfix) with ESMTPS id AE74784A5E8; Thu, 2 Sep 2021 12:30:14 +0000 (UTC) Received: from colo-mx.corp.redhat.com (colo-mx02.intmail.prod.int.phx2.redhat.com [10.5.11.21]) by smtp.corp.redhat.com (Postfix) with ESMTPS id 677AF189BB; Thu, 2 Sep 2021 12:30:14 +0000 (UTC) Received: from lists01.pubmisc.prod.ext.phx2.redhat.com (lists01.pubmisc.prod.ext.phx2.redhat.com [10.5.19.33]) by colo-mx.corp.redhat.com (Postfix) with ESMTP id AB63E44A5D; Thu, 2 Sep 2021 12:30:13 +0000 (UTC) Received: from smtp.corp.redhat.com (int-mx05.intmail.prod.int.rdu2.redhat.com [10.11.54.5]) by lists01.pubmisc.prod.ext.phx2.redhat.com (8.13.8/8.13.8) with ESMTP id 182CTscN029183 for ; Thu, 2 Sep 2021 08:29:54 -0400 Received: by smtp.corp.redhat.com (Postfix) id 09E7A106260; Thu, 2 Sep 2021 12:29:54 +0000 (UTC) Received: from mimecast-mx02.redhat.com (mimecast02.extmail.prod.ext.rdu2.redhat.com [10.11.55.18]) by smtp.corp.redhat.com (Postfix) with ESMTPS id 0487A11EB01 for ; Thu, 2 Sep 2021 12:29:54 +0000 (UTC) Received: from us-smtp-1.mimecast.com (us-smtp-2.mimecast.com [205.139.110.61]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mimecast-mx02.redhat.com (Postfix) with ESMTPS id E0A1D800B29 for ; Thu, 2 Sep 2021 12:29:53 +0000 (UTC) Received: from mail-pl1-f179.google.com (mail-pl1-f179.google.com [209.85.214.179]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-6-MDYcKrlnOl2vodOcd0AJ8A-1; Thu, 02 Sep 2021 08:29:52 -0400 Received: by mail-pl1-f179.google.com with SMTP id c5so174444plz.2 for ; Thu, 02 Sep 2021 05:29:52 -0700 (PDT) Received: from localhost ([38.94.109.214]) by smtp.gmail.com with ESMTPSA id k12sm2227379pjg.6.2021.09.02.05.29.50 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 02 Sep 2021 05:29:50 -0700 (PDT) X-MC-Unique: jH3_nvFyN-mJHuYGMYmgYw-1 X-MC-Unique: MDYcKrlnOl2vodOcd0AJ8A-1 X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=fakMIX4Qi35XsOlsxzIzDRriEN9qgN4YZaSbJ59Iymo=; b=JtaLkQPjVk7amyazSbPQKjcD6lMY1tCwY71fUhfeNNmOsDt2Ka6/U7S8750TZQ6wC+ HyilhXP3KFC6GRClGB893qO0pofmiEo70fwbgzjMomZcUBPFWPp/zMSf/3CvgzwS4XFu EPhys8krTS8fOzcvifIJ/ASoUqlS14boWUbjx0tTKJFIMXVN7c7NuscuLoYM1+8AluAb UrTiK8chTFTTgs+zi8pVU8ATPxDKt/uqyOcsSVsgzcs2PteRj5JVQAq1sxX0Z+5G6HHC Nuh83Dhvzop7DqPIGyqU8SbpF6EdXZLdhSUvonOpyxUW1PuwHOqRdrF6S4rw4fZrXH6d MC1A== X-Gm-Message-State: AOAM533ulxbiS2sZ8wzlrnIPDF50T2J7RrzCFYAARNNCIMatvfSOKS9N rO6q5P9zjUwZRsb5mM0+v60bF+LhHmeWD3cKcAI= X-Google-Smtp-Source: ABdhPJzm1Ymi6ImFbZjGK8nP7kp2YtME1Hfrk2I98wZoRBTnB4mhSEthrWwqpMbIl8yIJXEgRS3hhg== X-Received: by 2002:a17:902:ba98:b0:139:93:7e26 with SMTP id k24-20020a170902ba9800b0013900937e26mr2689993pls.55.1630585790804; Thu, 02 Sep 2021 05:29:50 -0700 (PDT) From: Luke Yue To: libvir-list@redhat.com Subject: [PATCH 3/3] tests: Add test for virDomainGetSecurityLabelList Date: Thu, 2 Sep 2021 20:29:36 +0800 Message-Id: <20210902122936.57399-4-lukedyue@gmail.com> In-Reply-To: <20210902122936.57399-1-lukedyue@gmail.com> References: <20210902122936.57399-1-lukedyue@gmail.com> MIME-Version: 1.0 X-Mimecast-Impersonation-Protect: Policy=CLT - Impersonation Protection Definition; Similar Internal Domain=false; Similar Monitored External Domain=false; Custom External Domain=false; Mimecast External Domain=false; Newly Observed Domain=false; Internal User Name=false; Custom Display Name List=false; Reply-to Address Mismatch=false; Targeted Threat Dictionary=false; Mimecast Threat Dictionary=false; Custom Threat Dictionary=false X-Scanned-By: MIMEDefang 2.79 on 10.11.54.5 X-loop: libvir-list@redhat.com X-BeenThere: libvir-list@redhat.com X-Mailman-Version: 2.1.12 Precedence: junk List-Id: Development discussions about the libvirt library & tools List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: libvir-list-bounces@redhat.com Errors-To: libvir-list-bounces@redhat.com X-Scanned-By: MIMEDefang 2.79 on 10.5.11.11 Authentication-Results: relay.mimecast.com; auth=pass smtp.auth=CUSA124A263 smtp.mailfrom=libvir-list-bounces@redhat.com X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com Content-Transfer-Encoding: quoted-printable X-ZM-MESSAGEID: 1630585822733100001 Content-Type: text/plain; charset="utf-8" Signed-off-by: Luke Yue --- tests/virshtest.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/tests/virshtest.c b/tests/virshtest.c index 0d703f3765..4fb4799456 100644 --- a/tests/virshtest.c +++ b/tests/virshtest.c @@ -69,6 +69,7 @@ Managed save: no\n\ Security model: testSecurity\n\ Security DOI: \n\ Security labels: " SECURITY_LABEL "\n\ + " SECURITY_LABEL "\n\ Messages: " FC5_MESSAGES "\n\ \n"; =20 @@ -237,7 +238,8 @@ static int testCompareDominfoByName(const void *data G_= GNUC_UNUSED) =20 static int testCompareTaintedDominfoByName(const void *data G_GNUC_UNUSED) { - const char *const argv[] =3D { VIRSH_CUSTOM, "dominfo", "fc5", NULL }; + const char *const argv[] =3D { VIRSH_CUSTOM, "dominfo", "fc5", + "--full-seclabels", NULL }; const char *exp =3D dominfo_fc5; return testCompareOutputLit(exp, "\nCPU time:", argv); } --=20 2.33.0