Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
Loading status checks…
Testing bats on I2 Jenkins host
Jim Van Fleet
committed
Jul 13, 2016
1 parent
69af373
commit 2db97fc
Showing
2 changed files
with
9 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -7,5 +7,8 @@ node { | |
|
||
sh './build_image.sh' | ||
|
||
stage 'Tests' | ||
|
||
sh 'bats tests/base.bats' | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
#!/usr/bin/env bats | ||
|
||
@test "addition using bc" { | ||
result="$(echo 2+2 | bc)" | ||
[ "$result" -eq 4 ] | ||
} |