Commit 18ce245 Update test case with the latest code from test maintainer.

2 files Authored and Committed by mgahagan 11 months ago
Update test case with the latest code from test maintainer.

    
 1 @@ -24,7 +24,7 @@
 2   #
 3   # ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
 4   
 5 - export TEST=/CoreOS/brltty/sanity-test
 6 + export TEST=/CoreOS/brltty/Sanity/sanity-test
 7   export TESTVERSION=1.0
 8   
 9   BUILT_FILES=
10 @@ -50,7 +50,7 @@
11   »       @echo "Name:            $(TEST)" >> $(METADATA)
12   »       @echo "TestVersion:     $(TESTVERSION)" >> $(METADATA)
13   »       @echo "Path:            $(TEST_DIR)" >> $(METADATA)
14 - »       @echo "Description:     Basic sanity test of brltty" >> $(METADATA)
15 + »       @echo "Description:     it check basic sanity of packahe" >> $(METADATA)
16   »       @echo "Type:            Sanity" >> $(METADATA)
17   »       @echo "TestTime:        20m" >> $(METADATA)
18   »       @echo "RunFor:          brltty" >> $(METADATA)
 1 @@ -3,7 +3,7 @@
 2   # ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
 3   #
 4   #   runtest.sh of /CoreOS/brltty/Sanity/sanity-test
 5 - #   Description: Basic sanity test of brltty
 6 + #   Description: it check basic sanity of packahe
 7   #   Author: Jan Scotka <jscotka@redhat.com>
 8   #
 9   # ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
10 @@ -27,6 +27,7 @@
11   # ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
12   
13   # Include Beaker environment
14 + . /usr/bin/rhts-environment.sh || exit 1
15   . /usr/share/beakerlib/beakerlib.sh || exit 1
16   
17   PACKAGE="brltty"
18 @@ -45,10 +46,12 @@
19           rlRun "sleep 5"
20           rlRun "DISPLAY=:$DISPLAY brltty -b xw -x a2 -A auth=none"
21           rlRun "sleep 5"
22 +         rlRun "BRPID=`pidof brltty`"
23 +         rlRun "cat /proc/$BRPID/cmdline"
24           rlRun "DISPLAY=:$DISPLAY import -window root example.png"
25           rlRun "DISPLAY=:$DISPLAY xwininfo -tree -root"
26 -         rlRun "DISPLAY=:$DISPLAY xwininfo -tree -root| grep -A 2 children |grep brltty"
27 -         rlRun "DISPLAY=:$DISPLAY xwininfo -tree -root|grep +664+36"
28 +         #rlRun "DISPLAY=:$DISPLAY xwininfo -tree -root| grep -A 2 children |grep brltty"
29 +         #rlRun "DISPLAY=:$DISPLAY xwininfo -tree -root|grep +664+36"
30           rlRun "killall brltty"
31           rlRun "sleep 5"
32           rlRun "DISPLAY=:$DISPLAY brltty -b vr -d server:127.0.0.1 -x a2 -A auth=none"
33 @@ -56,15 +59,15 @@
34           rlRun "echo cells 20 | ncat 127.0.0.1 35752 |grep 'Visual \"BRLTTY 4.5'"
35           rlRun "echo cells 20 | ncat 127.0.0.1 35752 |grep '127.12357.1237.23457.23457.134567'"
36           rlRun "echo quit | ncat 127.0.0.1 35752"
37 - »       rlRun "sleep 2"
38 - »       rlRun "test -x /usr/bin/brltty-config"
39 - »       rlRun "brltty-config"
40 +         rlRun "sleep 2"
41 +         rlRun "test -x /usr/bin/brltty-config"
42 +         rlRun "brltty-config"
43       rlPhaseEnd
44   
45       rlPhaseStartCleanup
46           rlRun "killall brltty"
47           rlRun "killall Xvfb"
48 - »       rlRun "rm -rf example.png"
49 +         rlFileSubmit example.png
50       rlPhaseEnd
51   rlJournalPrintText
52   rlJournalEnd