Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 11 additions & 0 deletions test/tup.sh
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,17 @@ tupcurdir=$PWD
PATH=$PWD/..:$PATH
export PATH

# Verify that the correct tup binary is in PATH
tup_path=$(command -v tup)
expected_path="$PWD/../tup"
if [ "$tup_path" != "$expected_path" ]; then
echo "Error: Wrong tup binary in PATH." 1>&2
echo "Expected: $expected_path" 1>&2
echo "Found: $tup_path" 1>&2
echo "Perhaps you forgot to run bootstrap.sh?" 1>&2
exit 1
fi

testname=`echo $0 | sed 's/.*\///; s/\.sh//'`
tuptestdir="tuptesttmp-$testname"

Expand Down