# HG changeset patch # User nozomi # Date 1506336740 -32400 # Node ID 15061909f4da999bba2f0f1e521211c197f11bc3 # Parent 7193845c26cb08d905094d634fc1471943b7a7de add scripts diff -r 7193845c26cb -r 15061909f4da build.gradle --- a/build.gradle Mon Sep 25 19:00:06 2017 +0900 +++ b/build.gradle Mon Sep 25 19:52:20 2017 +0900 @@ -46,4 +46,18 @@ } } +task LogupdateTest(type: Jar) { + exclude 'META-INF/*.RSA', 'META-INF/*.SF','META-INF/*.DSA' + baseName = "logupdateTest" + manifest { + attributes 'Main-Class': 'jp.ac.u_ryukyu.ie.cr.jungleNetwork.logupdate.LogupdateTest', + 'Implementation-Title': 'LogupdateTet', + 'Implementation-Description': 'Quickstart', + 'Implementation-Version': version, + 'Assembly-Date': new java.util.Date().toString() + } + from configurations.compile.collect { it.isDirectory() ? it : zipTree(it) } + sourceSets.test.output + + with jar +} diff -r 7193845c26cb -r 15061909f4da scripts/LogupdateTest.sh --- a/scripts/LogupdateTest.sh Mon Sep 25 19:00:06 2017 +0900 +++ b/scripts/LogupdateTest.sh Mon Sep 25 19:52:20 2017 +0900 @@ -1,4 +1,6 @@ -java -cp build/libs/Alice.jar alice.topology.manager.TopologyManager -host localhost -p 10000 -port 10001 --noKeepAlive & +java -cp build/libs/logupdateTest-1.1.jar alice.topology.manager.TopologyManager -host localhost -p 10000 -port 10001 --noKeepAlive & sleep 3 -java -cp jungle-core.1.1.jar jp.ac_u-ryukyu.junglenetworl.logupdate.logupdateTest -host localhost -p 10003 -port 10000 --noKeepAlive & -java -cp jungle-core.1.1.jar jp.ac_u-ryukyu.junglenetworl.logupdate.logupdateTest -host localhost -p 10002 -port 10000 -write --noKeepAlive & +java -jar build/libs/logupdateTest-1.1.jar -host localhost -p 10003 -port 10000 --noKeepAlive & +java -jar build/libs/logupdateTest-1.1.jar -host localhost -p 10001 -port 10000 --noKeepAlive & +sleep 3 +java -jar build/libs/logupdateTest-1.1.jar -host localhost -p 10002 -port 10000 -write --noKeepAlive diff -r 7193845c26cb -r 15061909f4da scripts/killLogupdate.sh --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/scripts/killLogupdate.sh Mon Sep 25 19:52:20 2017 +0900 @@ -0,0 +1,3 @@ +#!/bin/sh + +ps agx | grep logupdate | grep -v grep | grep -v killLogupdate | perl -le 'while (<>){if (/(\d+)/){print "kill -9 $1"}}' | sh