File tree Expand file tree Collapse file tree 3 files changed +65
-7
lines changed
Expand file tree Collapse file tree 3 files changed +65
-7
lines changed Original file line number Diff line number Diff line change 1+ #! /bin/bash
2+ #
3+ # This file is part of the phpBB Forum Software package.
4+ #
5+ # @copyright (c) phpBB Limited <https://www.phpbb.com>
6+ # @license GNU General Public License, version 2 (GPL-2.0)
7+ #
8+ # For full copyright and license information, please see
9+ # the docs/CREDITS.txt file.
10+ #
11+ set -e
12+
13+ root=" $1 "
14+ extname=" $2 "
15+ path=" ${root} phpBB/ext/${extname} /"
16+
17+ # Check the permissions of the files
18+
19+ # The following variables MUST NOT contain any wildcard
20+ # Directories to skip
21+ directories_skipped=" -path ${path} develop -o -path ${path} vendor"
22+
23+ # Files to skip
24+ files_skipped=" -false"
25+
26+ # Files which have to be executable
27+ executable_files=" -path ${path} bin/* -o -path ${path} install/phpbbcli.php"
28+
29+ incorrect_files=$( \
30+ find ${path} \
31+ ' (' \
32+ ' (' \
33+ ${directories_skipped} \
34+ ' )' \
35+ -a -type d -prune -a -type f \
36+ ' )' -o \
37+ ' (' \
38+ -type f -a \
39+ -not ' (' \
40+ ${files_skipped} \
41+ ' )' -a \
42+ ' (' \
43+ ' (' \
44+ ' (' \
45+ ${executable_files} \
46+ ' )' -a \
47+ -not -perm /100 \
48+ ' )' -o \
49+ ' (' \
50+ -not ' (' \
51+ ${executable_files} \
52+ ' )' -a \
53+ -perm /111 \
54+ ' )' \
55+ ' )' \
56+ ' )' \
57+ )
58+
59+ if [ " ${incorrect_files} " != ' ' ]
60+ then
61+ echo " The following files do not have proper permissions:" ;
62+ ls -la ${incorrect_files}
63+ exit 1;
64+ fi
Original file line number Diff line number Diff line change 2727 </groups >
2828
2929 <php >
30- <!-- server name="PHPBB_TEST_DBMS" value="phpbb\db\driver\sqlite3" /-->
31- <!-- server name="PHPBB_TEST_DBHOST" value="../phpbb_unit_tests.sqlite3" /-->
32- <!-- server name="PHPBB_TEST_DBPORT" value="" /-->
33- <!-- server name="PHPBB_TEST_DBNAME" value="" /-->
34- <!-- server name="PHPBB_TEST_DBUSER" value="" /-->
35- <!-- server name="PHPBB_TEST_DBPASSWD" value="" /-->
3630 <server name =" PHPBB_TEST_REDIS_HOST" value =" localhost" />
3731 <server name =" PHPBB_TEST_MEMCACHED_HOST" value =" localhost" />
3832 <server name =" PHPBB_TEST_TABLE_PREFIX" value =" phpbb_" />
Original file line number Diff line number Diff line change @@ -17,6 +17,6 @@ EXTNAME=$1
1717mkdir --parents phpBB/ext/$EXTNAME
1818cp -R ../tmp/* phpBB/ext/$EXTNAME
1919
20- # Move the extensions .github/phpunit-*-travis.xml files in place
20+ # Move the test files for extensions in place
2121cp -R .github/* .xml phpBB/ext/$EXTNAME /.github
2222cp -R .github/* .sh phpBB/ext/$EXTNAME /.github
You can’t perform that action at this time.
0 commit comments