-
Notifications
You must be signed in to change notification settings - Fork 14
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
base: main
Are you sure you want to change the base?
Conversation
There was a problem hiding this 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 |
There was a problem hiding this comment.
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
There was a problem hiding this comment.
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/ |
There was a problem hiding this comment.
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
There was a problem hiding this comment.
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 |
There was a problem hiding this comment.
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.
There was a problem hiding this comment.
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 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
s/Fail/FAIL/
There was a problem hiding this comment.
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: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
? Seems unneccessary
There was a problem hiding this comment.
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 |
There was a problem hiding this comment.
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
There was a problem hiding this comment.
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 |
There was a problem hiding this comment.
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
There was a problem hiding this comment.
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`. |
There was a problem hiding this comment.
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
There was a problem hiding this comment.
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
Please squash the commits. There is no need to have 3 instead of 1 |
There was a problem hiding this 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.
Let me address this |
81f53b8
to
9b25648
Compare
There was a problem hiding this 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 |
There was a problem hiding this comment.
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 |
There was a problem hiding this comment.
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]>
There was a problem hiding this 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 |
There was a problem hiding this comment.
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----------------------------" | ||
|
There was a problem hiding this comment.
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
There was a problem hiding this 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.
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.