This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from ast import literal_eval | |
defaults = dict(config.items("Defaults")) | |
defaults = { k: literal_eval(v) for k, v in defaults.iteritems()} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Searching for rvm | |
Installing language: rvm in $FWROOT/installs | |
++ . /tmp/FrameworkBenchmarks/toolset/setup/linux/languages/rvm.sh | |
++++ fw_exists rvm.installed | |
++++ '[' -f rvm.installed ']' | |
++++ '[' -d rvm.installed ']' | |
++++ echo 1 | |
+++ RETCODE=1 | |
+++ '[' '!' 1 == 0 ']' | |
+++ '[' '' '!=' true ']' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#################### Inside benchmarker.__init__ | |
self.__dict__.update(args) | |
self.list_tests = bool(self.list_tests) | |
self.list_test_metadata = bool(self.list_test_metadata) | |
if self.parse == "None": | |
self.parse = None | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Run the benchmarker in the specified mode | |
if benchmarker.list_tests == "True": | |
print "1" | |
benchmarker.run_list_tests() | |
elif benchmarker.list_test_metadata == "True": | |
print "2" | |
benchmarker.run_list_test_metadata() | |
elif benchmarker.parse != "None": | |
print "3" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
I was trying to do that same recursive PPID trick using the process id that resulted from __run_test, but the main issue was that a lot of tests start using "sudo nginx ...", which means that nginx immediately calls set session ID and I couldn't find the nginx master process. Your approach of finding the process bound to that port will help you find the nginx master process, and then from there you should be able to use the recursive PPID trick just fine (no one calls set session id twice...) | |
5:34 PM |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
aspnet: aspnet-mvc: aspnet-mongodb-raw | |
aspnet: aspnet-mvc: aspnet-sqlserver-entityframework | |
aspnet: aspnet-mvc: aspnet-mono-postgresql-entityframework | |
aspnet: aspnet-mvc: aspnet-postgresql-raw | |
aspnet: aspnet-mvc: aspnet-mysql-raw | |
aspnet: aspnet-mvc: default | |
aspnet: aspnet-mvc: aspnet-mono | |
aspnet: aspnet-mvc: aspnet-sqlserver-raw | |
aspnet: aspnet-mvc: aspnet-postgresql-entityframework | |
aspnet: aspnet-mvc: aspnet-mono-postgresql-raw |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
----------------------- # tests run ------------------------------------ | |
tests = ["1", "1,", "0.23", # Single numbers | |
"1,5,7", "1,2,-3", "1,1000,12,1,1,1,1,1", # Lists | |
"1:2:10", "1:2", "10:-2:0", # Sequences | |
"1,2:1:5" # Complex | |
] | |
----------------------- # results! ------------------------------------ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
-------------------- install.sh -------------------- | |
#install both java7 and java8 | |
fw_depends java resin maven java8 | |
-------------------- benchmark_config -------------------- | |
# adds a test for java8 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env node | |
var fs = require("fs"); | |
var som = fs.readFileSync("./api.js", "utf-8"); | |
var jsdom = require("jsdom"); | |
function onError(error) { | |
console.log("ERROR: " + error.code + ": "+ error.message); | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
input { | |
file { | |
type => "couchpotato" | |
path => [ "/logs/couchpotato/CouchPotato.log" ] | |
start_position => "beginning" | |
sincedb_path => "/dev/null" | |
} | |
} |