Public bug reported:

405s autopkgtest [14:51:11]: test command1: ./debian/debian-llvm-testsuite.bats
405s autopkgtest [14:51:11]: test command1: [-----------------------
407s ERROR: Duplicate test name(s) in file 
"/tmp/autopkgtest.eRBOzD/build.HLb/src/debian/debian-llvm-testsuite.bats": 
test_Library_package_required_by_Mesa_must_be_Multi-2dArch-3a_same\ 
test_Packages_with_files_in_usr-2flib-2fllvm-2d-24VERSION_must_not_be_M-2dA-3a_sameautopkgtest
 [14:51:13]: test command1: -----------------------]
408s autopkgtest [14:51:14]: test command1:  - - - - - - - - - - results - - - 
- - - - - - -
408s command1             FAIL non-zero exit status 1

* This is a copy/paste error. The "Library package required by Mesa must
be Multi-Arch: same" test is duplicated. To fix, the test should only be
included in debian-llvm-testsuite.bats once:

diff --git a/debian/debian-llvm-testsuite.bats 
b/debian/debian-llvm-testsuite.bats
index 3c278bda7..3b7cd3f18 100755
--- a/debian/debian-llvm-testsuite.bats
+++ b/debian/debian-llvm-testsuite.bats
@@ -149,42 +149,6 @@ setup() {
     done
 }
 
-# https://bugs.debian.org/1115227
-@test "Library package required by Mesa must be Multi-Arch: same" {
-    run dpkg-query -W -f 'Multi-Arch'"libllvmVERSION:$DEB_HOST_ARCH"
-    assert_output 'same'
-    run -1 bats_pipe dpkg -L "libllvmVERSION:DEB_HOST_ARCH" \| grep 
"usr/lib/llvm-$VERSION"
-    assert_output ''
-}
-
-# https://bugs.debian.org/1100981, https://bugs.debian.org/1111182
-@test "Packages with files in usr/lib/llvm-$VERSION must not be M-A: same" {
-    for package in $(sed -ne 's/^Package: //p' debian/control); do
-        # skip Architecture: all (or more generally, not $DEB_HOST_ARCH)
-        if [ -z "(dpkg-query-W-f'{Architecture}\n' 
"package"|grep-F"DEB_HOST_ARCH")" ]; then
-            #echo "# $package not installed for $DEB_HOST_ARCH" >&3
-            continue
-        fi
-
-        # skip packages that are Architecture: any but not Multi-Arch: same
-        if [ "(dpkg-query-W-f'{Multi-Arch}' "package:DEB_HOST_ARCH")" != same 
]; then
-            #echo "# $package not Multi-Arch: same" >&3
-            continue
-        fi
-
-        case "$package" in
-            ("libclang-common-${VERSION}-dev")
-                #echo "# $package only contains shareable headers" >&3
-                continue
-                ;;
-        esac
-
-        #echo "# $package..." >&3
-        run -1 bats_pipe dpkg -L "package:DEB_HOST_ARCH" \| grep 
"usr/lib/llvm-$VERSION"
-        assert_output ''
-    done
-}
-
 @test "llvm-config does not export -W warnings" {
     run llvm-config-$VERSION --cxxflags
     refute_output -p " -W"

** Affects: llvm-toolchain-20 (Ubuntu)
     Importance: Undecided
     Assignee: Karl Smeltzer (karljs)
         Status: In Progress

** Affects: llvm-toolchain-20 (Ubuntu Resolute)
     Importance: Undecided
         Status: New

** Affects: llvm-toolchain-20 (Ubuntu Stonking)
     Importance: Undecided
         Status: In Progress


** Tags: foundations-todo

** Also affects: llvm-toolchain-20 (Ubuntu Resolute)
   Importance: Undecided
       Status: New

** Also affects: llvm-toolchain-20 (Ubuntu Stonking)
   Importance: Undecided
       Status: New

** Changed in: llvm-toolchain-20 (Ubuntu Stonking)
       Status: New => In Progress

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/2171030

Title:
  autopkgtests: Duplicate test name(s) in file
  "/tmp/autopkgtest.eRBOzD/build.HLb/src/debian/debian-llvm-
  testsuite.bats"

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/llvm-toolchain-20/+bug/2171030/+subscriptions


-- 
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to