From b31ef35ccc827d745cc5a2c65e5554242812ed45 Mon Sep 17 00:00:00 2001 From: Felipe Coury Date: Fri, 21 Jun 2013 02:55:20 -0300 Subject: [PATCH 1/3] added go test app --- tests/go/.godir | 1 + tests/go/Procfile | 1 + tests/go/web.go | 20 ++++++++++++++++++++ 3 files changed, 22 insertions(+) create mode 100644 tests/go/.godir create mode 100644 tests/go/Procfile create mode 100644 tests/go/web.go diff --git a/tests/go/.godir b/tests/go/.godir new file mode 100644 index 000000000..4023f2095 --- /dev/null +++ b/tests/go/.godir @@ -0,0 +1 @@ +go diff --git a/tests/go/Procfile b/tests/go/Procfile new file mode 100644 index 000000000..4890262c0 --- /dev/null +++ b/tests/go/Procfile @@ -0,0 +1 @@ +web: go diff --git a/tests/go/web.go b/tests/go/web.go new file mode 100644 index 000000000..a51f5db43 --- /dev/null +++ b/tests/go/web.go @@ -0,0 +1,20 @@ +package main + +import ( + "fmt" + "net/http" + "os" +) + +func main() { + http.HandleFunc("/", hello) + fmt.Println("listening...") + err := http.ListenAndServe(":"+os.Getenv("PORT"), nil) + if err != nil { + panic(err) + } +} + +func hello(res http.ResponseWriter, req *http.Request) { + fmt.Fprintln(res, "hello, world") +} From f9ffc72f5ebe795cc11c848e2de98fc8ddde7098 Mon Sep 17 00:00:00 2001 From: Felipe Coury Date: Fri, 21 Jun 2013 02:57:37 -0300 Subject: [PATCH 2/3] added php test app --- tests/php/index.php | 8 ++++++++ 1 file changed, 8 insertions(+) create mode 100644 tests/php/index.php diff --git a/tests/php/index.php b/tests/php/index.php new file mode 100644 index 000000000..5ad4f9f05 --- /dev/null +++ b/tests/php/index.php @@ -0,0 +1,8 @@ + + + PHP Test + + + Hello World'; ?> + + From fa9757b78445be41137bbb9d2353ae8a465ca026 Mon Sep 17 00:00:00 2001 From: Felipe Coury Date: Fri, 21 Jun 2013 02:57:48 -0300 Subject: [PATCH 3/3] added python test app --- tests/python/Procfile | 1 + tests/python/hello.py | 8 ++++++++ tests/python/requirements.txt | 5 +++++ 3 files changed, 14 insertions(+) create mode 100644 tests/python/Procfile create mode 100644 tests/python/hello.py create mode 100644 tests/python/requirements.txt diff --git a/tests/python/Procfile b/tests/python/Procfile new file mode 100644 index 000000000..4ea72e373 --- /dev/null +++ b/tests/python/Procfile @@ -0,0 +1 @@ +web: gunicorn hello:app diff --git a/tests/python/hello.py b/tests/python/hello.py new file mode 100644 index 000000000..90b188892 --- /dev/null +++ b/tests/python/hello.py @@ -0,0 +1,8 @@ +import os +from flask import Flask + +app = Flask(__name__) + +@app.route('/') +def hello(): + return 'Hello World!' diff --git a/tests/python/requirements.txt b/tests/python/requirements.txt new file mode 100644 index 000000000..7299a1046 --- /dev/null +++ b/tests/python/requirements.txt @@ -0,0 +1,5 @@ +Flask==0.9 +Jinja2==2.6 +Werkzeug==0.8.3 +gunicorn==0.17.2 +