test/total.sh

changeset 57
68018eac46c3
parent 56
ed65f8c73fb2
child 68
ae763178ee1e
equal deleted inserted replaced
56:ed65f8c73fb2 57:68018eac46c3
25 # CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) 25 # CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
26 # ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE 26 # ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
27 # POSSIBILITY OF SUCH DAMAGE. 27 # POSSIBILITY OF SUCH DAMAGE.
28 # 28 #
29 29
30 echo "Verifying correctness of total line count." 30 echo -n "Verifying correctness of total line count: "
31 31
32 clineprg="$(pwd)/../src/cline"
33
34 cd $srcdir
35 count=`$clineprg -Vs testfile.c`
36 expected=21
37
38 if [ "$count" -eq "$expected" ]; then
39 echo "OK."
40 exit 0;
41 else
42 echo "FAIL! $count is not $expected"
43 exit 1;
44 fi

mercurial