Skip to content

Commit

Permalink
DEBUG
Browse files Browse the repository at this point in the history
  • Loading branch information
eldering committed Sep 18, 2024
1 parent 2601b27 commit 35d55c2
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 5 deletions.
8 changes: 5 additions & 3 deletions .github/jobs/configure-checks/all.bats
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/usr/bin/env bats
#!/usr/bin/env bats --trace

load 'assert'

Expand Down Expand Up @@ -46,13 +46,13 @@ run_configure () {

repo-install () {
args=$(translate $@)
${cmd} install $args -y >/dev/null
${cmd} install $args -y
}
repo-remove () {
args=$(translate $@)
${cmd} remove $args -y #>/dev/null
if [ "$distro_id" != "ID=fedora" ]; then
apt-get autoremove -y 2>/dev/null
apt-get autoremove -y
fi
}

Expand Down Expand Up @@ -178,6 +178,8 @@ compile_assertions_finished () {
groupdel ${www_group} || true
done
repo-install httpd
grep -E 'nginx|apache' /etc/passwd
grep -E 'nginx|apache' /etc/group
run ./configure --with-domjudge-user=$u
assert_line "checking webserver-group... apache (detected)"
assert_line " * webserver group.....: apache"
Expand Down
10 changes: 8 additions & 2 deletions .github/jobs/configure-checks/setup_configure_image.sh
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,14 @@ distro_id=$(grep "^ID=" /etc/os-release)
# Install everything for configure and testing
case $distro_id in
"ID=fedora")
grep -E 'nginx|apache' /etc/passwd
grep -E 'nginx|apache' /etc/group

dnf install -y pkg-config make bats autoconf automake util-linux \
php-fpm
httpd

grep -E 'nginx|apache' /etc/passwd
grep -E 'nginx|apache' /etc/group
;;
*)
apt-get update; apt-get full-upgrade -y
Expand All @@ -27,4 +33,4 @@ make configure
cp submit/assert.bash .github/jobs/configure-checks/

# Run the configure tests for this usecase
test_path="/__w/domjudge/domjudge" bats .github/jobs/configure-checks/all.bats
test_path="/__w/domjudge/domjudge" bats --trace .github/jobs/configure-checks/all.bats

0 comments on commit 35d55c2

Please sign in to comment.