dlugolecki.net.pl
Dziennik
Polecane
Software
projects
/
command.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
Add Boolean tests.
[command.git]
/
tests
/
command
/
understand_bool_option.test
1
#!/bin/sh
2
3
for t in 0 1; do
4
TEST=$($srcdir/command/option_test_command bool=$t)
5
if [ ! "$TEST" = "bool: $t" ]; then
6
echo "Command should understand Option<bool>. Expecting output: 'bool: $t', got: '$TEST'. Program exited with $? code."
7
return 1;
8
fi
9
done
10
11
return 0;