"Fossies" - the Fresh Open Source Software Archive

Member "bup-0.30/t/test-command-without-init-fails.sh" (28 Sep 2019, 342 Bytes) of package /linux/privat/bup-0.30.tar.gz:


As a special service "Fossies" has tried to format the requested source page into HTML format using (guessed) Bash source code syntax highlighting (style: standard) with prefixed line numbers. Alternatively you can here view or download the uninterpreted source code file.

    1 #!/usr/bin/env bash
    2 . ./wvtest-bup.sh || exit $?
    3 
    4 set -o pipefail
    5 
    6 WVSTART 'all'
    7 
    8 top="$(WVPASS pwd)" || exit $?
    9 tmpdir="$(WVPASS wvmktempdir)" || exit $?
   10 
   11 export BUP_DIR="$tmpdir/bup"
   12 
   13 bup() { "$top/bup" "$@"; }
   14 
   15 WVPASS mkdir "$tmpdir/foo"
   16 
   17 bup index "$tmpdir/foo" &> /dev/null
   18 index_rc=$?
   19 WVPASSEQ "$index_rc" "15"
   20 
   21 WVPASS rm -rf "$tmpdir"