Skip to content

Commit

Permalink
update grid5000 script
Browse files Browse the repository at this point in the history
  • Loading branch information
simonAllier committed Aug 27, 2014
1 parent 48aecc5 commit ed16ad9
Show file tree
Hide file tree
Showing 3 changed files with 22 additions and 17 deletions.
17 changes: 11 additions & 6 deletions grid5000.sh
Original file line number Diff line number Diff line change
@@ -1,13 +1,18 @@
#!/bin/sh
sleep 20
cd root
git clone git@github.com:marcelinorc/junco-provider.git
cd junco-provider
mvn clean install

cd /root/diversify-statements
git pull
mvn clean package
mvn -Dmaven.test.skip=true clean package


rm -rf repo/sosie-exp
mkdir repo
sh script/git/init.sh repo
#mkdir repo
#sh script/git/init.sh repo

java -jar target/Sosies-generator-1.0-SNAPSHOT-jar-with-dependencies.jar git repo
java -Djava.library.path=lib -jar target/Sosies-generator-1.0-SNAPSHOT-jar-with-dependencies.jar git repo

sh runFromGit.sh 100 repo &
sh script/runFromGit.sh 1000 repo &
11 changes: 0 additions & 11 deletions runFromGit.sh

This file was deleted.

11 changes: 11 additions & 0 deletions script/runFromGit.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
#!/bin/sh
cpu=$(cat nbProcess)
for i in `seq 1 $1`
do
for j in `seq 1 $cpu`
do
java -Djava.library.path=lib -Xmx2000m -Dhttp.proxyHost=proxy.rennes.grid5000.fr -Dhttp.proxyPort=3128 -jar target/Sosies-generator-1.0-SNAPSHOT-jar-with-dependencies.jar $(cat propertiesFile) > out_$i_$j &
done
wait
sh script/git/push.sh $2/sosie-exp
done

0 comments on commit ed16ad9

Please sign in to comment.