diff options
author | coadde [Márcio Alexandre Silva Delgado] <coadde@parabola.nu> | 2015-08-26 04:39:17 -0300 |
---|---|---|
committer | coadde [Márcio Alexandre Silva Delgado] <coadde@parabola.nu> | 2015-08-26 04:39:17 -0300 |
commit | b878c56002c5777dcbf6d713b0002aead5169286 (patch) | |
tree | 63d81edf3a21bd76f78f872709f6da5ce5aae582 /extra/lukeshu-xbs/test/test.d/create-filelists.sh | |
parent | e1f1ba1883d5cd76f0a1de7ce0c39af971bf79bb (diff) |
remove more duplicated files
Diffstat (limited to 'extra/lukeshu-xbs/test/test.d/create-filelists.sh')
-rwxr-xr-x | extra/lukeshu-xbs/test/test.d/create-filelists.sh | 105 |
1 files changed, 0 insertions, 105 deletions
diff --git a/extra/lukeshu-xbs/test/test.d/create-filelists.sh b/extra/lukeshu-xbs/test/test.d/create-filelists.sh deleted file mode 100755 index b5ec5c8..0000000 --- a/extra/lukeshu-xbs/test/test.d/create-filelists.sh +++ /dev/null @@ -1,105 +0,0 @@ -#!/bin/bash - -curdir="$(readlink -e "$(dirname "$0")")" -. "${curdir}/../lib/common.inc" - -testCreateSimpleFileLists() { - local arches=(`arches`) - local pkgs=('pkg-simple-a' 'pkg-simple-b' 'pkg-simple-epoch') - local pkgbase - local arch - - for pkgbase in "${pkgs[@]}"; do - for arch in "${arches[@]}"; do - releasePackage extra "${pkgbase}" "${arch}" - done - done - ../db-update - - for pkgbase in "${pkgs[@]}"; do - for arch in "${arches[@]}"; do - if ! bsdtar -xOf "${FTP_BASE}/extra/os/${arch}/extra${FILESEXT}" | grep "usr/bin/${pkgbase}" &>/dev/null; then - fail "usr/bin/${pkgbase} not found in ${arch}/extra${FILESEXT}" - fi - done - done -} - -testCreateAnyFileLists() { - local arches=(`arches`) - local pkgs=('pkg-any-a' 'pkg-any-b') - local pkgbase - local arch - - for pkgbase in "${pkgs[@]}"; do - releasePackage extra "${pkgbase}" any - done - ../db-update - - for pkgbase in "${pkgs[@]}"; do - for arch in "${arches[@]}"; do - if ! bsdtar -xOf "${FTP_BASE}/extra/os/${arch}/extra${FILESEXT}" | grep "usr/share/${pkgbase}/test" &>/dev/null; then - fail "usr/share/${pkgbase}/test not found in ${arch}/extra${FILESEXT}" - fi - done - done -} - -testCreateSplitFileLists() { - local arches=(`arches`) - local pkgs=('pkg-split-a' 'pkg-split-b') - local pkg - local pkgbase - local pkgname - local pkgnames - local arch - - for pkgbase in "${pkgs[@]}"; do - for arch in "${arches[@]}"; do - releasePackage extra "${pkgbase}" "${arch}" - done - done - ../db-update - - for pkgbase in "${pkgs[@]}"; do - pkgnames=($(source "${TMP}/svn-packages-copy/${pkgbase}/trunk/PKGBUILD"; echo "${pkgname[@]}")) - for pkgname in "${pkgnames[@]}"; do - for arch in "${arches[@]}"; do - if ! bsdtar -xOf "${FTP_BASE}/extra/os/${arch}/extra${FILESEXT}" | grep "usr/bin/${pkgname}" &>/dev/null; then - fail "usr/bin/${pkgname} not found in ${arch}/extra${FILESEXT}" - fi - done - done - done -} - - -testCleanupFileLists() { - local arches=(`arches`) - local pkgs=('pkg-simple-a' 'pkg-simple-b') - local pkgbase - local arch - - for pkgbase in ${pkgs[@]}; do - for arch in ${arches[@]}; do - releasePackage extra ${pkgbase} ${arch} - done - done - ../db-update - - for arch in ${arches[@]}; do - ../db-remove extra ${arch} pkg-simple-a - done - - for arch in ${arches[@]}; do - if ! bsdtar -xOf "${FTP_BASE}/extra/os/${arch}/extra${FILESEXT}" | grep "usr/bin/pkg-simple-b" &>/dev/null; then - fail "usr/bin/pkg-simple-b not found in ${arch}/extra${FILESEXT}" - fi - if bsdtar -xOf "${FTP_BASE}/extra/os/${arch}/extra${FILESEXT}" | grep "usr/bin/pkg-simple-a" &>/dev/null; then - fail "usr/bin/pkg-simple-a still found in ${arch}/extra${FILESEXT}" - fi - done - -} - -. "${curdir}/../lib/shunit2" |