File tree 2 files changed +42
-2
lines changed
.github/jobs/configure-checks
2 files changed +42
-2
lines changed Original file line number Diff line number Diff line change @@ -40,6 +40,14 @@ setup() {
40
40
repo-install gcc g++ libcgroup-dev composer
41
41
}
42
42
43
+ run_user_stderr () {
44
+ su $u -c " $* " 2>&1
45
+ }
46
+
47
+ run_stderr () {
48
+ " $* " 2>&1
49
+ }
50
+
43
51
run_configure () {
44
52
su $u -c " ./configure $* "
45
53
}
@@ -454,3 +462,31 @@ compile_assertions_finished () {
454
462
run make judgehost
455
463
assert_failure
456
464
}
465
+
466
+ @test " 'Make distclean' has all permissions" {
467
+ if [ " $distro_id " = " ID=fedora" ]; then
468
+ # Fails as libraries are not found
469
+ skip
470
+ fi
471
+ setup
472
+ run run_configure
473
+ run_user_stderr make domserver
474
+ make install-domserver
475
+ run_user_stderr make distclean
476
+ refute_partial " cannot remove"
477
+ refute_partial " Permission denied"
478
+ assert_success
479
+ }
480
+
481
+ @test " 'Make distclean' has permission errors" {
482
+ if [ " $distro_id " = " ID=fedora" ]; then
483
+ # Fails as libraries are not found
484
+ skip
485
+ fi
486
+ setup
487
+ run run_configure
488
+ run_stderr make install-domserver
489
+ run_user_stderr make distclean
490
+ assert_partial " cannot remove"
491
+ assert_partial " Permission denied"
492
+ }
Original file line number Diff line number Diff line change @@ -12,7 +12,11 @@ case $distro_id in
12
12
apt-get update; apt-get full-upgrade -y
13
13
apt-get install pkg-config make bats autoconf -y
14
14
apt-get install composer php php-cli php-curl php-fpm php-gd \
15
- php-intl php-json php-mbstring php-mysql php-xml php-zip -y ;;
15
+ php-intl php-json php-mbstring php-mysql php-xml php-zip \
16
+ acl zip unzip mariadb-server python3-sphinx \
17
+ python3-sphinx-rtd-theme rst2pdf fontconfig python3-yaml \
18
+ latexmk texlive-latex-recommended texlive-latex-extra \
19
+ tex-gyre -y ;;
16
20
esac
17
21
18
22
# Build the configure file
@@ -22,7 +26,7 @@ case $distro_id in
22
26
" ID=fedora" )
23
27
true ;;
24
28
* )
25
- composer install --no-scripts ;;
29
+ (cd webapp ; composer install --no-scripts ) ;;
26
30
esac
27
31
28
32
# Install extra assert statements for bots
You can’t perform that action at this time.
0 commit comments