diff options
| author | Ineiev <[email protected]> | 2025-10-02 12:17:48 +0000 |
|---|---|---|
| committer | Ineiev <[email protected]> | 2025-10-10 09:12:44 +0000 |
| commit | 67e8243f405dc86e3d2806ae92f56702db23371d (patch) | |
| tree | dd9bf8e25b5029b84a2620ab3d960f71f33972b1 /frontend | |
| parent | 1c1915938b240582c9db50023d38d67e95e61bc2 (diff) | |
| download | savane-master.tar.gz | |
Diffstat (limited to 'frontend')
| -rw-r--r-- | frontend/Makefile.am | 3 | ||||
| -rw-r--r-- | frontend/php/testing/internal_strftime.php | 52 |
2 files changed, 54 insertions, 1 deletions
diff --git a/frontend/Makefile.am b/frontend/Makefile.am index 5409e8cf..ae1ad68b 100644 --- a/frontend/Makefile.am +++ b/frontend/Makefile.am @@ -558,6 +558,7 @@ ordinary_files = \ php/testing/account.php \ php/testing/error.php \ php/testing/format_date.php \ + php/testing/internal_strftime.php \ php/testing/gpg/ecc25519-pub.asc \ php/testing/gpg/ecc25519-priv.asc \ php/testing/gpg/rsa-pub.asc \ @@ -776,7 +777,7 @@ installcheck-local: $(installcheck_local_targets) installcheck-run-tests: ; \ cd $(dest_dir)/php; \ - for t in account error format_date markup sane utils; do \ + for t in account error format_date internal_strftime markup sane utils; do \ res=`$(PHP) -c $(DESTDIR)$(confdir)/php.ini \ testing/$$t.php -- INSTALLCHECK BINDIR=$(DESTDIR)$(bindir) \ || echo Exit code of \ diff --git a/frontend/php/testing/internal_strftime.php b/frontend/php/testing/internal_strftime.php new file mode 100644 index 00000000..d1499980 --- /dev/null +++ b/frontend/php/testing/internal_strftime.php @@ -0,0 +1,52 @@ +<?php +# Test utils_format_date () with PHP's strftime implementation (if exists). +# +# Copyright (C) 1999, 2000 The SourceForge Crew +# Copyright (C) 2000-2006 Mathieu Roy +# Copyright (C) 2014, 2016, 2017 Assaf Gordon +# Copyright (C) 2001-2011, 2013, 2017 Sylvain Beucler +# Copyright (C) 2013, 2014, 2017-2025 Ineiev +# +# This file is part of Savane. +# +# Code written before 2008-03-30 (commit 8b757b2565ff) is distributed +# under the terms of the GNU General Public license version 3 or (at your +# option) any later version; further contributions are covered by +# the GNU Affero General Public license version 3 or (at your option) +# any later version. The license notices for the AGPL and the GPL follow. +# +# Savane is free software: you can redistribute it and/or modify +# it under the terms of the GNU Affero General Public License as +# published by the Free Software Foundation, either version 3 of the +# License, or (at your option) any later version. +# +# Savane is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU Affero General Public License for more details. +# +# You should have received a copy of the GNU Affero General Public License +# along with this program. If not, see <https://www.gnu.org/licenses/>. +# +# Savane is free software: you can redistribute it and/or modify +# it under the terms of the GNU General Public License as +# published by the Free Software Foundation, either version 3 of the +# License, or (at your option) any later version. +# +# Savane is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU General Public License for more details. +# +# You should have received a copy of the GNU General Public License +# along with this program. If not, see <https://www.gnu.org/licenses/>. +# +# Invocation: +# +# php testing/internal_strftime.php +# +# In case of fail, diagnostic text is output to stdout. + +$sys_use_strftime = true; +include ('testing/format_date.php'); +?> |
