Skip to content

Commit

Permalink
fixup smoke test after move
Browse files Browse the repository at this point in the history
  • Loading branch information
bryanlarsen committed Sep 22, 2012
1 parent 536cfba commit 25eb3f1
Showing 1 changed file with 18 additions and 1 deletion.
19 changes: 18 additions & 1 deletion integration_tests/smoke_test.sh
@@ -1,7 +1,12 @@
#!/bin/bash

unset HOBODEV

cd ..
gems=`rake gems[build,force] | grep File: | cut -f 4 -d ' '`
full_gems=`for f in $gems ; do find . -name $f ; done`
cd integration_tests
full_gems=`for f in $gems ; do find .. -name $f ; done`

source rvm gemset create hobo-smoke
source rvm gemset use hobo-smoke
source rvm --force gemset empty hobo-smoke
Expand All @@ -18,6 +23,8 @@ rails s -p 3003 &
pid=$!
sleep 45

set -e

wget http://localhost:3003/
grep "Smoke" index.html
grep "Congratulations" index.html
Expand All @@ -27,6 +34,8 @@ grep "No records to display" users
grep 'Users : Smoke - Admin' users
grep "New User" users

set +e

cd ..

kill $pid || true
Expand All @@ -48,11 +57,15 @@ rails s -p 3003 &
pid=$!
sleep 45

set -e

wget http://localhost:3003/
grep "Things" index.html
grep "Smoke" index.html
grep "Congratulations" index.html

set +e

kill $pid || true
sleep 1
kill -9 $pid || true
Expand All @@ -69,6 +82,8 @@ rails s -p 3003 &
pid=$!
sleep 45

set -e

wget http://localhost:3003/
grep "Smoke" index.html
grep "Congratulations" index.html
Expand All @@ -78,6 +93,8 @@ grep "No records to display" users
grep 'Users : Smoke - Admin' users
grep "New User" users

set +e

kill $pid || true
sleep 1
kill -9 $pid || true
Expand Down

0 comments on commit 25eb3f1

Please sign in to comment.