forked from sailfishos-patches/patchmanager
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add three new Testcases: Version Checks (sailfishos-patches#430)
THese allow playing around with version check strictness Co-authored-by: nephros <nemo@pgxperiiia10>
- Loading branch information
Showing
13 changed files
with
75 additions
and
0 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,6 @@ | ||
TEMPLATE = aux | ||
|
||
patch.path = /usr/share/patchmanager/patches/pm-test-case-patch-a-bit-newer | ||
patch.files = patch/unified_diff.patch patch/patch.json | ||
|
||
INSTALLS += patch |
1 change: 1 addition & 0 deletions
1
...-bit-newer/patch-source/b/usr/share/patchmanager-test/testfile-added-by-patch-a-bit-newer
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 @@ | ||
this was added by patch-a-bit-newer patch |
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,14 @@ | ||
{ | ||
"description": "Patchmanager Test Case: The version specified in the meta data is likely newer than this SFOS version (X.Y.0.99).\n PM should not allow to activate or install it.", | ||
"name": "pm-test-patch-a-bit-newer", | ||
"display_name": "PM Test Case 4-3: a bit newer", | ||
"category": "other", | ||
"author": "patchmanager", | ||
"version": "1.0.0", | ||
"compatible": [ | ||
"4.5.0.99", | ||
"4.6.0.99", | ||
"5.0.0.99", | ||
"5.9.0.99" | ||
] | ||
} |
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,5 @@ | ||
diff -Naur a/usr/share/patchmanager-test/testfile-added-by-patch-a-bit-newer b/usr/share/patchmanager-test/testfile-added-by-patch-a-bit-newer | ||
--- a/usr/share/patchmanager-test/testfile-added-by-patch-a-bit-newer 1970-01-01 01:00:00.000000000 +0100 | ||
+++ b/usr/share/patchmanager-test/testfile-added-by-patch-a-bit-newer 2023-04-15 19:09:07.568614812 +0200 | ||
@@ -0,0 +1 @@ | ||
+this was added by patch-a-bit-newer patch |
1 change: 1 addition & 0 deletions
1
.../patch-too-new/patch-source/b/usr/share/patchmanager-test/testfile-added-by-patch-too-new
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 @@ | ||
this was added by patch-too-new patch |
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,6 @@ | ||
TEMPLATE = aux | ||
|
||
patch.path = /usr/share/patchmanager/patches/pm-test-case-patch-too-new | ||
patch.files = patch/unified_diff.patch patch/patch.json | ||
|
||
INSTALLS += patch |
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,11 @@ | ||
{ | ||
"description": "Patchmanager Test Case: The version specified in the meta data is very science fiction.\n PM should not allow to activate or install it.", | ||
"name": "pm-test-patch-too-new", | ||
"display_name": "PM Test Case 4-2: Too New", | ||
"category": "other", | ||
"author": "patchmanager", | ||
"version": "1.0.0", | ||
"compatible": [ | ||
"9.9.9.0" | ||
] | ||
} |
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,5 @@ | ||
diff -Naur a/usr/share/patchmanager-test/testfile-added-by-patch-too-new b/usr/share/patchmanager-test/testfile-added-by-patch-too-new | ||
--- a/usr/share/patchmanager-test/testfile-added-by-patch-too-new 1970-01-01 01:00:00.000000000 +0100 | ||
+++ b/usr/share/patchmanager-test/testfile-added-by-patch-too-new 2023-04-15 18:55:53.475630091 +0200 | ||
@@ -0,0 +1 @@ | ||
+this was added by patch-too-new patch |
1 change: 1 addition & 0 deletions
1
.../patch-too-old/patch-source/b/usr/share/patchmanager-test/testfile-added-by-patch-too-old
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 @@ | ||
this was added by patch-too-old patch |
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,6 @@ | ||
TEMPLATE = aux | ||
|
||
patch.path = /usr/share/patchmanager/patches/pm-test-case-patch-too-old | ||
patch.files = patch/unified_diff.patch patch/patch.json | ||
|
||
INSTALLS += patch |
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,11 @@ | ||
{ | ||
"description": "Patchmanager Test Case: The version specified in the meta data is too old.\n PM should not allow to activate or install it.", | ||
"name": "pm-test-patch-too-old", | ||
"display_name": "PM Test Case 4-1: Too Old", | ||
"category": "other", | ||
"author": "patchmanager", | ||
"version": "1.0.0", | ||
"compatible": [ | ||
"0.0.1.10" | ||
] | ||
} |
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,5 @@ | ||
diff -Naur a/usr/share/patchmanager-test/testfile-added-by-patch-too-old b/usr/share/patchmanager-test/testfile-added-by-patch-too-old | ||
--- a/usr/share/patchmanager-test/testfile-added-by-patch-too-old 1970-01-01 01:00:00.000000000 +0100 | ||
+++ b/usr/share/patchmanager-test/testfile-added-by-patch-too-old 2023-04-15 18:46:39.415912679 +0200 | ||
@@ -0,0 +1 @@ | ||
+this was added by patch-too-old patch |
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