1 2 3 4 5 6 7 8 9 10 11 12 13 14
#!/bin/sh # The testscript checks the following options of the command file # 1) Option qi test="rpm03" test_manual="test-manual-1.2.3.noarch" if rpm -qi $test_manual | grep ".*1.2.3.*" then echo " -> $test: TEST-PASS" else echo " -> $test: TEST-FAIL" fi;