Toolset: Remove bash_profile.sh
@@ -1,16 +0,0 @@
-#---------------------------------------------------------------------------------------------------------
-# bash_profile.sh - set the environment of our ULib installation
-# TROOT - Path of this test's directory
-# IROOT - Path of this test's install directory ($FWROOT/installs or $FWROOT/installs/pertest/<test-name>)
-# INFO:root:Running installation for ULib
-# INSTALL:
-# export TROOT=$FWROOT/ULib &&
-# export IROOT=$FWROOT/installs &&
-# . $FWROOT/toolset/setup/linux/bash_functions.sh &&
-# . $FWROOT/ULib/install.sh (cwd=$FWROOT//installs)
-export ULIB_VERSION=1.4.2
-export ULIB_ROOT=$IROOT/ULib
-export ULIB_DOCUMENT_ROOT=${ULIB_ROOT}/ULIB_DOCUMENT_ROOT
@@ -1,5 +1,9 @@
#!/bin/bash
+export ULIB_VERSION=1.4.2
+export ULIB_ROOT=$IROOT/ULib
+export ULIB_DOCUMENT_ROOT=${ULIB_ROOT}/ULIB_DOCUMENT_ROOT
+
export UMEMPOOL="136,0,0,85,1160,155,-17,-22,40"
# 1. Change ULib Server configuration
export ORM_DRIVER="mysql"
export ORM_OPTION="host=${DBHOST} user=benchmarkdbuser password=benchmarkdbpass character-set=utf8 dbname=hello_world"
export ORM_DRIVER="sqlite"
export ORM_OPTION="host=${DBHOST} user=benchmarkdbuser password=benchmarkdbpass character-set=utf8 dbname=${ULIB_ROOT}/db/%.*s"
@@ -1,3 +0,0 @@
-#!/bin/bash
-
-export CPPSP_HOME=$IROOT/cppsp_0.2.3
@@ -1,4 +1,5 @@
+export CPPSP_HOME=$IROOT/cppsp_0.2.3
sed -i 's|#define BENCHMARK_DB_HOST ".*"|#define BENCHMARK_DB_HOST "'"$DBHOST"'"|g' www/connectioninfo.H
@@ -1,11 +0,0 @@
-export BOOST_ROOT=/usr/local
-export BOOST_INC=${BOOST_ROOT}/include
-export BOOST_LIB=${BOOST_ROOT}/lib
-export WT_ROOT=${IROOT}/wt
-export WT_LIB=${WT_ROOT}/lib
-export WT_INC=${WT_ROOT}/include
-export LD_LIBRARY_PATH="${BOOST_LIB}:${WT_LIB}:${LD_LIBRARY_PATH}"
@@ -1,3 +1,13 @@
+export BOOST_ROOT=/usr/local
+export BOOST_INC=${BOOST_ROOT}/include
+export BOOST_LIB=${BOOST_ROOT}/lib
+export WT_ROOT=${IROOT}/wt
+export WT_LIB=${WT_ROOT}/lib
+export WT_INC=${WT_ROOT}/include
+export LD_LIBRARY_PATH="${BOOST_LIB}:${WT_LIB}:${LD_LIBRARY_PATH}"
fw_depends apache wt
@@ -1,4 +1,11 @@
# This has to be included here since it is one of the vars NOT copied from the original environment
export LD_LIBRARY_PATH="${BOOST_LIB}:${WT_LIB}:${LD_LIBRARY_PATH}"
@@ -1,7 +1,15 @@
+export CPLUS_INCLUDE_PATH=/usr/include/postgresql:/usr/include/postgresql/9.3/server:$CPLUS_INCLUDE_PATH
sed -i 's|INSERT_DB_HOST_HERE|'"${DBHOST}"'|g' benchmark.cpp
-export DUDA_HOME=${IROOT}/dudac-0.23
@@ -1,5 +1,6 @@
+export DUDA_HOME=${IROOT}/dudac-0.23
export PATH=${DUDA_HOME}:$PATH
dudac -w $TROOT/webservice -p 2001 &
@@ -1,5 +0,0 @@
-export JAVA_HOME=/usr/lib/jvm/java-1.7.0-openjdk-amd64
-export RESIN_HOME=${IROOT}/resin-4.0.41
-export LEIN_HOME=$IROOT/lein
@@ -1,4 +1,7 @@
+export JAVA_HOME=/usr/lib/jvm/java-1.7.0-openjdk-amd64
+export RESIN_HOME=${IROOT}/resin-4.0.41
+export LEIN_HOME=$IROOT/lein
# Path vars must be set here
export PATH="$JAVA_HOME/bin:$PATH"
@@ -1,4 +1,6 @@
cd hello
$LEIN_HOME/bin/lein clean
@@ -1,2 +0,0 @@
-export DART_HOME=$IROOT/dart-sdk
-export PUB_CACHE=$IROOT/.pubcache
+export DART_HOME=$IROOT/dart-sdk
+export PUB_CACHE=$IROOT/.pubcache
sed -i 's|host: .*|host: '"${DBHOST}"'|g' postgresql.yaml
sed -i 's|host: .*|host: '"${DBHOST}"'|g' mongodb.yaml
@@ -1,7 +0,0 @@
-export NGINX_HOME=$IROOT/nginx
+export NGINX_HOME=$IROOT/nginx
@@ -2,6 +2,10 @@
$DART_HOME/bin/pub upgrade
-$DART_HOME/bin/dart server.dart -a 0.0.0.0 -p 8080 -d ${MAX_THREADS} -i ${MAX_THREADS} &
+$DART_HOME/bin/dart server.dart -a 0.0.0.0 -p 8080 -d ${MAX_THREADS} -i ${MAX_THREADS} &
-export REBAR_HOME=$IROOT/rebar
+export REBAR_HOME=$IROOT/rebar
sed -i 's|"benchmarkdbpass", ".*", 3306|"benchmarkdbpass", "'"${DBHOST}"'", 3306|g' src/hello_world_app.erl
sed -i 's|"benchmarkdbpass", ".*", 3306|"benchmarkdbpass", "'"${DBHOST}"'", 3306|g' src/elli_bench_sup.erl
@@ -1,6 +0,0 @@
-# Set the root of our go installation
-export GOROOT=${IROOT}/go
-export GOPATH=${TROOT}
+# Set the root of our go installation
+export GOROOT=${IROOT}/go
+export GOPATH=${TROOT}
sed -i 's|tcp(.*:3306)|tcp('"${DBHOST}"':3306)|g' src/hello/hello.go
sed -i 's|tcp(.*:3306)|tcp('"${DBHOST}"':3306)|g' src/framework_benchmarks/falcore.go
# Where to find the go executable
export PATH="$GOROOT/bin:$PATH"
@@ -1,4 +0,0 @@
sed -i 's|tcp(.*:3306)|tcp('"${DBHOST}"':3306)|g' src/benchmark/conf/app.conf
@@ -1,14 +1,14 @@
export JAVA_HOME=/usr/lib/jvm/java-1.7.0-openjdk-amd64
export RESIN_HOME=${IROOT}/resin-4.0.41
export GRAILS_PATH=${IROOT}/grails-2.4.4/bin/
-sed -i 's|jdbc:mysql://.*:3306|jdbc:mysql://'"${DBHOST}"':3306|g' hello/grails-app/conf/DataSource.groovy
export PATH=${GRAILS_PATH}:$PATH
export GRAILS_AGENT_CACHE_DIR=${IROOT}/.grails/.slcache
+sed -i 's|jdbc:mysql://.*:3306|jdbc:mysql://'"${DBHOST}"':3306|g' hello/grails-app/conf/DataSource.groovy
grails -Dgrails.work.dir=${IROOT}/.grails -non-interactive -plain-output refresh-dependencies
grails -Dgrails.work.dir=${IROOT}/.grails -non-interactive -plain-output compile
-export CABAL_HOME=/opt/cabal/1.20
-export HASKELL_HOME=/opt/ghc/7.8.3
-export LANG=en_US.UTF-8
+export CABAL_HOME=/opt/cabal/1.20
+export HASKELL_HOME=/opt/ghc/7.8.3
+export LANG=en_US.UTF-8
sed -i 's|host=".*"|host="'"${DBHOST}"'"|g' bench/cfg/db.cfg
export PATH=${HASKELL_HOME}/bin:$PATH
@@ -10,6 +10,6 @@ that contains at least
This installs the OpenJDK 7 JVM.
Frameworks can also choose to install Oracle Java 8 JVM by declaring a dependency on "java8"
-instead of java. In order to use Java 8 JVM frameworks need to add the following line in their "bash_profile.sh" file:
+instead of java. In order to use Java 8 JVM frameworks need to add the following line in their "setup.sh" file:
export JAVA_HOME=/opt/java8
sed -i 's|localhost|'"${DBHOST}"'|g' src/main/webapp/WEB-INF/resin-web.xml
sed -i 's|localhost|'"${DBHOST}"'|g' src/main/java/app/config/DbConfig.java
@@ -7,6 +7,9 @@
# of their initial setup. On Windows, the script can be run through
# Git bash.
projectName="GeminiHello"
machineNameUpper="`echo $HOSTNAME|tr '[a-z]' '[A-Z]'`"
machineNameLower="`echo $HOSTNAME|tr '[A-Z]' '[a-z]'`"
-export PLAY1_HOME=${IROOT}/play-1.2.5
+export PLAY1_HOME=${IROOT}/play-1.2.5
sed -i 's|jdbc:mysql://.*:3306|jdbc:mysql://'"${DBHOST}"':3306|g' conf/application.conf
@@ -1 +0,0 @@
-# Intentionally blank
-export JAVA_HOME=/opt/java8
-export JAVA_EXE=$JAVA_HOME/bin/java
@@ -1,6 +1,6 @@
sed -i 's|localhost|'"${DBHOST}"'|g' src/main/resources/application.properties
sed -i 's|mysql://.*:3306|mysql://'"${DBHOST}"':3306|g' src/main/webapp/WEB-INF/resin-web.xml
sed -i 's|mysql://.*:3306|mysql://'"${DBHOST}"':3306|g' hello/src/main/webapp/WEB-INF/resin-web.xml
-export NODE_HOME=${IROOT}/node-v0.10.8-linux-x64
+export NODE_HOME=${IROOT}/node-v0.10.8-linux-x64
sed -i 's|mongodb://.*/hello_world|mongodb://'"${DBHOST}"'/hello_world|g' app.js
sed -i 's|localhost|'"${DBHOST}"'|g' app.js
@@ -1,3 +1,5 @@
fw_depends nodejs
sed -i 's|localhost|'"${DBHOST}"'|g' hello.js
sed -i 's|mongodb//.*/hello_world|mongodb//'"${DBHOST}"'/hello_world|g' hello.js
-export OPENRESTY_HOME=${IROOT}/openresty-1.7.7.1
@@ -4,6 +4,7 @@ sed -i 's|DBHOSTNAME|'"${DBHOST}"'|g' config.lua
sed -i 's|DBHOSTNAME|'"${DBHOST}"'|g' config.moon
sed -i 's|DBHOSTNAME|'"${DBHOST}"'|g' nginx.conf
-export PATH=${OPENRESTY_HOME}/nginx/sbin:$PATH
+export LAPIS_OPENRESTY=${IROOT}/openresty-1.7.7.1
+export PATH=${LAPIS_OPENRESTY}/nginx/sbin:$PATH
lapis server production &
+export OPENRESTY_HOME=${IROOT}/openresty-1.7.7.1
sed -i 's|CWD|'"${TROOT}"'|g' nginx.conf
sed -i 's|DBHOSTNAME|'"${DBHOST}"'|g' app.lua
@@ -100,7 +100,7 @@ install the dependencies required by your project.
fw_depends php composer
# Download dependencies
- ${IROOT}/php-5.5.17/bin/php $IROOT/composer.phar install \
+ ${IROOT}/php-5.5.17/bin/php ${COMPOSER_HOME}/composer.phar install \
--no-interaction --working-dir $TROOT --no-progress \
--optimize-autoloader
@@ -139,7 +139,7 @@ queries as they are shown. Use these steps
# This will manually prompt you for your Github credentials
# to avoid the Github rate limit
# When this command completes, you will have a lock file
--working-dir $TROOT
# Add the lock file to this repository
-export PHP_HOME=${IROOT}/php-5.5.17
-export PHP_FPM=$PHP_HOME/sbin/php-fpm
-export NGINX_HOME=${IROOT}/nginx
@@ -1,8 +1,9 @@
+export PHP_HOME=${IROOT}/php-5.5.17
+export COMPOSER_HOME=${IROOT}/php-composer
fw_depends php nginx composer
-PHP_HOME=${IROOT}/php-5.5.17
-${PHP_HOME}/bin/php $IROOT/composer.phar install \
+${PHP_HOME}/bin/php ${COMPOSER_HOME}/composer.phar install \
--no-interaction --working-dir $TROOT \
--no-progress --optimize-autoloader
+export PHP_FPM=$PHP_HOME/sbin/php-fpm
+export NGINX_HOME=${IROOT}/nginx
sed -i 's|localhost|'"${DBHOST}"'|g' app/index.php
sed -i 's|root .*/FrameworkBenchmarks/php-yii2|root '"${TROOT}"'|g' deploy/nginx.conf
@@ -1,11 +1,12 @@
export PHP_HOME=${IROOT}/php-5.5.17
export PHP_FPM=$PHP_HOME/sbin/php-fpm
export NGINX_HOME=${IROOT}/nginx
@@ -1,13 +1,12 @@
+export PHP_FPM=${PHP_HOME}/sbin/php-fpm
@@ -1,12 +1,13 @@
@@ -1,4 +1,8 @@
sed -i 's|localhost|'"${DBHOST}"'|g' fuel/app/config/production/db.php
sed -i 's|root .*/FrameworkBenchmarks/php-fuel|root '"${TROOT}"'|g' deploy/nginx.conf
@@ -1,9 +0,0 @@
-export PATH="$PHP_HOME/bin:$PHP_HOME/sbin:$PATH"
@@ -1,5 +1,10 @@
+export PATH="$PHP_HOME/bin:$PHP_HOME/sbin:$PATH"
sed -i 's|host=localhost;|host='"${DBHOST}"';|g' once.php.inc
sed -i 's|SourceRoot = .*/FrameworkBenchmarks/hhvm|SourceRoot = '"${TROOT}"'|g' deploy/config.hdf
sed -i 's|Path = .*/.hhvm.hhbc|Path = '"${TROOT}"'/.hhvm.bbhc|g' deploy/config.hdf
@@ -1,12 +1,12 @@
-fw_depends php nginx composer
+fw_depends php nginx composer
@@ -1,14 +1,13 @@
sed -i 's|localhost|'"${DBHOST}"'|g' index.php
sed -i 's|.*/FrameworkBenchmarks/php-fatfree|'"${TROOT}"'|g' deploy/php
sed -i 's|Directory .*/FrameworkBenchmarks/php-fatfree|Directory '"${TROOT}"'|g' deploy/php
@@ -1,9 +1,11 @@
-${PHP_HOME}/bin/php ${IROOT}/composer.phar install \
--no-interaction --working-dir ${TROOT} \
- --no-progress --optimize-autoloader
+ --no-progress --optimize-autoloader
@@ -1,6 +1,7 @@
export PHP_FPM=${PHP_HOME}/sbin/php-fpm
@@ -11,4 +12,4 @@ sed -i 's|/home/vagrant/FrameworkBenchmarks/installs/nginx/|'"${IROOT}"'/nginx/|
export PATH="${PHP_HOME}/bin:${PHP_HOME}/sbin:$PATH"
$PHP_FPM --fpm-config ${FWROOT}/config/php-fpm.conf -g ${TROOT}/deploy/php-fpm.pid
-${NGINX_HOME}/sbin/nginx -c ${TROOT}/deploy/nginx.conf
+${NGINX_HOME}/sbin/nginx -c ${TROOT}/deploy/nginx.conf