bstinson / centos / t_functional

Forked from centos/t_functional 4 years ago
Clone

Blame tests/p_bc/20-bc-test-simple-calculation.sh

Christoph Galuschka 37e507
#!/bin/bash
Christoph Galuschka 37e507
# Author : Varadharajan M <srinathsmn@gmail.com>
Christoph Galuschka 37e507
#          Manoj Mahalingam <manojlds@gmail.com>
Christoph Galuschka 37e507
Christoph Galuschka 37e507
t_Log "Running $0 - Testing basic bc functionalities"
Christoph Galuschka 37e507
test `echo "5 + 6 * 5 / 10 - 1" | bc` -eq "7"
Christoph Galuschka 37e507
t_CheckExitStatus $?