-
Notifications
You must be signed in to change notification settings - Fork 117
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1245 from i12momal/rama2
Replace bin in easy tests
- Loading branch information
Showing
8 changed files
with
104 additions
and
35 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,15 +1,8 @@ | ||
[Desktop Entry] | ||
Name=rpmlint-test | ||
Name[de]=rpmlint-test umlaut äöü | ||
Name[x-test]=xxrpmlint-testxx | ||
MimeType=application/x-rpm; | ||
Name[de]=rpmlint-test umlaut äöü | ||
Exec=rpmlint-test file.file | ||
Icon=chameleon_v_balíku | ||
Icon=chameleon_v_baliku | ||
Type=Application | ||
InitialPreference=5 | ||
NoDisplay=false | ||
GenericName=rpmlint testcase | ||
GenericName[x-test]=xxrpmlint testcasexx | ||
Categories=System;PackageManager; | ||
Keywords=software;package; | ||
Keywords[x-test]=xxsoftwarexx;xxpackagexx; | ||
Categories=Game;Amusement; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
from Testing import get_tested_mock_package | ||
|
||
|
||
LSB = get_tested_mock_package( | ||
files={ | ||
'/usr/sbin/fping', | ||
'/usr/share/doc/packages/fPing', | ||
'/usr/share/doc/packages/fPing/CHANGELOG.md', | ||
'/usr/share/licenses/fPing', | ||
'/usr/share/licenses/fPing/COPYING', | ||
'/usr/share/man/man8/fping.8.gz', | ||
}, | ||
header={ | ||
'name': 'fPing@1', | ||
'version': '1.0_beta', | ||
'release': '1.0-beta' | ||
}) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
from Testing import get_tested_mock_package | ||
|
||
PAMMODULES = get_tested_mock_package( | ||
files={ | ||
'/usr/lib64/security/pam-module.so': {'content': ''} | ||
} | ||
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,51 @@ | ||
from Testing import get_tested_mock_package | ||
|
||
|
||
SYSVINITONSYSTEMD = get_tested_mock_package( | ||
files={ | ||
'/etc/init.d/boot.script': {'content': ''}, | ||
'/etc/init.d/weekly.script': {'content': ''} | ||
}, | ||
header={ | ||
'requires': ['insserv'] | ||
}) | ||
|
||
|
||
SYSVINITONSYSTEMD2 = get_tested_mock_package( | ||
files={ | ||
'/etc/init.d/bar': {'content': """ | ||
#! /bin/bash | ||
### BEGIN INIT INFO | ||
# Provides: foo | ||
# Required-Start: $local_fs $network | ||
# Required-Stop: $local_fs | ||
# Default-Start: 2 3 4 5 | ||
# Default-Stop: 0 1 6 | ||
# Short-Description: foo service | ||
# Description: Run Foo service | ||
### END INIT INFO | ||
# Carry out specific functions when asked to by the system | ||
case "$1" in | ||
start) | ||
echo "Starting Foo..." | ||
sudo -u foo-user bash -c 'cd /path/to/scripts/ && ./start-foo.sh' | ||
;; | ||
stop) | ||
echo "Stopping Foo..." | ||
sudo -u foo-user bash -c 'cd /path/to/scripts/ && ./stop-foo.sh' | ||
sleep 2 | ||
;; | ||
*) | ||
echo "Usage: /etc/init.d/foo {start|stop}" | ||
exit 1 | ||
;; | ||
esac | ||
exit 0 | ||
"""}, | ||
'/usr/lib/systemd/system/bar.service': {}, | ||
'/usr/lib/systemd/system/foo.service': {}}, | ||
header={ | ||
'requires': ['insserv']}) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters