~anjan/sxmo-check

0e6aae53adae9634345e8460e81662ec2a4c2870 — Anjandev Momi 2 years ago 602105c
added rotate tests
1 files changed, 28 insertions(+), 0 deletions(-)

A spec/rotate_spec.sh
A spec/rotate_spec.sh => spec/rotate_spec.sh +28 -0
@@ 0,0 1,28 @@
Describe "sxmo_rotate.sh"
  isrunning() { pgrep "$1"; }
  It 'Can rotateRight'
    When call sxmo_rotate.sh rotright ShellSpec
    The status should be success
  End
  It 'rotated successfully'
    When call sxmo_rotate.sh isrotated ShellSpec
    The status should be success
  End
  It 'started the touch daemon again'
	When call isrunning "lisgd"
    The status should be success
  End
  It 'Can rotateNormal'
    When call sxmo_rotate.sh rotnormal ShellSpec
    The status should be success
  End
  It 'rotated successfully'
    When call sxmo_rotate.sh isrotated ShellSpec
    The status should be failure
  End
  It 'started the touch daemon again'
	When call isrunning "lisgd"
    The status should be success
  End
End