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 code only line count: " |
31 |
31 |
|
32 clineprg="$(pwd)/../src/cline" |
|
33 |
|
34 cd $srcdir |
|
35 count=`$clineprg -Vs testfile.c --exclude-cstyle-comments --exclude-blank-lines` |
|
36 expected=5 |
|
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 |