This is an automated email from the ASF dual-hosted git repository.

ronny pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/couchdb-glazier.git


The following commit(s) were added to refs/heads/main by this push:
     new f80ef97  Update exclusion list for Windows test script
f80ef97 is described below

commit f80ef973a45f8bc9c225451ad7d53951594d63e8
Author: Ronny Berndt <[email protected]>
AuthorDate: Sat Jan 24 17:32:27 2026 +0100

    Update exclusion list for Windows test script
    
    Added additional test files to the exclusion list for Windows.
---
 bin/exclude_tests_win.ps1 | 147 +++++++++++++++++++++++-----------------------
 1 file changed, 75 insertions(+), 72 deletions(-)

diff --git a/bin/exclude_tests_win.ps1 b/bin/exclude_tests_win.ps1
index 98aa377..bf8451f 100644
--- a/bin/exclude_tests_win.ps1
+++ b/bin/exclude_tests_win.ps1
@@ -1,72 +1,75 @@
-# Licensed under the Apache License, Version 2.0 (the "License"); you may not
-# use this file except in compliance with the License. You may obtain a copy of
-# the License at
-#
-#   http://www.apache.org/licenses/LICENSE-2.0
-#
-# Unless required by applicable law or agreed to in writing, software
-# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
-# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
-# License for the specific language governing permissions and limitations under
-# the License.
-
-
-# Helper script for excluding some tests which fail under Windows
-# see https://github.com/apache/couchdb/issues/4398
-
-
-<#
-.SYNOPSIS
-    Little helper script to exclude some CouchDB before doing a "make check"
-
-.DESCRIPTION
-    This command renames some test files to get excluded/included from running 
tests
-
-    -IncludeTests       Include already excluded tests for the next test run
-    -Path <string>      Path to the CouchDB source tree directory
-
-.LINK
-    https://couchdb.apache.org/
-#>
-
-[CmdletBinding()]
-param(
-    [Parameter(Mandatory=$true, ValueFromPipeline=$true, 
ValueFromPipelineByPropertyName=$true)]
-    [ValidateNotNullOrEmpty()]
-    [string]$Path,
-
-    [switch]$IncludeTests = $false     #include tests again
-)
-
-$excludeTests = @(
-    "src\couch\test\eunit\couchdb_attachments_tests.erl",
-    "src\chttpd\test\eunit\chttpd_db_test.erl",
-    "src\chttpd\test\eunit\chttpd_dbs_info_test.erl",
-    "src\chttpd\test\eunit\chttpd_security_tests.erl",
-    "src\chttpd\test\eunit\chttpd_socket_buffer_size_test.erl",
-    "src\chttpd\test\eunit\chttpd_bulk_get_test.erl"
-)
-
-function renameFile ([string]$file, [bool]$exclude = $true) {
-    if($exclude) {
-        if( Test-Path -path $file ) {
-            Write-Host "$file is excluded during testing..."
-            Rename-Item -path $file -NewName "$file.old"
-        }
-    } else {
-        if( Test-Path -path "$file.old" ) {
-            Write-Host "$file is considered during testing..."
-            Rename-Item -path "$file.old" -NewName "$file"
-        }
-    }
-}
-
-foreach ($test in $excludeTests)
-{
-    $file = Join-Path (Resolve-Path $Path) $test
-    if($IncludeTests) {
-        renameFile $file $false
-    } else {
-        renameFile $file $true
-    }
-}
+# Licensed under the Apache License, Version 2.0 (the "License"); you may not
+# use this file except in compliance with the License. You may obtain a copy of
+# the License at
+#
+#   http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+# License for the specific language governing permissions and limitations under
+# the License.
+
+
+# Helper script for excluding some tests which fail under Windows
+# see https://github.com/apache/couchdb/issues/4398
+
+
+<#
+.SYNOPSIS
+    Little helper script to exclude some CouchDB before doing a "make check"
+
+.DESCRIPTION
+    This command renames some test files to get excluded/included from running 
tests
+
+    -IncludeTests       Include already excluded tests for the next test run
+    -Path <string>      Path to the CouchDB source tree directory
+
+.LINK
+    https://couchdb.apache.org/
+#>
+
+[CmdletBinding()]
+param(
+    [Parameter(Mandatory=$true, ValueFromPipeline=$true, 
ValueFromPipelineByPropertyName=$true)]
+    [ValidateNotNullOrEmpty()]
+    [string]$Path,
+
+    [switch]$IncludeTests = $false     #include tests again
+)
+
+$excludeTests = @(
+    "src\couch\test\eunit\couchdb_attachments_tests.erl",
+    "src\chttpd\test\eunit\chttpd_db_test.erl",
+    "src\chttpd\test\eunit\chttpd_dbs_info_test.erl",
+    "src\chttpd\test\eunit\chttpd_security_tests.erl",
+    "src\chttpd\test\eunit\chttpd_socket_buffer_size_test.erl",
+    "src\chttpd\test\eunit\chttpd_bulk_get_test.erl",
+    "src\chttpd\test\eunit\chttpd_db_attachment_size_tests.erl",
+    "src\mem3\test\eunit\mem3_reshard_api_test.erl",
+    "test\elixir\test\users_db_security_test.exs"
+)
+
+function renameFile ([string]$file, [bool]$exclude = $true) {
+    if($exclude) {
+        if( Test-Path -path $file ) {
+            Write-Host "$file is excluded during testing..."
+            Rename-Item -path $file -NewName "$file.old"
+        }
+    } else {
+        if( Test-Path -path "$file.old" ) {
+            Write-Host "$file is considered during testing..."
+            Rename-Item -path "$file.old" -NewName "$file"
+        }
+    }
+}
+
+foreach ($test in $excludeTests)
+{
+    $file = Join-Path (Resolve-Path $Path) $test
+    if($IncludeTests) {
+        renameFile $file $false
+    } else {
+        renameFile $file $true
+    }
+}

Reply via email to