Public bug reported:

315s autopkgtest [14:17:42]: test command1: bash -v ./debian/qualify-clang.sh
315s autopkgtest [14:17:42]: test command1: [-----------------------
316s 
316s ===============================================
316s LLVM Version  Installation Instructions
316s ===============================================
316s 
316s Detailed version: 
316s 
316s Step 1: Remove potentially conflicting packages
316s ---------------------------------------------
316s Run the following command to remove existing packages:
316s sudo apt --purge remove 'libomp5' 'libc++*dev' 'libc++*' 'python3-lldb-*' 
'llvm-libunwind1' libunwind-*-dev' 'libclc-*' 'libclc-*dev' 'libmlir-*'
316s 
316s Step 2: Install new packages
316s -------------------------
316s You have two options for installation:
316s 
316s Option 1: Using dpkg (if you have the .deb files)
316s ----------------------------------------
316s sudo dpkg -i 
316s 
316s Option 2: Using apt (recommended)
316s ----------------------------
316s sudo apt-get install 
316s 
316s #!/usr/bin/env bats
316s 
316s setup() {
316s 
316s     load '/usr/lib/bats/bats-support/load' # this is required by 
bats-assert!
316s     load '/usr/lib/bats/bats-assert/load'
316s     bats_require_minimum_version 1.5.0
316s 
316s     # Common setup
316s     VERSION=$(dpkg-parsechangelog | sed -rne "s,^Version: 
1:([0-9]+).*,\1,p")
316s     DETAILED_VERSION=$(dpkg-parsechangelog | sed -rne "s,^Version: 
1:([0-9.]+)(~|-)(.*),\1\2\3,p")
316s     DEB_HOST_ARCH=$(dpkg-architecture -qDEB_HOST_ARCH)
316s 
316s     # Define the package list
316s     LIST="
316s    bolt-${VERSION}_${DETAILED_VERSION}_amd64.deb
316s    clang-${VERSION}_${DETAILED_VERSION}_amd64.deb
316s    clang-tidy-${VERSION}_${DETAILED_VERSION}_amd64.deb
316s    clang-tools-${VERSION}_${DETAILED_VERSION}_amd64.deb
316s    clangd-${VERSION}_${DETAILED_VERSION}_amd64.deb
316s    flang-${VERSION}_${DETAILED_VERSION}_amd64.deb
316s    libbolt-${VERSION}-dev_${DETAILED_VERSION}_amd64.deb
316s    libc++-${VERSION}-dev-wasm32_${DETAILED_VERSION}_all.deb
316s    libc++-${VERSION}-dev_${DETAILED_VERSION}_amd64.deb
316s    libc++1_${DETAILED_VERSION}_amd64.deb
316s    libc++abi-${VERSION}-dev-wasm32_${DETAILED_VERSION}_all.deb
316s    libc++abi-${VERSION}-dev_${DETAILED_VERSION}_amd64.deb
316s    libc++abi1_${DETAILED_VERSION}_amd64.deb
316s    libclang-${VERSION}-dev_${DETAILED_VERSION}_amd64.deb
316s    libclang-common-${VERSION}-dev_${DETAILED_VERSION}_amd64.deb
316s    libclang-cpp${VERSION}-dev_${DETAILED_VERSION}_amd64.deb
316s    libclang-cpp${VERSION}_${DETAILED_VERSION}_amd64.deb
316s    libclang-rt-${VERSION}-dev-wasm32_${DETAILED_VERSION}_all.deb
316s    libclang-rt-${VERSION}-dev-wasm64_${DETAILED_VERSION}_all.deb
316s    libclang-rt-${VERSION}-dev_${DETAILED_VERSION}_amd64.deb
316s    libclang1-${VERSION}_${DETAILED_VERSION}_amd64.deb
316s    libclc-${VERSION}-dev_${DETAILED_VERSION}_all.deb
316s    libclc-${VERSION}_${DETAILED_VERSION}_all.deb
316s    libflang-${VERSION}-dev_${DETAILED_VERSION}_amd64.deb
316s    libfuzzer-${VERSION}-dev_${DETAILED_VERSION}_amd64.deb
316s    liblldb-${VERSION}-dev_${DETAILED_VERSION}_amd64.deb
316s    liblldb-${VERSION}_${DETAILED_VERSION}_amd64.deb
316s    libllvm${VERSION}_${DETAILED_VERSION}_amd64.deb
316s    libllvmlibc-${VERSION}-dev_${DETAILED_VERSION}_amd64.deb
316s    libmlir-${VERSION}-dev_${DETAILED_VERSION}_amd64.deb
316s    libmlir-${VERSION}_${DETAILED_VERSION}_amd64.deb
316s    libomp-${VERSION}-dev_${DETAILED_VERSION}_amd64.deb
316s    libomp5_${DETAILED_VERSION}_amd64.deb
316s    libpolly-${VERSION}-dev_${DETAILED_VERSION}_amd64.deb
316s    libunwind-${VERSION}-dev_${DETAILED_VERSION}_amd64.deb
316s    lld-${VERSION}_${DETAILED_VERSION}_amd64.deb
316s    lldb-${VERSION}_${DETAILED_VERSION}_amd64.deb
316s    llvm-${VERSION}-dev_${DETAILED_VERSION}_amd64.deb
316s    llvm-${VERSION}-linker-tools_${DETAILED_VERSION}_amd64.deb
316s    llvm-${VERSION}-runtime_${DETAILED_VERSION}_amd64.deb
316s    llvm-${VERSION}-tools_${DETAILED_VERSION}_amd64.deb
316s    llvm-${VERSION}_${DETAILED_VERSION}_amd64.deb
316s    llvm-libunwind1_${DETAILED_VERSION}_amd64.deb
316s    python3-clang-${VERSION}_${DETAILED_VERSION}_amd64.deb
316s    python3-lldb-${VERSION}_${DETAILED_VERSION}_amd64.deb
316s     "
316s }
316s 
316s @test "Print LLVM installation information" {
316s ./debian/qualify-clang.sh: line 64: @test: command not found
316s     echo
316s     echo "==============================================="
316s     echo "LLVM Version ${VERSION} Installation Instructions"
316s     echo "==============================================="
316s     echo
316s     echo "Detailed version: ${DETAILED_VERSION}"
316s     echo
316s 
316s     echo "Step 1: Remove potentially conflicting packages"
316s     echo "---------------------------------------------"
316s     echo "Run the following command to remove existing packages:"
316s     echo "sudo apt --purge remove 'libomp5' 'libc++*dev' 'libc++*' 
'python3-lldb-*' 'llvm-libunwind1' libunwind-*-dev' 'libclc-*' 'libclc-*dev' 
'libmlir-*'"
316s     echo
316s 
316s     echo "Step 2: Install new packages"
316s     echo "-------------------------"
316s     echo "You have two options for installation:"
316s     echo
316s 
316s     echo "Option 1: Using dpkg (if you have the .deb files)"
316s     echo "----------------------------------------"
316s     echo "sudo dpkg -i $LIST"
316s     echo
316s 
316s     echo "Option 2: Using apt (recommended)"
316s     echo "----------------------------"
316s     L=""
316s     for f in $LIST; do
316s         L="$L $(echo $f|cut -d_ -f1)"
316s     done
316s     echo "sudo apt-get install $L"
316s     echo
316s     run clang-$VERSION --version
316s ./debian/qualify-clang.sh: line 97: run: command not found
316s     assert_output -p 'clang version'
316s ./debian/qualify-clang.sh: line 98: assert_output: command not found
316s }
316s ./debian/qualify-clang.sh: line 99: syntax error near unexpected token `}'
316s ./debian/qualify-clang.sh: line 99: `}'
316s autopkgtest [14:17:43]: test command1: -----------------------]
317s command1             FAIL non-zero exit status 2
317s autopkgtest [14:17:44]: test command1:  - - - - - - - - - - results - - - 
- - - - - - -

debian/tests/control invokes the test suite using bash, but the test
expects bats. Bash does not recognize bats commands.

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

** Affects: llvm-toolchain-19 (Ubuntu Stonking)
     Importance: Undecided
         Status: New


** Tags: foundations-todo

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

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

Title:
  autopkgtest /debian/qualify-clang.sh: assert_output: command not found

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


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

Reply via email to