Skip to content

Commit

Permalink
Fix the first test first
Browse files Browse the repository at this point in the history
  • Loading branch information
Michael Vasseur committed Nov 20, 2023
1 parent 6169a66 commit 4cd2634
Showing 1 changed file with 28 additions and 27 deletions.
55 changes: 28 additions & 27 deletions .github/jobs/configure-checks/all.bats
Original file line number Diff line number Diff line change
Expand Up @@ -431,33 +431,34 @@ compile_assertions_finished () {
run make domserver
assert_success
run make judgehost
assert_line "SHOW OUTPUT"
assert_success
}

@test "Build domserver disabled" {
setup
run run_configure --disable-domserver
refute_line " * domserver...........: /opt/domjudge/domserver"
for group in www-data apache nginx; do
refute_line " * webserver group.....: $group"
done
assert_line " * judgehost...........: /opt/domjudge/judgehost"
assert_line " * runguard group......: domjudge-run"
run make domserver
assert_failure
run make judgehost
assert_success
}

@test "Build judgehost disabled" {
setup
run run_configure --disable-judgehost
assert_line " * domserver...........: /opt/domjudge/domserver"
assert_regex "^ \* webserver group\.\.\.\.\.: (www-data|apache|nginx)$"
refute_line " * judgehost...........: /opt/domjudge/judgehost"
refute_line " * runguard group......: domjudge-run"
run make domserver
assert_success
run make judgehost
assert_failure
}
#@test "Build domserver disabled" {
# setup
# run run_configure --disable-domserver
# refute_line " * domserver...........: /opt/domjudge/domserver"
# for group in www-data apache nginx; do
# refute_line " * webserver group.....: $group"
# done
# assert_line " * judgehost...........: /opt/domjudge/judgehost"
# assert_line " * runguard group......: domjudge-run"
# run make domserver
# assert_failure
# run make judgehost
# assert_success
#}
#
#@test "Build judgehost disabled" {
# setup
# run run_configure --disable-judgehost
# assert_line " * domserver...........: /opt/domjudge/domserver"
# assert_regex "^ \* webserver group\.\.\.\.\.: (www-data|apache|nginx)$"
# refute_line " * judgehost...........: /opt/domjudge/judgehost"
# refute_line " * runguard group......: domjudge-run"
# run make domserver
# assert_success
# run make judgehost
# assert_failure
#}

0 comments on commit 4cd2634

Please sign in to comment.