#!/usr/bin/env bash
. ./wvtest-bup.sh || exit $?
+. t/lib.sh || exit $?
set -o pipefail
WVPASSEQ "$(WVPASS bup ls /src)" \
"1977-09-05-125600
-latest
-some-tag"
+latest"
WVPASSEQ "$(WVPASS bup ls src/latest/"$tmpdir"/src)" "executable
fifo
|| exit $?
if test "$(uname -s)" != NetBSD; then
- symlink_size="$(WVPASS python -c "import os
+ symlink_size="$(WVPASS bup-python -c "import os
print os.lstat('src/symlink').st_size")" || exit $?
else
# NetBSD appears to return varying sizes, so for now, just ignore it.
fi
uid="$(id -u)" || exit $?
-gid="$(python -c 'import os; print os.stat("src").st_gid')" || exit $?
+gid="$(bup-python -c 'import os; print os.stat("src").st_gid')" || exit $?
user="$(id -un)" || exit $?
-group="$(python -c 'import grp, os;
+group="$(bup-python -c 'import grp, os;
print grp.getgrgid(os.stat("src").st_gid)[0]')" || exit $?
WVPASSEQ "$(bup ls -l src/latest"$tmpdir"/src | tr -s ' ' ' ')" \
WVSTART "ls (backup set - long)"
WVPASSEQ "$(bup ls -l src | cut -d' ' -f 1-2)" \
"l--------- ?/?
-l--------- ?/?
l--------- ?/?"