-
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 #1247 from i12momal/rama4
Replace bin in easy tests
- Loading branch information
Showing
7 changed files
with
168 additions
and
34 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 |
---|---|---|
@@ -0,0 +1,15 @@ | ||
[Desktop Entry] | ||
Name=rpmlint-test | ||
Name[de]=rpmlint-test umlaut äöü | ||
Name[x-test]=xxrpmlint-testxx | ||
MimeType=application/x-rpm; | ||
Exec=rpmlint-test file.file | ||
Icon=chameleon_v_balíku | ||
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; |
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 | ||
|
||
FHS = get_tested_mock_package( | ||
files={ | ||
'/usr/dummy': {'content': ''}, | ||
'/var/dummy': {'content': ''}, | ||
'/var/local': {'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,69 @@ | ||
from Testing import get_tested_mock_package | ||
|
||
MENUXDG = get_tested_mock_package( | ||
files={ | ||
'/usr/share/applications/somefile.desktop': {'content': """ | ||
[DEFAULT] | ||
something = true | ||
[else | ||
"""} | ||
}) | ||
|
||
MENUXDG1 = get_tested_mock_package( | ||
files={ | ||
'/usr/share/applications/rpmlint-test.desktop': {'content': """ | ||
[Desktop Entry] | ||
Name=rpmlint-test | ||
Exec=rpmlint-test file.file | ||
Icon=chameleon_v_balíku | ||
Type=Application | ||
GenericName=rpmlint testcase | ||
Categories=Game;Amusement; | ||
"""} | ||
}) | ||
|
||
MENUXDG2 = get_tested_mock_package( | ||
files={ | ||
'/usr/share/applications/rpmlint-test.desktop': {'content': """ | ||
[Desktop Entry] | ||
[Desktop Entry] | ||
Name=rpmlint-test | ||
Name=name duplicate | ||
Exec=rpmlint-test file.file | ||
Icon=chameleon_v_balíku | ||
Type=Application | ||
GenericName=rpmlint testcase | ||
Categories=Game;Amusement; | ||
"""} | ||
}) | ||
|
||
MENUXDG3 = get_tested_mock_package( | ||
files={ | ||
'/usr/share/applications/rpmlint-test.desktop': {'content': """ | ||
Name=rpmlint-test | ||
[Bad Section] | ||
Name[x-test]=xxrpmlint-testxx | ||
Exec=rpmlint-test file.file | ||
Icon=rpmlint-test | ||
Type=Application | ||
GenericName=rpmlint testcase"""} | ||
}) | ||
|
||
MENUXDG4 = get_tested_mock_package( | ||
files={ | ||
'/usr/share/applications/rpmlint-test.desktop': { | ||
'content-path': 'files/rpmlint-test.desktop', | ||
'create_dirs': True, | ||
} | ||
}) | ||
|
||
MENUXDG5 = get_tested_mock_package( | ||
files={ | ||
'/usr/bin/rpmlint-test', | ||
'/usr/share/applications', | ||
'/usr/share/applications/rpmlint-test.desktop', | ||
'/usr/share/icons/hicolor', | ||
'/usr/share/icons/hicolor/scalable', | ||
'/usr/share/icons/hicolor/scalable/apps', | ||
'/usr/share/icons/hicolor/scalable/apps/chameleon_v_balíku.png' | ||
}) |
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,38 @@ | ||
from Testing import get_tested_mock_package | ||
|
||
|
||
PKGCONFIG = get_tested_mock_package( | ||
files={ | ||
'/tmp/pkgconfig/xcb.pc': {'content': """ | ||
prefix=/usr | ||
exec_prefix=/usr | ||
libdir=/var/tmp/usr/lib64 | ||
includedir=/usr/include//xyz | ||
Name: XCB Xinerama | ||
Description: XCB Xinerama Extension | ||
Version: 1.13 | ||
Requires.private: xcb | ||
Libs: -L/usr/lib | ||
Cflags: -I${includedir}"""} | ||
}, | ||
header={ | ||
'arch': 'x86_64' | ||
}) | ||
|
||
|
||
PKGCONFIG2 = get_tested_mock_package( | ||
files={ | ||
'/usr/include/reiserfs', | ||
'/usr/include/reiserfs/io.h', | ||
'/usr/include/reiserfs/misc.h', | ||
'/usr/include/reiserfs/reiserfs_err.h', | ||
'/usr/include/reiserfs/reiserfs_fs.h', | ||
'/usr/include/reiserfs/reiserfs_lib.h', | ||
'/usr/include/reiserfs/swab.h', | ||
'/usr/lib64/libreiserfscore.a', | ||
'/usr/lib64/libreiserfscore.la', | ||
'/usr/lib64/libreiserfscore.so', | ||
'/usr/lib64/libreiserfscore.so.0', | ||
'/usr/lib64/pkgconfig/reiserfscore.pc'} | ||
) |
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