Skip to content

Commit

Permalink
tests: Test for clean command
Browse files Browse the repository at this point in the history
  • Loading branch information
obiwac committed Dec 23, 2024
1 parent 4566879 commit 08d996b
Showing 1 changed file with 21 additions and 0 deletions.
21 changes: 21 additions & 0 deletions tests/clean.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
#!/bin/sh
set -e

. tests/common.sh

# Test cleaning.

rm -rf .bob
.bootstrap/bob build

if [ ! -d .bob ]; then
echo "Build did not create output directory."
exit 1
fi

.bootstrap/bob clean < /dev/null # XXX Pipe in /dev/null to pass prompt.

if [ -d .bob ]; then
echo "Clean did not remove output directory."
exit 1
fi

0 comments on commit 08d996b

Please sign in to comment.