Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
the script of the rl test on Windows
authorcherierm <cherierm@48e7efb5-ca39-0410-a469-dd3cf9ba447f>
Fri, 13 Apr 2007 09:45:55 +0000 (09:45 +0000)
committercherierm <cherierm@48e7efb5-ca39-0410-a469-dd3cf9ba447f>
Fri, 13 Apr 2007 09:45:55 +0000 (09:45 +0000)
git-svn-id: svn+ssh://scm.gforge.inria.fr/svn/simgrid/simgrid/trunk@3413 48e7efb5-ca39-0410-a469-dd3cf9ba447f

examples/gras/ping/test_rl.vbs [new file with mode: 0644]
examples/gras/pmm/test_rl.vbs [new file with mode: 0644]

diff --git a/examples/gras/ping/test_rl.vbs b/examples/gras/ping/test_rl.vbs
new file mode 100644 (file)
index 0000000..20bb0d1
--- /dev/null
@@ -0,0 +1,22 @@
+Dim oShell
+Dim iExitCode1
+Dim iExitCode2
+
+Set oShell = WScript.CreateObject ("WSCript.shell")
+       
+iExitCode1 = oShell.run("cmd /K " & GetCurrentDirectory() & "bin\ping_server 4002",1,False)
+'WScript.Sleep 1000
+iExitCode2 = oShell.run("cmd /K " & GetCurrentDirectory() & "bin\ping_client 127.0.0.1 4002",1,False)
+
+Set oShell = Nothing
+
+'This function returns the current directory of the script 
+Function GetCurrentDirectory()
+       
+       Dim sScriptFullName 
+       
+       sScriptFullName = WScript.ScriptFullName
+       GetCurrentDirectory = mid(sScriptFullName,1,InStrRev(sScriptFullName,"\"))
+       
+End Function
diff --git a/examples/gras/pmm/test_rl.vbs b/examples/gras/pmm/test_rl.vbs
new file mode 100644 (file)
index 0000000..ccfbaa5
--- /dev/null
@@ -0,0 +1,32 @@
+Dim oShell
+Dim iExitCode
+
+Set oShell = WScript.CreateObject ("WSCript.shell")
+
+'run the slaves
+       
+iExitCode = oShell.run("cmd /K " & GetCurrentDirectory() & "bin\pmm_slave 127.0.0.1:4242",1,False)
+iExitCode = oShell.run("cmd /K " & GetCurrentDirectory() & "bin\pmm_slave 127.0.0.1:4242",1,False)
+iExitCode = oShell.run("cmd /K " & GetCurrentDirectory() & "bin\pmm_slave 127.0.0.1:4242",1,False)
+iExitCode = oShell.run("cmd /K " & GetCurrentDirectory() & "bin\pmm_slave 127.0.0.1:4242",1,False)
+iExitCode = oShell.run("cmd /K " & GetCurrentDirectory() & "bin\pmm_slave 127.0.0.1:4242",1,False)
+iExitCode = oShell.run("cmd /K " & GetCurrentDirectory() & "bin\pmm_slave 127.0.0.1:4242",1,False)
+iExitCode = oShell.run("cmd /K " & GetCurrentDirectory() & "bin\pmm_slave 127.0.0.1:4242",1,False)
+iExitCode = oShell.run("cmd /K " & GetCurrentDirectory() & "bin\pmm_slave 127.0.0.1:4242",1,False)
+'iExitCode = oShell.run("cmd /K " & GetCurrentDirectory() & "bin\pmm_slave 127.0.0.1:4242",1,False)
+
+
+'run the master
+iExitCode = oShell.run("cmd /K " & GetCurrentDirectory() & "bin\pmm_master 4242",1,False)
+
+Set oShell = Nothing
+
+'This function returns the current directory of the script 
+Function GetCurrentDirectory()
+       
+       Dim sScriptFullName 
+       
+       sScriptFullName = WScript.ScriptFullName
+       GetCurrentDirectory = mid(sScriptFullName,1,InStrRev(sScriptFullName,"\"))
+       
+End Function