Skip to content

Commit

Permalink
tests: allow running out of sourcetree
Browse files Browse the repository at this point in the history
Signed-off-by: Fabian Groffen <grobian@gentoo.org>
  • Loading branch information
grobian committed Jul 3, 2024
1 parent b7acc09 commit 8ffeecf
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 3 deletions.
2 changes: 2 additions & 0 deletions tests/atom_explode/Makefile.in
Original file line number Diff line number Diff line change
Expand Up @@ -360,6 +360,7 @@ DIR_HAS_FD_MEMBER = @DIR_HAS_FD_MEMBER@
ECHO_C = @ECHO_C@
ECHO_N = @ECHO_N@
ECHO_T = @ECHO_T@
EGREP = @EGREP@
EMULTIHOP_HIDDEN = @EMULTIHOP_HIDDEN@
EMULTIHOP_VALUE = @EMULTIHOP_VALUE@
ENOLINK_HIDDEN = @ENOLINK_HIDDEN@
Expand Down Expand Up @@ -823,6 +824,7 @@ GL_GNULIB__EXIT = @GL_GNULIB__EXIT@
GNULIBHEADERS_OVERRIDE_WINT_T = @GNULIBHEADERS_OVERRIDE_WINT_T@
GPGME_CFLAGS = @GPGME_CFLAGS@
GPGME_LIBS = @GPGME_LIBS@
GREP = @GREP@
HAVE_ACOSF = @HAVE_ACOSF@
HAVE_ACOSL = @HAVE_ACOSL@
HAVE_ALIGNED_ALLOC = @HAVE_ALIGNED_ALLOC@
Expand Down
4 changes: 2 additions & 2 deletions tests/atom_explode/dotest
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

. ../init.sh || exit 1

files=$(xzcat ebuildlist.xz)
files=$(xzcat "${as}"/ebuildlist.xz)

printf "atom_explode():"
time echo "${files}" | "$b"/e > "$b"/me || exit $?
Expand All @@ -13,7 +13,7 @@ if [[ -n ${QATOM_COMPARE_TO_PORTAGE} ]] ; then
time echo "${files}" | "$s"/atom-explode.py > "$b"/py
echo
else
xzcat portageatoms.xz > "$b"/py
xzcat "${as}"/portageatoms.xz > "$b"/py
fi

diff -U 0 "$b"/me "$b"/py
Expand Down
2 changes: 1 addition & 1 deletion tests/qdepends/dotest
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ test() {
if [[ ! -e ${good} ]] ; then
cp list "${good}"
fi
diff -u list "${good}"
diff -u --label "${cmd[*]}" list "${good}"
tend $? "${num} ${cmd[*]}"
}

Expand Down

0 comments on commit 8ffeecf

Please sign in to comment.