Added plugins and build tools
This commit is contained in:
19
tools/makeself-2.4.5/test/bashunit/test_example
Executable file
19
tools/makeself-2.4.5/test/bashunit/test_example
Executable file
@ -0,0 +1,19 @@
|
||||
#!/bin/bash
|
||||
|
||||
testEcho() {
|
||||
assertEqual "$(echo foo)" "foo"
|
||||
assertReturn "$(echo foo)" 0
|
||||
}
|
||||
|
||||
testTest() {
|
||||
assert "-e $0"
|
||||
}
|
||||
|
||||
testArithmetic() {
|
||||
assertGreaterThan "$(( 1 + 1 ))" "1"
|
||||
assertAtLeast "$(( 1 + 1 ))" "2"
|
||||
assertLessThan "$(( 1 + 1 ))" "5"
|
||||
assertAtMost "$(( 1 + 1 ))" "2"
|
||||
}
|
||||
|
||||
source $(dirname $0)/bashunit.bash
|
Reference in New Issue
Block a user