Below test does not require any argument to be pass. Its is a simple binary
> +       test-version and test-reader


 run-emitter|run-dumper|run-parser|run-scanner|run-loader
Other test require an argument and yaml file which it needs to perform task. 
Like parsing or emmiting or to perform run-loader test

I will send another version of patch without below change:
> +SRC_URI[run-ptest.md5sum] = "040b47d9b00d2ddbc707792ff6626243"
> +SRC_URI[run-ptest.sha256sum] = 
> "71030494ab116f1c31bf125de9d5fbe2f01aacf4daada36b44202be135a80964"
> +SRC_URI[example.yaml.md5sum] = "d7f8a342650b153d219431633b0c383b"
> +SRC_URI[example.yaml.sha256sum] = 
> "d7c50b29716fcc7445e181c7d7043d70f8e58096793dc1f351c8e7f41034f813"


[cid:95654072-e768-4291-9780-247df4bf5f3a]<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, October 22, 2024 1:53 PM
To: [email protected] <[email protected]>
Cc: [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, 22 Oct 2024 at 10:13, virendra thakur via
lists.openembedded.org
<[email protected]> wrote:
> +++ b/meta/recipes-support/libyaml/libyaml/run-ptest
> @@ -0,0 +1,28 @@
> +#!/bin/sh
> +for testlist in test-version test-reader run-emitter run-dumper run-parser 
> run-scanner run-loader; do
> +       case ${testlist} in
> +       test-version|test-reader)
> +               outputrun=$(./$testlist)
> +              if ! echo ${outputrun}| grep -q "FAILURE"
> +               then
> +                       echo "PASS: ${testlist}"
> +               else
> +                       echo "FAIL : ${testlist}"
> +                       exit 1
> +               fi
> +               ;;
> +       esac
> +       case ${testlist} in
> +       run-emitter|run-dumper|run-parser|run-scanner|run-loader)
> +              outputrun=$(./$testlist example.yaml)
> +              echo $outputrun
> +              if ! echo ${outputrun}| grep "FAILURE ([1-50]"
> +              then
> +                      echo "PASS: ${testlist}"
> +              else
> +                      echo "FAIL : ${testlist}"
> +                      exit 1
> +              fi
> +               ;;
> +       esac
> +done

I'd like to better understand what is happening here. Why are some
items in the test suite run without an argument, and other items with
example.yaml that we created ourselves (apparently, from items in
examples/)? How does the test suite work upstream and why can't we
simply use that?

>  SRC_URI[md5sum] = "bb15429d8fb787e7d3f1c83ae129a999"
>  SRC_URI[sha256sum] = 
> "c642ae9b75fee120b2d96c712538bd2cf283228d2337df2cf2988e3c02678ef4"
> +SRC_URI[run-ptest.md5sum] = "040b47d9b00d2ddbc707792ff6626243"
> +SRC_URI[run-ptest.sha256sum] = 
> "71030494ab116f1c31bf125de9d5fbe2f01aacf4daada36b44202be135a80964"
> +SRC_URI[example.yaml.md5sum] = "d7f8a342650b153d219431633b0c383b"
> +SRC_URI[example.yaml.sha256sum] = 
> "d7c50b29716fcc7445e181c7d7043d70f8e58096793dc1f351c8e7f41034f813"

This is not necessary. Integrity check for files in the layer tree is
ensured through git commit id (of the layer) being a checksum of all
the files.

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 (#207386): 
https://lists.openembedded.org/g/openembedded-core/message/207386
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]]
-=-=-=-=-=-=-=-=-=-=-=-

  • [OE-core] [master][PATCH] lib... virendra thakur
    • Re: [OE-core] [master][P... Alexander Kanavin
      • Re: [OE-core] [maste... Virendra Thakur via lists.openembedded.org
        • Re: [OE-core] [m... Alexander Kanavin via lists.openembedded.org
          • Re: [OE-core... Virendra Thakur via lists.openembedded.org
            • Re: [OE... Alexander Kanavin via lists.openembedded.org
              • Re:... Virendra Thakur via lists.openembedded.org
                • ... Alexander Kanavin via lists.openembedded.org
                • ... Virendra Thakur via lists.openembedded.org
                • ... Alexander Kanavin via lists.openembedded.org
                • ... Virendra Thakur via lists.openembedded.org
                • ... Alexander Kanavin via lists.openembedded.org

Reply via email to