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
+