mirror of https://github.com/cutefishos/appmotor
				
				
				
			Changes: Signal forwarding tests added for q-booster and w-booster
RevBy: TrustMepull/1/head
							parent
							
								
									6c59077919
								
							
						
					
					
						commit
						77de29cbff
					
				@ -0,0 +1,3 @@
 | 
			
		||||
install(PROGRAMS fala_sf_m.sh fala_sf_wrt.sh fala_sf_qt.sh DESTINATION /usr/share/applauncherd-testscripts/signal-forward)
 | 
			
		||||
install(PROGRAMS fala_sf_m.py fala_sf_wrt.py fala_sf_qt.py DESTINATION /usr/share/applauncherd-testscripts/signal-forward)
 | 
			
		||||
 | 
			
		||||
@ -0,0 +1,15 @@
 | 
			
		||||
#!/usr/bin/env python
 | 
			
		||||
import os
 | 
			
		||||
import time
 | 
			
		||||
import commands
 | 
			
		||||
 | 
			
		||||
#Launching application from the script
 | 
			
		||||
os.system("/usr/share/applauncherd-testscripts/signal-forward/fala_sf_qt.sh &")
 | 
			
		||||
 | 
			
		||||
time.sleep(3)
 | 
			
		||||
st, op = commands.getstatusoutput("pgrep fala_ft_hello")
 | 
			
		||||
 | 
			
		||||
#Killing application with a signal 11 (Segmentation Fault)
 | 
			
		||||
commands.getoutput("kill -6 %s" %op)
 | 
			
		||||
time.sleep(2)
 | 
			
		||||
 | 
			
		||||
@ -0,0 +1,3 @@
 | 
			
		||||
#!/bin/sh
 | 
			
		||||
su user -c 'invoker --type=qt --wait-term /usr/bin/fala_ft_hello.launch'
 | 
			
		||||
 | 
			
		||||
@ -0,0 +1,15 @@
 | 
			
		||||
#!/usr/bin/env python
 | 
			
		||||
import os
 | 
			
		||||
import time
 | 
			
		||||
import commands
 | 
			
		||||
 | 
			
		||||
#Launching application from the script
 | 
			
		||||
os.system("/usr/share/applauncherd-testscripts/signal-forward/fala_sf_wrt.sh &")
 | 
			
		||||
 | 
			
		||||
time.sleep(2)
 | 
			
		||||
st, op = commands.getstatusoutput("pgrep fala_ft_hello")
 | 
			
		||||
 | 
			
		||||
#Killing application with a signal 11 (Segmentation Fault)
 | 
			
		||||
commands.getoutput("kill -10 %s" %op)
 | 
			
		||||
time.sleep(2)
 | 
			
		||||
 | 
			
		||||
@ -0,0 +1,3 @@
 | 
			
		||||
#!/bin/sh
 | 
			
		||||
invoker --type=wrt --wait-term /usr/bin/fala_ft_hello.launch
 | 
			
		||||
 | 
			
		||||
					Loading…
					
					
				
		Reference in New Issue