Debian Codegraph @

debian/tests/smoke-tests

raw symbols SCIP
1 #!/bin/sh
2
3 exec 2>&1
4
5 set -e
6
7 test_analizo_version() {
8 ANALIZO_VERSION=$(analizo --version)
9 COUNT=$(echo $ANALIZO_VERSION | grep --count "analizo version [0-9]")
10 assertEquals "unexpected analizo version message: $ANALIZO_VERSION" 1 $COUNT
11 }
12
13 test_analizo_metrics_over_hello_world_c_sample_code() {
14 ANALIZO_OUTPUT=$(ANALIZO_CACHE=${HOME} analizo metrics /usr/share/doc/analizo/examples/samples/hello_world/c)
15 COUNT=$(echo $ANALIZO_OUTPUT | grep --count "_module: hello_world")
16 assertEquals "module 'hello_world' not found on analizo-metrics output" 1 $COUNT
17 }
18
19 . shunit2