Hello @[email protected]<mailto:[email protected]>

I have tried to run test-all but it fails:

make[2]: Entering directory '/home/virendrak/yaml-0.2.5/tests'
PASS: test-version
PASS: test-reader
============================================================================
Testsuite summary for yaml 0.2.5
============================================================================
# TOTAL: 2
# PASS:  2
# SKIP:  0
# XFAIL: 0
# FAIL:  0
# XPASS: 0
# ERROR: 0
============================================================================
make[2]: Leaving directory '/home/virendrak/yaml-0.2.5/tests'
make[1]: Leaving directory '/home/virendrak/yaml-0.2.5/tests'
git branch --track run-test-suite origin/run-test-suite
fatal: not a git repository (or any of the parent directories): .git
make: [Makefile:885: tests/run-test-suite] Error 128 (ignored)
git worktree prune
fatal: not a git repository (or any of the parent directories): .git
make: [Makefile:886: tests/run-test-suite] Error 128 (ignored)
git worktree add tests/run-test-suite run-test-suite
fatal: not a git repository (or any of the parent directories): .git
make: *** [Makefile:887: tests/run-test-suite] Error 128

It fails due to libyaml source is from downloaded from dowload directory 
mentioned below as a tar , its not git repo.
In yocto libyaml SRC is from : SRC_URI = 
"https://pyyaml.org/download/libyaml/yaml-${PV}.tar.gz";

Due to this it fail to fetch code from git repo.

Best Regards



[cid:8dc09906-5365-4dd5-b686-c6a3e5ee9ead]<https://outlook.office.com/bookwithme/user/[email protected]?anonymous&ep=bwmEmailSignature>
         Book time to meet with 
me<https://outlook.office.com/bookwithme/user/[email protected]?anonymous&ep=bwmEmailSignature>
________________________________
From: [email protected] 
<[email protected]> on behalf of Alexander Kanavin via 
lists.openembedded.org <[email protected]>
Sent: Tuesday, November 19, 2024 10:33 PM
To: Virendra Kumar Thakur <[email protected]>
Cc: [email protected] <[email protected]>; 
[email protected] 
<[email protected]>; [email protected] 
<[email protected]>
Subject: Re: [OE-core] [master][PATCH] libyaml: Add libyaml ptest

Caution: This email originated from outside of the KPIT. Do not click links or 
open attachments unless you recognize the sender and know the content is safe.
On Tue, 19 Nov 2024 at 14:24, Virendra Kumar Thakur 
<[email protected]<mailto:[email protected]>> wrote:
in yocto , Libyaml are sourced from 
https://pyyaml.org/download/libyaml/yaml-0.2.5.tar.gz

when I tried to run the test using above source . It only execute two test 
binary.

yaml-0.2.5/tests$ make check-TESTS
make[1]: Entering directory 'yaml-0.2.5/tests'
PASS: test-version
PASS: test-reader

If you take a look at upstream's top level Makefile.am, it has an additional 
target:

=============
test-suite: tests/run-test-suite all
make -C $< test

test-all: test test-suite

tests/run-test-suite:
ifeq ($(LIBYAML_TEST_SUITE_RUN_REPO),$(LIBYAML_TEST_SUITE_RUN_REPO_DEFAULT))
 -git branch --track $(LIBYAML_TEST_SUITE_RUN_BRANCH) 
origin/$(LIBYAML_TEST_SUITE_RUN_BRANCH)
 -git worktree prune
 git worktree add $@ $(LIBYAML_TEST_SUITE_RUN_BRANCH)
    else
 git clone --branch $(LIBYAML_TEST_SUITE_RUN_BRANCH) 
$(LIBYAML_TEST_SUITE_RUN_REPO) $@
    endif
============

Presumably, running 'make test-all' will fetch the needed test data from 
somewhere on the internet, and then use it to run additional tests. Can you 
please try that, and see what happens? Then we can probably just use the data 
from that repo by putting it into SRC_URI.

Alex
This message contains information that may be privileged or confidential and is 
the property of the KPIT Technologies Ltd. It is intended only for the person 
to whom it is addressed. If you are not the intended recipient, you are not 
authorized to read, print, retain copy, disseminate, distribute, or use this 
message or any part thereof. If you receive this message in error, please 
notify the sender immediately and delete all copies of this message. KPIT 
Technologies Ltd. does not accept any liability for virus infected mails.
-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#207610): 
https://lists.openembedded.org/g/openembedded-core/message/207610
Mute This Topic: https://lists.openembedded.org/mt/109148544/21656
Group Owner: [email protected]
Unsubscribe: https://lists.openembedded.org/g/openembedded-core/unsub 
[[email protected]]
-=-=-=-=-=-=-=-=-=-=-=-

Reply via email to