-
Notifications
You must be signed in to change notification settings - Fork 4
/
test-all.sh
executable file
·67 lines (55 loc) · 1.93 KB
/
test-all.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
#!/bin/bash
source "$HOME/.rvm/scripts/rvm"
run()
{
local flavor=$1
local desc=$2
local version1=$3
local version2=$4
local rvm=$5
local java=$6
if [ "$rvm" != "" ]; then
rvm $rvm
fi
if [ "$java" != "" ]; then
sudo update-alternatives --set java $java > /dev/null 2>&1
fi
./hellod start $flavor > /dev/null
echo $desc
echo "-------------"
if [ "$version1" != ""]; then
echo -e "\t$version1"
$version1 2>&1 | sed s/^/\\t/
fi
if [ "$version2" != "" ]; then
echo ""
echo -e "\t$version2"
$version2 2>&1 | sed s/^/\\t/
fi
echo ""
sleep 5
./hellod test $flavor -n 10000 -c 50 > /dev/null
./hellod test $flavor -n 10000 -c 50 > /dev/null
./hellod test $flavor -n 10000 -c 50
./hellod test $flavor -n 50000 -c 200
./hellod stop $flavor > /dev/null
echo ""
}
./hellod stop all > /dev/null
OPENJDK='/usr/lib/jvm/java-6-openjdk/jre/bin/java'
SUNJDK='/usr/lib/jvm/java-6-sun/jre/bin/java'
run 'ruby' 'Ruby 1.9.2' 'ruby -v' '' '1.9.2@hellod' ''
run 'ruby' 'Ruby 1.9.3' 'ruby -v' '' '1.9.3@hellod' ''
run 'ruby' 'JRuby 1.6.4 - Sun JDK' 'ruby -v' 'java -version' 'jruby@hellod' $SUNJDK
run 'ruby' 'JRuby 1.6.4 - OpenJDK' 'ruby -v' 'java -version' 'jruby@hellod' $OPENJDK
run 'go' 'Go' '6g -V' '' '' ''
run 'node' 'Node.js' 'node -v' '' '' ''
run 'c' 'C / libev' '' '' '' ''
run 'clj-aleph' 'Clojure / Aleph - Sun JDK' 'lein version' 'java -version' '' $SUNJDK
run 'clj-aleph' 'Clojure / Aleph - OpenJDK' 'lein version' 'java -version' '' $OPENJDK
run 'clj-jetty' 'Clojure / Ring - Sun JDK' 'lein version' 'java -version' '' $SUNJDK
run 'clj-jetty' 'Clojure / Ring - OpenJDK' 'lein version' 'java -version' '' $OPENJDK
run 'java-nio' ' Java NIO - Sun JDK' '' 'java -version' '' $SUNJDK
run 'java-nio' ' Java NIO - OpenJDK' '' 'java -version' '' $OPENJDK
run 'java-netty' ' Java Netty - Sun JDK' '' 'java -version' '' $SUNJDK
run 'java-netty' ' Java Netty - OpenJDK' '' 'java -version' '' $OPENJDK