Bug 2494102 - shunit2 can be used as executable, thus should be under /usr/bin/
Summary: shunit2 can be used as executable, thus should be under /usr/bin/
Keywords:
Status: NEW
Alias: None
Product: Fedora
Classification: Fedora
Component: shunit2
Version: 44
Hardware: All
OS: Linux
unspecified
medium
Target Milestone: ---
Assignee: Hushan Jia
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2026-06-29 07:44 UTC by Laudin Molina
Modified: 2026-06-29 07:44 UTC (History)
1 user (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed:
Type: ---
Embargoed:


Attachments (Terms of Use)

Description Laudin Molina 2026-06-29 07:44:21 UTC
I cannot reopen https://bugzilla.redhat.com/show_bug.cgi?id=2216783 so I am creating this one Fedora 44.

The REAME.md[1] of shUnit2 lists examples that are not possible with the current installation in Fedora 44, as the use cases require shunit2 to be in the PATH.

[1] https://github.com/kward/shunit2/blob/master/README.md#running-tests-from-the-command-line

Reproducible: Always

Steps to Reproduce:
1. sudo dnf install shunit2
2. cd /usr/share/doc/shunit2/examples
3. shunit2 equality_test.sh
Actual Results:
-bash: shunit2: command not found

Expected Results:
# shunit2 is in PATH and can execute tests

shunit2 equality_test.sh
ASSERT:Unknown failure encountered running a test

Ran 0 tests.

FAILED (failures=1)


Note You need to log in before you can comment on or make changes to this bug.