test: 10-if-test, 10-if-test-false, 10-if-bracket, 10-if-bracket-false.

This commit is contained in:
Jan Nieuwenhuizen 2018-12-01 09:42:40 +01:00
parent ddc0f58896
commit 6cf9cf7d0f
5 changed files with 20 additions and 0 deletions

View File

@ -61,6 +61,10 @@ tests='
10-if-else
10-else-multiple
10-if-elif
10-if-test
10-if-test-false
10-if-bracket
10-if-bracket-false
10-if-redirect
11-for

View File

@ -0,0 +1,4 @@
if [ 0 = 1 ]; then
exit 1
fi
exit 0

4
test/10-if-bracket.sh Normal file
View File

@ -0,0 +1,4 @@
if [ 1 = 1 ]; then
exit 0
fi
exit 1

4
test/10-if-test-false.sh Normal file
View File

@ -0,0 +1,4 @@
if test 0 = 1; then
exit 1
fi
exit 0

4
test/10-if-test.sh Normal file
View File

@ -0,0 +1,4 @@
if test 1 = 1; then
exit 0
fi
exit 1