Skip to content

Commit 0374cf0

Browse files
committed
Add --file-cache-prime/use options to run-tests
--file-cache-prime populates the file cache, --file-cache-use uses the file cache. And fix a number of tests to run under file cache or disabled timestamp validation.
1 parent 40b59ce commit 0374cf0

14 files changed

+51
-6
lines changed

ext/ffi/tests/300.phpt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ opcache.enable=1
1010
opcache.enable_cli=1
1111
opcache.optimization_level=-1
1212
opcache.preload={PWD}/preload.inc
13+
opcache.file_cache_only=0
1314
--FILE--
1415
<?php
1516
$ffi = FFI::scope("TEST_300");

ext/phar/tests/create_new_and_modify.phpt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ Phar: create and modify phar
55
--INI--
66
phar.readonly=0
77
phar.require_hash=1
8+
opcache.validate_timestamps=1
89
--FILE--
910
<?php
1011

ext/phar/tests/delete_in_phar.phpt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ Phar: delete a file within a .phar
55
--INI--
66
phar.readonly=0
77
phar.require_hash=0
8+
opcache.validate_timestamps=1
89
--FILE--
910
<?php
1011
$fname = __DIR__ . '/' . basename(__FILE__, '.php') . '.phar.php';

ext/phar/tests/delete_in_phar_confirm.phpt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ Phar: delete a file within a .phar (confirm disk file is changed)
55
--INI--
66
phar.readonly=0
77
phar.require_hash=0
8+
opcache.validate_timestamps=1
89
--FILE--
910
<?php
1011
$fname = __DIR__ . '/' . basename(__FILE__, '.php') . '.phar.php';

ext/phar/tests/front.phar.phpt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
Phar front controller with mounted external file
33
--INI--
44
default_charset=UTF-8
5+
opcache.validate_timestamps=1
56
--SKIPIF--
67
<?php if (!extension_loaded("phar")) die("skip"); ?>
78
--ENV--

ext/phar/tests/tar/create_new_and_modify.phpt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ Phar: create and modify tar-based phar
44
<?php if (!extension_loaded("phar")) die("skip"); ?>
55
--INI--
66
phar.readonly=0
7+
opcache.validate_timestamps=1
78
--FILE--
89
<?php
910

ext/phar/tests/tar/delete_in_phar.phpt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ Phar: delete a file within a tar-based .phar
55
--INI--
66
phar.readonly=0
77
phar.require_hash=0
8+
opcache.validate_timestamps=1
89
--FILE--
910
<?php
1011

ext/phar/tests/tar/delete_in_phar_confirm.phpt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ Phar: delete a file within a tar-based .phar (confirm disk file is changed)
55
--INI--
66
phar.readonly=0
77
phar.require_hash=0
8+
opcache.validate_timestamps=1
89
--FILE--
910
<?php
1011

ext/phar/tests/tar/tar_004.phpt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ if (!extension_loaded("phar")) die("skip");
77
--INI--
88
phar.readonly=0
99
phar.require_hash=0
10+
opcache.validate_timestamps=1
1011
--FILE--
1112
<?php
1213
include __DIR__ . '/files/tarmaker.php.inc';

ext/phar/tests/zip/create_new_and_modify.phpt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ Phar: create and modify zip-based phar
44
<?php if (!extension_loaded("phar")) die("skip"); ?>
55
--INI--
66
phar.readonly=0
7+
opcache.validate_timestamps=1
78
--FILE--
89
<?php
910

0 commit comments

Comments
 (0)