Skip to content
This repository has been archived by the owner on Nov 8, 2023. It is now read-only.

Commit

Permalink
Add a gitlab-ci file, and a fix test on Fedora
Browse files Browse the repository at this point in the history
  • Loading branch information
jvoisin committed Jan 3, 2019
1 parent fc742d6 commit df84a0f
Show file tree
Hide file tree
Showing 2 changed files with 37 additions and 0 deletions.
25 changes: 25 additions & 0 deletions .gitlab-ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
stages:
- testsuite

testsuite:debian:
image: debian
stage: testsuite
script:
- apt-get -qqy update
- apt-get -qqy install --no-install-recommends php-dev gcc make
- make debug

testsuite:fedora:
image: fedora
stage: testsuite
script:
- dnf install -y php-devel gcc make
- make debug

#testsuite:alpine:
# image: alpine
# stage: testsuite
# script:
# - apk update
# - apk add php7-dev make gcc musl-dev
# - make debug
12 changes: 12 additions & 0 deletions src/tests/dump_request_nonwriteable_folder.phpt
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,18 @@ Dump request - nonwriteable folder.
--SKIPIF--
<?php
if (!extension_loaded("snuffleupagus")) { print "skip"; }

// root has write privileges "any" folders
if (TRUE == function_exists("posix_getuid")) {
if (0 == posix_getuid()) {
print "skip";
}
} elseif (TRUE == function_exists("shell_exec")) {
if ("root" == trim(shell_exec("whoami"))) {
print "skip";
}
}

?>
--POST--
post_a=data_post_a&post_b=data_post_b
Expand Down

0 comments on commit df84a0f

Please sign in to comment.