| 1 |
Fromscip-debian debian ikiwiki 3.20260201-3 ikiwiki/patches/`fix-po.t-when-testing-the-installed-ikiw.patch`#From.: intrigeri <[email protected]scip-debian . . . identity/`[email protected]`.> |
| 2 |
Datescip-debian debian ikiwiki 3.20260201-3 ikiwiki/patches/`fix-po.t-when-testing-the-installed-ikiw.patch`#Date.: Mon, 2 Feb 2026 13:35:43 +0000 |
| 3 |
X-Dgit-Generatedscip-debian debian ikiwiki 3.20260201-3 ikiwiki/patches/`fix-po.t-when-testing-the-installed-ikiw.patch`#X-Dgit-Generated.: 3.20260201-3 92ef2bf3407f2234a6f22d5957a7c0fc2db9a99d |
| 4 |
Subjectscip-debian debian ikiwiki 3.20260201-3 ikiwiki/patches/`fix-po.t-when-testing-the-installed-ikiw.patch`#Subject.: Fix po.t when testing the installed ikiwiki rather a source tree |
| 5 |
|
| 6 |
|
| 7 |
--- |
| 8 |
|
| 9 |
diff --git a/t/po.tscip-debian debian ikiwiki 3.20260201-3 ikiwiki/upstream/`t/po.t`: b/t/po.tscip-debian debian ikiwiki 3.20260201-3 ikiwiki/upstream/`t/po.t`: |
| 10 |
index 106ad0280..9affa46ad 100755 |
| 11 |
--- a/t/po.t |
| 12 |
+++ b/t/po.t |
| 13 |
@@ -553,24 +553,38 @@ like($output{'utf8.fr'}, qr{ |
| 14 |
|
| 15 |
### Integration tests |
| 16 |
|
| 17 |
|
| 18 |
|
| 19 |
|
| 20 |
|
| 21 |
|
| 22 |
|
| 23 |
|
| 24 |
|
| 25 |
|
| 26 |
|
| 27 |
|
| 28 |
|
| 29 |
|
| 30 |
|
| 31 |
|
| 32 |
|
| 33 |
+my $installed = $ENV{INSTALLED_TESTS}; |
| 34 |
+ |
| 35 |
+my @command; |
| 36 |
+my @options = ( |
| 37 |
+ qw( |
| 38 |
+ --underlaydir=/dev/null |
| 39 |
+ --set underlaydirbase=/dev/null |
| 40 |
+ --no-discussion |
| 41 |
+ --plugin html |
| 42 |
+ --plugin po |
| 43 |
+ ), |
| 44 |
+ '--set-yaml', 'po_master_language={code: en, name: English}', |
| 45 |
+ '--set-yaml', 'po_slave_languages={es: Castellano, fr: Français}', |
| 46 |
+ '--set-yaml', 'po_translatable_pages=[html1, html2]', |
| 47 |
+ '--set', 'po_translatable_pages="index or test1 or test2 or html1 or html2 or translatable or debian* or utf8"', |
| 48 |
); |
| 49 |
|
| 50 |
+if ($installed) { |
| 51 |
+ @command = ('ikiwiki', @options); |
| 52 |
+} |
| 53 |
+else { |
| 54 |
+ ok(! system("make -s ikiwiki.out")); |
| 55 |
+ @command = ( |
| 56 |
+ "perl", "-I".getcwd(), |
| 57 |
+ qw( |
| 58 |
+ ./ikiwiki.out |
| 59 |
+ --templatedir=templates |
| 60 |
+ ), |
| 61 |
+ @options, |
| 62 |
+ ); |
| 63 |
+} |
| 64 |
+ |
| 65 |
sub runiki { |
| 66 |
my $testdesc=shift; |
| 67 |
ok((! system(@command, $config{srcdir}, $config{destdir}, @_)), $testdesc); |