Skip to content

Commit c04a8f3

Browse files
committed
Add individual CONFLICT sections to have parallel testing
1 parent 4b746d8 commit c04a8f3

26 files changed

+59
-71
lines changed

ext/dba/tests/CONFLICTS

Lines changed: 0 additions & 2 deletions
This file was deleted.

ext/dba/tests/dba007.phpt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,8 @@ dba
88
if (!function_exists('dba_list')) die('skip dba_list() not available');
99
die("info $HND handler used");
1010
?>
11+
--CONFLICTS--
12+
dba
1113
--FILE--
1214
<?php
1315
require_once(__DIR__ .'/test.inc');

ext/dba/tests/dba009.phpt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,8 @@ dba
77
require_once(__DIR__ .'/skipif.inc');
88
print("info $HND handler used");
99
?>
10+
--CONFLICTS--
11+
dba
1012
--FILE--
1113
<?php
1214
require_once(__DIR__ .'/test.inc');

ext/dba/tests/dba015.phpt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,8 @@ $handler = "flatfile";
88
require_once(__DIR__ .'/skipif.inc');
99
die("info $HND handler used");
1010
?>
11+
--CONFLICTS--
12+
dba
1113
--FILE--
1214
<?php
1315

ext/dba/tests/dba_cdb_001.phpt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,8 @@ $handler = 'cdb';
88
require_once(__DIR__ .'/skipif.inc');
99
die('info CDB does not support replace or delete');
1010
?>
11+
--CONFLICTS--
12+
dba
1113
--FILE--
1214
<?php
1315

ext/dba/tests/dba_db4_001.phpt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@
22
DBA DB4 New File Creation open("c") & Insert Test
33
--EXTENSIONS--
44
dba
5+
--CONFLICTS--
6+
dba
57
--SKIPIF--
68
<?php
79
$handler = "db4";

ext/dba/tests/dba_db4_002.phpt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@
22
DBA DB4 New File Creation open("n") & Insert Test
33
--EXTENSIONS--
44
dba
5+
--CONFLICTS--
6+
dba
57
--SKIPIF--
68
<?php
79
$handler = "db4";

ext/dba/tests/dba_db4_003.phpt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@
22
DBA DB4 File Creation open("c") with existing file
33
--EXTENSIONS--
44
dba
5+
--CONFLICTS--
6+
dba
57
--SKIPIF--
68
<?php
79
$handler = "db4";

ext/dba/tests/dba_db4_004.phpt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@
22
DBA DB4 Truncate Existing File open("n")
33
--EXTENSIONS--
44
dba
5+
--CONFLICTS--
6+
dba
57
--SKIPIF--
68
<?php
79
$handler = "db4";

ext/dba/tests/dba_db4_005.phpt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@
22
DBA DB4 New File Creation popen("c") & Insert Test
33
--EXTENSIONS--
44
dba
5+
--CONFLICTS--
6+
dba
57
--SKIPIF--
68
<?php
79
$handler = "db4";

ext/dba/tests/dba_db4_006.phpt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@
22
DBA DB4 New File Creation popen("n") & Insert Test
33
--EXTENSIONS--
44
dba
5+
--CONFLICTS--
6+
dba
57
--SKIPIF--
68
<?php
79
$handler = "db4";

ext/dba/tests/dba_db4_007.phpt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@
22
DBA DB4 File Creation popen("c") with existing invalid file
33
--EXTENSIONS--
44
dba
5+
--CONFLICTS--
6+
dba
57
--SKIPIF--
68
<?php
79
$handler = "db4";

ext/dba/tests/dba_db4_008.phpt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@
22
DBA DB4 Truncate Existing File popen("n")
33
--EXTENSIONS--
44
dba
5+
--CONFLICTS--
6+
dba
57
--SKIPIF--
68
<?php
79
$handler = "db4";

ext/dba/tests/dba_db4_009.phpt

Lines changed: 13 additions & 31 deletions
Original file line numberDiff line numberDiff line change
@@ -4,50 +4,32 @@ DBA DB4 Multiple File Creation Test
44
dba
55
--SKIPIF--
66
<?php
7-
$handler = "db4";
8-
require_once(__DIR__ .'/skipif.inc');
9-
die("info $HND handler used");
7+
require_once __DIR__ . '/setup/setup_dba_tests.inc';
8+
check_skip('db4');
109
?>
1110
--FILE--
1211
<?php
1312
$handler = "db4";
14-
require_once(__DIR__ .'/test.inc');
1513
echo "database handler: $handler\n";
16-
$db_file1 = $db_filename1 = __DIR__.'/test1.dbm';
17-
$db_file2 = $db_filename2 = __DIR__.'/test2.dbm';
18-
if (($db_file=dba_open($db_file, "n", $handler))!==FALSE) {
19-
echo "database file created\n";
20-
} else {
21-
echo "$db_file does not exist\n";
22-
}
23-
if (($db_file1=dba_open($db_file1, "n", $handler))!==FALSE) {
24-
echo "database file created\n";
25-
} else {
26-
echo "$db_file does not exist\n";
27-
}
28-
if (($db_file2=dba_open($db_file2, "n", $handler))!==FALSE) {
29-
echo "database file created\n";
30-
} else {
31-
echo "$db_file does not exist\n";
32-
}
14+
$db_file1 = __DIR__.'/test1.dbm';
15+
$db_file2 = __DIR__.'/test2.dbm';
16+
$db_file1 = dba_open($db_file1, "n", $handler);
17+
$db_file2 = dba_open($db_file2, "n", $handler);
3318
var_dump(dba_list());
34-
dba_close($db_file);
19+
dba_close($db_file1);
20+
dba_close($db_file2);
3521

36-
@unlink($db_filename1);
37-
@unlink($db_filename2);
3822
?>
3923
--CLEAN--
4024
<?php
41-
require(__DIR__ .'/clean.inc');
25+
$db_filename1 = __DIR__.'/test1.dbm';
26+
$db_filename2 = __DIR__.'/test2.dbm';
27+
@unlink($db_filename1);
28+
@unlink($db_filename2);
4229
?>
4330
--EXPECTF--
4431
database handler: db4
45-
database file created
46-
database file created
47-
database file created
48-
array(3) {
49-
[%d]=>
50-
string(%d) "%stest0.dbm"
32+
array(2) {
5133
[%d]=>
5234
string(%d) "%stest1.dbm"
5335
[%d]=>

ext/dba/tests/dba_db4_011.phpt

Lines changed: 0 additions & 38 deletions
This file was deleted.

ext/dba/tests/dba_db4_012.phpt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@
22
DBA DB4 New File Creation open("rl")
33
--EXTENSIONS--
44
dba
5+
--CONFLICTS--
6+
dba
57
--SKIPIF--
68
<?php
79
$handler = "db4";

ext/dba/tests/dba_db4_013.phpt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@
22
DBA DB4 File open("rl") & Insert Test
33
--EXTENSIONS--
44
dba
5+
--CONFLICTS--
6+
dba
57
--SKIPIF--
68
<?php
79
$handler = "db4";

ext/dba/tests/dba_db4_014.phpt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@
22
DBA DB4 File open("wl") & Insert Test
33
--EXTENSIONS--
44
dba
5+
--CONFLICTS--
6+
dba
57
--SKIPIF--
68
<?php
79
$handler = "db4";

ext/dba/tests/dba_db4_015.phpt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@
22
DBA DB4 File open("wl") & Insert Test
33
--EXTENSIONS--
44
dba
5+
--CONFLICTS--
6+
dba
57
--SKIPIF--
68
<?php
79
$handler = "db4";

ext/dba/tests/dba_db4_016.phpt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@
22
DBA DB4 File Creation popen("c") with existing valid file
33
--EXTENSIONS--
44
dba
5+
--CONFLICTS--
6+
dba
57
--SKIPIF--
68
<?php
79
$handler = "db4";

ext/dba/tests/dba_db4_017.phpt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@
22
DBA DB4 file creation dba_open("cd")
33
--EXTENSIONS--
44
dba
5+
--CONFLICTS--
6+
dba
57
--SKIPIF--
68
<?php
79
$handler = "db4";

ext/dba/tests/dba_db4_018.phpt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@
22
DBA DB4 with persistent connections
33
--EXTENSIONS--
44
dba
5+
--CONFLICTS--
6+
dba
57
--SKIPIF--
68
<?php
79
$handler = "db4";

ext/dba/tests/dba_db4_handlers.phpt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@
22
DBA DB4 Handler Test
33
--EXTENSIONS--
44
dba
5+
--CONFLICTS--
6+
dba
57
--SKIPIF--
68
<?php
79
$handler="db4";

ext/dba/tests/dba_db4_optimize.phpt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@
22
DBA DB4 Optimize Test
33
--EXTENSIONS--
44
dba
5+
--CONFLICTS--
6+
dba
57
--SKIPIF--
68
<?php
79
$handler = "db4";

ext/dba/tests/dba_db4_sync.phpt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@
22
DBA DB4 Sync Test
33
--EXTENSIONS--
44
dba
5+
--CONFLICTS--
6+
dba
57
--SKIPIF--
68
<?php
79
$handler = "db4";

ext/dba/tests/dba_sync.phpt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@
22
DBA Sync Test
33
--EXTENSIONS--
44
dba
5+
--CONFLICTS--
6+
dba
57
--SKIPIF--
68
<?php
79
require_once __DIR__ .'/skipif.inc';

0 commit comments

Comments
 (0)