29 lines
438 B
Plaintext
Raw Normal View History

2021-12-09 00:58:28 +01:00
#!/bin/bash
SUT=$(realpath "$(dirname "$0")/../makeself.sh")
setupTests() {
temp=$(mktemp -d -t XXXXX)
pushd "${temp}"
mkdir -p src/.git
echo "echo This is a test" > src/startup.sh
}
tearDown() {
popd
rm -rf "${temp}"
}
testTarExtraOpts() {
setupTests
tar_extra="--verbose --exclude .git"
${SUT} --tar-extra "$tar_extra" src src.sh alabel startup.sh
assertEqual $? 0
tearDown
}
source bashunit/bashunit.bash