Skip to content

Added Display IGT Test #28

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

manasab-qli
Copy link

Description:
This script automates the validation of authentication mechanisms within the IGT Core framework. It performs a series of tests to ensure that the authentication processes are functioning correctly and securely. The script captures detailed logs and provides a summary of the test results.

Copy link
Contributor

@mwasilew mwasilew left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Commit message is missing

echo "Checking if dependency binary is available"

# Set the library path for the IGT tests
LD_LIBRARY_PATH=/data/igt/lib
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please check whether the path exists

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

added the check in next commit

export LD_LIBRARY_PATH

# Navigate to the directory containing the IGT tests
cd /data/igt/tests/
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please check whether the path exists

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

added the check in next commit

cd /data/igt/tests/

# Run the core_auth test and log the output to a file
./core_auth 2>&1 | tee /data/core_auth_log.txt
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please ensude /data/ directory exists before saving logs there.

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

added the check in next commit

else
# If "SUCCESS" is not found, print that the test failed
log_pass "$TESTNAME : Test Failed"
echo "$TESTNAME Fail" > $test_path/$TESTNAME.res
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

s/Fail/FAIL/

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

added the check in next commit

@@ -0,0 +1,68 @@
Sure, here is a README for the IGT Core Auth Test:
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

? Seems unneccessary

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

added the check in next commit

1. Copy the script to your target system and make it executable:

```bash
chmod +x igt_core_auth_test.sh
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this file is not part of the PR

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

added the check in next commit

2. Run the script:

```bash
./igt_core_auth_test.sh
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This file is not part of the PR

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this is renamed to run.sh to maintain the same convention.
readme will also updated in the same way. in the commit this has been taken care

## Output

- **Test Logs**: Stored in individual files for each test variant.
- **Kernel Logs**: Captured via `dmesg` and `syslog`.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

dmesg and syslog are not used anywhere in the test script

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

added the check in next commit

@manasab-qli manasab-qli requested a review from mwasilew May 14, 2025 06:09
@mwasilew
Copy link
Contributor

Please squash the commits. There is no need to have 3 instead of 1

Copy link
Contributor

@mwasilew mwasilew left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please squash the commits and edit resulting commit message. Initial commit message is currently empty.

@manasab-qli manasab-qli requested a review from mwasilew May 22, 2025 04:46
@manasab-qli
Copy link
Author

Please squash the commits and edit resulting commit message. Initial commit message is currently empty.

Let me address this

@manasab-qli manasab-qli force-pushed the main branch 2 times, most recently from 81f53b8 to 9b25648 Compare May 22, 2025 06:42
Copy link
Contributor

@mwasilew mwasilew left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Commit message is missing.

@@ -0,0 +1,54 @@
#!/bin/sh
# Import test suite definitions
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please add Qualcomm copyright and SPDX header.

@@ -0,0 +1,63 @@
# IGT Core Auth Test Script
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please add Qualcomm copyright and SPDX header.

Signed-off-by: Manasa Bethapalli <[email protected]>
Copy link
Contributor

@mwasilew mwasilew left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please address the shellcheck issues:

In ./Runner/suites/Multimedia/Display/core_auth/run.sh line 4:
#!/bin/sh
^-- SC1128 (error): The shebang must be on the first line. Delete blanks and move comments.


In ./Runner/suites/Multimedia/Display/core_auth/run.sh line 6:
. $(pwd)/init_env
  ^----^ SC2046 (warning): Quote this to prevent word splitting.


In ./Runner/suites/Multimedia/Display/core_auth/run.sh line 26:
    # Set the LD_LIBRARY_PATH environment variable
^-- SC1018 (error): This is a unicode non-breaking space. Delete and retype it.
 ^-- SC1018 (error): This is a unicode non-breaking space. Delete and retype it.
  ^-- SC1018 (error): This is a unicode non-breaking space. Delete and retype it.


In ./Runner/suites/Multimedia/Display/core_auth/run.sh line 27:
    export LD_LIBRARY_PATH=/data/igt/lib
^-- SC1018 (error): This is a unicode non-breaking space. Delete and retype it.
 ^-- SC1018 (error): This is a unicode non-breaking space. Delete and retype it.
  ^-- SC1018 (error): This is a unicode non-breaking space. Delete and retype it.


In ./Runner/suites/Multimedia/Display/core_auth/run.sh line 28:
    echo "LD_LIBRARY_PATH is set to /data/igt/lib"
^-- SC1018 (error): This is a unicode non-breaking space. Delete and retype it.
 ^-- SC1018 (error): This is a unicode non-breaking space. Delete and retype it.
  ^-- SC1018 (error): This is a unicode non-breaking space. Delete and retype it.


In ./Runner/suites/Multimedia/Display/core_auth/run.sh line 30:
    echo "Directory either /data/ or /data/igt/lib or both does not exist"
^-- SC1018 (error): This is a unicode non-breaking space. Delete and retype it.
 ^-- SC1018 (error): This is a unicode non-breaking space. Delete and retype it.
  ^-- SC1018 (error): This is a unicode non-breaking space. Delete and retype it.


In ./Runner/suites/Multimedia/Display/core_auth/run.sh line 31:
    exit 1
^-- SC1018 (error): This is a unicode non-breaking space. Delete and retype it.
 ^-- SC1018 (error): This is a unicode non-breaking space. Delete and retype it.
  ^-- SC1018 (error): This is a unicode non-breaking space. Delete and retype it.


In ./Runner/suites/Multimedia/Display/core_auth/run.sh line 35:
cd /data/igt/tests/
^-----------------^ SC2164 (warning): Use 'cd ... || exit' or 'cd ... || return' in case cd fails.

Did you mean: 
cd /data/igt/tests/ || exit

For more information:
  https://www.shellcheck.net/wiki/SC1018 -- This is a unicode non-breaking sp...
  https://www.shellcheck.net/wiki/SC1128 -- The shebang must be on the first ...
  https://www.shellcheck.net/wiki/SC2046 -- Quote this to prevent word splitt...
Error: Process completed with exit code 123.

# Copyright (c) Qualcomm Technologies, Inc. and/or its subsidiaries.
# SPDX-License-Identifier: BSD-3-Clause-Clear

#!/bin/sh
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

shebang must be the first line in the script.


# Print the completion of the test case
echo "-------------------Completed $TESTNAME Testcase----------------------------"

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please remove empty lines at the end of the script

Copy link
Contributor

@smuppand smuppand left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@manasab-qli Please ensure that you use the latest skeleton for any test scripts contributed to this repository. Also, make sure to rebase your feature branch onto the latest main branch. This will help streamline the review process and facilitate a smoother merge of your pull request.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants