diff mbox series

[v5,05/10] acpi/tests/avocado/bits: add SPDX license identifiers for bios bits smilatency tests

Message ID 20221019025828.683113-6-ani@anisinha.ca (mailing list archive)
State New, archived
Headers show
Series [v5,01/10] acpi/tests/avocado/bits: initial commit of test scripts that are run by biosbits | expand

Commit Message

Ani Sinha Oct. 19, 2022, 2:58 a.m. UTC
Added the SPDX license identifier for smilatency tests.
Also added a comment indicating that smilatency test is run from within the
biosbits environment/VM and hence is not subjected to QEMU build/test
environment dependency fulfilments or QEMU maintanance activities.

Cc: Daniel P. Berrangé <berrange@redhat.com>
Cc: Paolo Bonzini <pbonzini@redhat.com>
Cc: Maydell Peter <peter.maydell@linaro.org>
Cc: John Snow <jsnow@redhat.com>
Cc: Thomas Huth <thuth@redhat.com>
Cc: Alex Bennée <alex.bennee@linaro.org>
Cc: Igor Mammedov <imammedo@redhat.com>
Cc: Michael Tsirkin <mst@redhat.com>
Signed-off-by: Ani Sinha <ani@anisinha.ca>
---
 tests/avocado/acpi-bits/bits-tests/smilatency.py2 | 4 ++++
 1 file changed, 4 insertions(+)

Comments

Alex Bennée Oct. 19, 2022, 3:32 p.m. UTC | #1
Ani Sinha <ani@anisinha.ca> writes:

> Added the SPDX license identifier for smilatency tests.
> Also added a comment indicating that smilatency test is run from within the
> biosbits environment/VM and hence is not subjected to QEMU build/test
> environment dependency fulfilments or QEMU maintanance activities.
>
> Cc: Daniel P. Berrangé <berrange@redhat.com>
> Cc: Paolo Bonzini <pbonzini@redhat.com>
> Cc: Maydell Peter <peter.maydell@linaro.org>
> Cc: John Snow <jsnow@redhat.com>
> Cc: Thomas Huth <thuth@redhat.com>
> Cc: Alex Bennée <alex.bennee@linaro.org>
> Cc: Igor Mammedov <imammedo@redhat.com>
> Cc: Michael Tsirkin <mst@redhat.com>
> Signed-off-by: Ani Sinha <ani@anisinha.ca>
> ---
>  tests/avocado/acpi-bits/bits-tests/smilatency.py2 | 4 ++++
>  1 file changed, 4 insertions(+)

Thinking about this again, why not just merge this with the initial code
dump?
Ani Sinha Oct. 19, 2022, 3:35 p.m. UTC | #2
On Wed, Oct 19, 2022 at 9:02 PM Alex Bennée <alex.bennee@linaro.org> wrote:
>
>
> Ani Sinha <ani@anisinha.ca> writes:
>
> > Added the SPDX license identifier for smilatency tests.
> > Also added a comment indicating that smilatency test is run from within the
> > biosbits environment/VM and hence is not subjected to QEMU build/test
> > environment dependency fulfilments or QEMU maintanance activities.
> >
> > Cc: Daniel P. Berrangé <berrange@redhat.com>
> > Cc: Paolo Bonzini <pbonzini@redhat.com>
> > Cc: Maydell Peter <peter.maydell@linaro.org>
> > Cc: John Snow <jsnow@redhat.com>
> > Cc: Thomas Huth <thuth@redhat.com>
> > Cc: Alex Bennée <alex.bennee@linaro.org>
> > Cc: Igor Mammedov <imammedo@redhat.com>
> > Cc: Michael Tsirkin <mst@redhat.com>
> > Signed-off-by: Ani Sinha <ani@anisinha.ca>
> > ---
> >  tests/avocado/acpi-bits/bits-tests/smilatency.py2 | 4 ++++
> >  1 file changed, 4 insertions(+)
>
> Thinking about this again, why not just merge this with the initial code
> dump?

I wanted to keep the original test scripts untouched from bits and
make our changes in separate commits. That way it helps to understand
exactly what we added/modified in the original bits test script.
Alex Bennée Oct. 20, 2022, 10:47 a.m. UTC | #3
Ani Sinha <ani@anisinha.ca> writes:

> On Wed, Oct 19, 2022 at 9:02 PM Alex Bennée <alex.bennee@linaro.org> wrote:
>>
>>
>> Ani Sinha <ani@anisinha.ca> writes:
>>
>> > Added the SPDX license identifier for smilatency tests.
>> > Also added a comment indicating that smilatency test is run from within the
>> > biosbits environment/VM and hence is not subjected to QEMU build/test
>> > environment dependency fulfilments or QEMU maintanance activities.
>> >
>> > Cc: Daniel P. Berrangé <berrange@redhat.com>
>> > Cc: Paolo Bonzini <pbonzini@redhat.com>
>> > Cc: Maydell Peter <peter.maydell@linaro.org>
>> > Cc: John Snow <jsnow@redhat.com>
>> > Cc: Thomas Huth <thuth@redhat.com>
>> > Cc: Alex Bennée <alex.bennee@linaro.org>
>> > Cc: Igor Mammedov <imammedo@redhat.com>
>> > Cc: Michael Tsirkin <mst@redhat.com>
>> > Signed-off-by: Ani Sinha <ani@anisinha.ca>
>> > ---
>> >  tests/avocado/acpi-bits/bits-tests/smilatency.py2 | 4 ++++
>> >  1 file changed, 4 insertions(+)
>>
>> Thinking about this again, why not just merge this with the initial code
>> dump?
>
> I wanted to keep the original test scripts untouched from bits and
> make our changes in separate commits. That way it helps to understand
> exactly what we added/modified in the original bits test script.

That if fair enough as long as bisection isn't broken. Do the tests only
get run at the end of the series?
Ani Sinha Oct. 20, 2022, 10:52 a.m. UTC | #4
On Thu, Oct 20, 2022 at 4:17 PM Alex Bennée <alex.bennee@linaro.org> wrote:
>
>
> Ani Sinha <ani@anisinha.ca> writes:
>
> > On Wed, Oct 19, 2022 at 9:02 PM Alex Bennée <alex.bennee@linaro.org> wrote:
> >>
> >>
> >> Ani Sinha <ani@anisinha.ca> writes:
> >>
> >> > Added the SPDX license identifier for smilatency tests.
> >> > Also added a comment indicating that smilatency test is run from within the
> >> > biosbits environment/VM and hence is not subjected to QEMU build/test
> >> > environment dependency fulfilments or QEMU maintanance activities.
> >> >
> >> > Cc: Daniel P. Berrangé <berrange@redhat.com>
> >> > Cc: Paolo Bonzini <pbonzini@redhat.com>
> >> > Cc: Maydell Peter <peter.maydell@linaro.org>
> >> > Cc: John Snow <jsnow@redhat.com>
> >> > Cc: Thomas Huth <thuth@redhat.com>
> >> > Cc: Alex Bennée <alex.bennee@linaro.org>
> >> > Cc: Igor Mammedov <imammedo@redhat.com>
> >> > Cc: Michael Tsirkin <mst@redhat.com>
> >> > Signed-off-by: Ani Sinha <ani@anisinha.ca>
> >> > ---
> >> >  tests/avocado/acpi-bits/bits-tests/smilatency.py2 | 4 ++++
> >> >  1 file changed, 4 insertions(+)
> >>
> >> Thinking about this again, why not just merge this with the initial code
> >> dump?
> >
> > I wanted to keep the original test scripts untouched from bits and
> > make our changes in separate commits. That way it helps to understand
> > exactly what we added/modified in the original bits test script.
>
> That if fair enough as long as bisection isn't broken. Do the tests only
> get run at the end of the series?

Yes patch 8 is the actual avocado test that executes these bits tests
from within bits VM.
diff mbox series

Patch

diff --git a/tests/avocado/acpi-bits/bits-tests/smilatency.py2 b/tests/avocado/acpi-bits/bits-tests/smilatency.py2
index fb1b7228e3..d616970b31 100644
--- a/tests/avocado/acpi-bits/bits-tests/smilatency.py2
+++ b/tests/avocado/acpi-bits/bits-tests/smilatency.py2
@@ -1,6 +1,8 @@ 
 # Copyright (c) 2015, Intel Corporation
 # All rights reserved.
 #
+# SPDX-License-Identifier: BSD-3-Clause
+#
 # Redistribution and use in source and binary forms, with or without
 # modification, are permitted provided that the following conditions are met:
 #
@@ -24,6 +26,8 @@ 
 # (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
 # SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
 
+# This script runs only from the biosbits VM.
+
 """SMI latency test."""
 
 import bits