d545cf Added minicom test with respeect to different versioning on C5/C6

Authored and Committed by Christoph Galuschka 13 years ago
    Added minicom test with respeect to different versioning on C5/C6
    
        
tests/p_minicom/minicom_test.sh ADDED
@@ -0,0 +1,19 @@
1
+ #!/bin/sh
2
+ # Author: Athmane Madjoudj <athmanem@gmail.com>
3
+ # Author: Christph Galuschka <christoph.galuschka@tiwag.at>
4
+
5
+ t_Log "Running $0 - very basic minicom test."
6
+
7
+ # Only checking for correct output of '-v'
8
+ # with respect to different versions on C5 and C6
9
+
10
+ if (t_GetPkgRel basesystem | grep -q el6)
11
+ then
12
+ VERSION="2.3"
13
+ else
14
+ VERSION="2.1"
15
+ fi
16
+
17
+ minicom -v | grep "${CHECK_FOR}" >/dev/null 2>&1
18
+
19
+ t_CheckExitStatus $?