File: version

package info (click to toggle)
rtl-wmbus 1.1.0-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 1,696 kB
  • sloc: ansic: 2,625; makefile: 71; sh: 48; python: 46
file content (13 lines) | stat: -rwxr-xr-x 317 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
#!/bin/sh
set -e

echo "Testing rtl_wmbus -V (version output)"
rtl_wmbus -V

# Check that version output contains expected text
if rtl_wmbus -V 2>&1 | grep -q "rtl_wmbus:"; then
    echo "PASS: Version output contains expected format"
else
    echo "FAIL: Version output does not match expected format"
    exit 1
fi