Added plugins and build tools
This commit is contained in:
28
tools/makeself-2.4.5/test/tarextratest
Executable file
28
tools/makeself-2.4.5/test/tarextratest
Executable file
@ -0,0 +1,28 @@
|
||||
#!/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
|
Reference in New Issue
Block a user