mirror of
https://git.yoctoproject.org/meta-security
synced 2026-01-11 15:00:34 +00:00
libgssglue: add ptest
Ptest result:
ptest-runner libgssglue
START: ptest-runner
2025-03-27T13:15
BEGIN: /usr/lib64/libgssglue/ptest
PASS: gss_create_empty_oid_set
PASS: gss_test_oid_set_member
PASS: gss_test_oid_set_member n==0
PASS: gss_add_oid_set_member() OK
PASS: gss_test_oid_set_member() OK
OID present in set with the OID added to it => 1
PASS: gss_test_oid_set_member() OK
PASS: gss_test_oid_set_member() OK
Another OID present in set without the OID => 0
PASS: gss_test_oid_set_member() OK
PASS: gss_add_oid_set_member() OK
PASS: gss_test_oid_set_member() OK
Another OID present in set with it added => 1
PASS: gss_test_oid_set_member() OK
PASS: gss_test_oid_set_member() OK
First OID present in set => 1
PASS: gss_test_oid_set_member() OK
PASS: gss_release_oid_set() OK
PASS: gss_indicate_mechs() OK
PASS: gss_release_oid_set() OK
PASS: gss_import_name() OK
PASS: gss_display_name() OK
display_name() => 27: imap@server.example.org@FOO
PASS: gss_release_buffer() OK
PASS: gss_release_name() OK
Basic self tests done with 0 errors
DURATION: 0
END: /usr/lib64/libgssglue/ptest
2025-03-27T13:15
STOP: ptest-runner
TOTAL: 1 FAIL: 0
Signed-off-by: Yi Zhao <yi.zhao@windriver.com>
Signed-off-by: Armin Kuster <akuster808@gmail.com>
This commit is contained in:
4
recipes-security/libgssglue/files/run-ptest
Normal file
4
recipes-security/libgssglue/files/run-ptest
Normal file
@@ -0,0 +1,4 @@
|
||||
#! /bin/sh
|
||||
|
||||
current_dir=$(dirname $(readlink -f $0))
|
||||
$current_dir/generic
|
||||
@@ -21,12 +21,14 @@ LIC_FILES_CHKSUM = "file://COPYING;md5=56871e72a5c475289c0d5e4ba3f2ee3a \
|
||||
file://src/oid_ops.c;beginline=378;endline=398;md5=72457a5cdc0354cb5c25c8b150326364\
|
||||
"
|
||||
|
||||
SRC_URI = "git://gitlab.com/gsasl/libgssglue.git;protocol=https;branch=master"
|
||||
SRC_URI = "git://gitlab.com/gsasl/libgssglue.git;protocol=https;branch=master \
|
||||
file://run-ptest \
|
||||
"
|
||||
SRCREV = "ada76bdaec665f70505f0b3aefe871b873e7c4b6"
|
||||
|
||||
S = "${WORKDIR}/git"
|
||||
|
||||
inherit autotools-brokensep
|
||||
inherit autotools-brokensep ptest
|
||||
|
||||
do_configure:prepend() {
|
||||
cd ${S}
|
||||
@@ -46,5 +48,14 @@ do_install:append() {
|
||||
sed -i -e "s:/usr/lib/libgssapi_krb5.so:libgssapi_krb5.so.2:" ${D}${sysconfdir}/gssapi_mech.conf
|
||||
}
|
||||
|
||||
do_compile_ptest() {
|
||||
echo 'buildtest-TESTS: $(check_PROGRAMS)' >> ${S}/tests/Makefile
|
||||
oe_runmake -C ${S}/tests buildtest-TESTS
|
||||
}
|
||||
|
||||
do_install_ptest() {
|
||||
install -m 755 ${S}/tests/generic ${D}/${PTEST_PATH}
|
||||
}
|
||||
|
||||
# gssglue can use krb5, spkm3... as gssapi library, configurable
|
||||
RRECOMMENDS:${PN} += "krb5"
|
||||
|
||||
Reference in New Issue
Block a user