Skip to content

test script for systemd validation #50

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

avisinone
Copy link

No description provided.

@avisinone
Copy link
Author

Licence check failure for different files than the one part of change.

file license/copyright check > ┌───────────────────────────────────────────┐
< file license/copyright check > │ Flagged Files Report
< file license/copyright check > ├───────────────────────────────────────────┤
< file license/copyright check > │ Top level/default license of the repo is BSD-3-Clause-Clear
< file license/copyright check > ├───────────────────────────────────────────┤
< file license/copyright check > │ 📄 File: Runner/suites/Multimedia/Video/iris_v4l2_video_decode/run.sh
< file license/copyright check > │ 🚨 License issues detected:
< file license/copyright check > │ - License deleted: BSD-3-Clause-Clear
< file license/copyright check > │ ⚠️ Copyright issues detected:
< file license/copyright check > │ - Copyright deletions detected: ['# Copyright (c) Qualcomm Technologies, Inc. and/or its subsidiaries.']
< file license/copyright check > │ 📄 File: Runner/suites/Multimedia/Video/iris_v4l2_video_encode/run.sh
< file license/copyright check > │ 🚨 License issues detected:
< file license/copyright check > │ - License deleted: BSD-3-Clause-Clear
< file license/copyright check > │ ⚠️ Copyright issues detected:
< file license/copyright check > │ - Copyright deletions detected: ['# Copyright (c) Qualcomm Technologies, Inc. and/or its subsidiaries.']
< file license/copyright check > └───────────────────────────────────────────┘

@smuppand
Copy link
Contributor

smuppand commented May 27, 2025

@avisinone Noticed that a few commits are duplicated in this PR (the same changes appear multiple times in the commit history). Please consider rebasing or squashing to remove the duplicates for a cleaner history. Also provide commit message. Also your run.sh is not aligned to run in the testkit suite. Refer https://github.com/smuppand/qcom-linux-testkit/blob/lib_changes/CONTRIBUTING.md

@mwasilew
Copy link
Contributor

Rebasing your branch on top of main will fix the license issue. Last commit (e4bda8ffad71b14d891e46ec38e1985e85883bcb) in your branch is duplicated from main branch and that causes the problem.

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.

rebase your feature branch on top of latest main.
Unify PASS/FAIL results handling to reduce redundancy.
Along with left few more comments.

@avisinone avisinone requested a review from smuppand June 5, 2025 12:41
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 use indentation consistently and rewrite the commit message.

@avisinone avisinone force-pushed the platform_test branch 2 times, most recently from 0cb77ff to 6bbb509 Compare June 10, 2025 10:44
@avisinone avisinone requested a review from mwasilew June 10, 2025 10:46
update_test_fail(){
subtestname=$1
msg=$2
echo "$subtestname FAIL" >> "$res_file"
Copy link
Contributor

Choose a reason for hiding this comment

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

Can you please only add Over PASS/Fail status. Since this result file is getting parsed to get the test result, it might give wrong status?

Copy link
Author

Choose a reason for hiding this comment

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

Hi I have changed the result logic. please check

Following check are implemented :
Check systemd starts with PID 1.
Check if systemctl start and stop option is able to work for a service.
Check for failed service on device using systemctl status.
Script returns with exit code 1 if any of the subtest is failed.
Usage Command Verified : ./run-test.sh systemd

Signed-off-by: Abhishek Sinha <abhsinh@qti.qualcomm.com>
# shellcheck disable=SC1090,SC1091
. "$TOOLS/functestlib.sh"

TESTNAME="systemd"
Copy link
Contributor

Choose a reason for hiding this comment

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

Better to change name of the test. As it is doing for process check here.


# Call the functions
check_systemd_pid
check_systemctl_stop
Copy link
Contributor

Choose a reason for hiding this comment

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

Better move services check to different script. Any reason to club together?


ANY_SUBTEST_FAILED="false"

update_test_pass(){
Copy link
Contributor

Choose a reason for hiding this comment

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

Can be moved to common functions

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.

Require some more changes.

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