File: 0018-Specify-locale-when-running-tests.patch

package info (click to toggle)
shaarli 0.12.1%2Bdfsg-8%2Bdeb12u1
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 5,392 kB
  • sloc: php: 27,786; javascript: 2,022; makefile: 106; xml: 62; sh: 29
file content (21 lines) | stat: -rw-r--r-- 600 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
From: James Valleroy <jvalleroy@mailbox.org>
Date: Fri, 7 Jan 2022 10:16:58 -0500
Subject: Specify locale when running tests

---
 Makefile | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/Makefile b/Makefile
index 8581161..ab59760 100644
--- a/Makefile
+++ b/Makefile
@@ -63,7 +63,7 @@ test: translate
 	@echo "PHPUNIT"
 	@echo "-------"
 	@mkdir -p sandbox
-	@phpunit --no-coverage --bootstrap tests/bootstrap.php --testsuite unit-tests
+	@LC_ALL="en_US.UTF-8" phpunit --no-coverage --bootstrap tests/bootstrap.php --testsuite unit-tests
 
 locale_test_%:
 	@UT_LOCALE=$*.utf8 \