Commit d59ea6ae488be64a9291293c8781efb4be30217d
1 parent
9de90e12
Exists in
master
and in
22 other branches
util/debian-install: improve simple test script
Showing
1 changed file
with
13 additions
and
1 deletions
Show diff stats
util/debian-install/test
1 | #!/bin/sh | 1 | #!/bin/sh |
2 | 2 | ||
3 | -test_noosfero_running() { | 3 | +test_web_backend_running() { |
4 | assertTrue 'Noosfero running' 'pgrep -u noosfero -f thin' | 4 | assertTrue 'Noosfero running' 'pgrep -u noosfero -f thin' |
5 | } | 5 | } |
6 | 6 | ||
7 | +test_delayed_job_running() { | ||
8 | + assertTrue 'Delayed Job running' 'pgrep -u noosfero -f delayed_job' | ||
9 | +} | ||
10 | + | ||
11 | +test_feed_updater_running() { | ||
12 | + assertTrue 'Feed updater running' 'pgrep -u noosfero -f feed-updater' | ||
13 | +} | ||
14 | + | ||
7 | test_noosfero_responds() { | 15 | test_noosfero_responds() { |
8 | assertTrue 'Noosfero responds' 'curl --fail http://localhost/' | 16 | assertTrue 'Noosfero responds' 'curl --fail http://localhost/' |
9 | } | 17 | } |
10 | 18 | ||
19 | +test_noosfero_content() { | ||
20 | + assertTrue 'Noosfero content' 'curl --fail http://localhost/ | grep "meta.*property=.noosfero:root"' | ||
21 | +} | ||
22 | + | ||
11 | . shunit2 | 23 | . shunit2 |