Skip to content

Commit

Permalink
wip
Browse files Browse the repository at this point in the history
  • Loading branch information
zeriyoshi committed Aug 14, 2024
1 parent 2a9eee2 commit 0598697
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -35,15 +35,15 @@ jobs:
- name: Test extension with LLVM Sanitizer (MemorySanitizer)
if: matrix.platform == 'linux/amd64' && matrix.distro != 'alpine'
run: |
docker compose run --entrypoint=/usr/local/bin/pskel --rm --env TEST_PHP_ARGS="--msan" --env CC="/usr/bin/clang" --env CXX="/usr/bin/clang++" --env CFLAGS="-fsanitize=memory -DZEND_TRACK_ARENA_ALLOC" --env CPPFLAGS="-fsanitize=memory -DZEND_TRACK_ARENA_ALLOC" shell test clang-msan-php
docker compose run --entrypoint=/usr/local/bin/pskel --rm --env TEST_PHP_ARGS="--msan" --env USE_ZEND_ALLOC=0 --env USE_TRACKED_ALLOC=1 --env ZEND_DONT_UNLOAD_MODULES=1 --env CC="/usr/bin/clang" --env CXX="/usr/bin/clang++" --env CFLAGS="-fsanitize=memory -DZEND_TRACK_ARENA_ALLOC" --env CPPFLAGS="-fsanitize=memory -DZEND_TRACK_ARENA_ALLOC" shell test clang-msan-php
- name: Test extension with LLVM Sanitizer (AddressSanitizer)
if: matrix.platform == 'linux/amd64' && matrix.distro != 'alpine'
run: |
docker compose run --entrypoint=/usr/local/bin/pskel --rm --env TEST_PHP_ARGS="--asan" --env CC="/usr/bin/clang" --env CXX="/usr/bin/clang++" --env CFLAGS="-fsanitize=address -DZEND_TRACK_ARENA_ALLOC" --env CPPFLAGS="-fsanitize=address -DZEND_TRACK_ARENA_ALLOC" shell test clang-asan-php
docker compose run --entrypoint=/usr/local/bin/pskel --rm --env TEST_PHP_ARGS="--asan" --env USE_ZEND_ALLOC=0 --env USE_TRACKED_ALLOC=1 --env ZEND_DONT_UNLOAD_MODULES=1 --env CC="/usr/bin/clang" --env CXX="/usr/bin/clang++" --env CFLAGS="-fsanitize=address -DZEND_TRACK_ARENA_ALLOC" --env CPPFLAGS="-fsanitize=address -DZEND_TRACK_ARENA_ALLOC" shell test clang-asan-php
- name: Test extension with LLVM Sanitizer (UndefinedBehaviorSanitizer)
if: matrix.platform == 'linux/amd64' && matrix.distro != 'alpine'
run: |
docker compose run --entrypoint=/usr/local/bin/pskel --rm --env CC="/usr/bin/clang" --env CXX="/usr/bin/clang++" --env CFLAGS="-fsanitize=undefined -DZEND_TRACK_ARENA_ALLOC" --env CPPFLAGS="-fsanitize=undefined -DZEND_TRACK_ARENA_ALLOC" shell test clang-ubsan-php
docker compose run --entrypoint=/usr/local/bin/pskel --rm --env USE_ZEND_ALLOC=0 --env USE_TRACKED_ALLOC=1 --env ZEND_DONT_UNLOAD_MODULES=1 --env CC="/usr/bin/clang" --env CXX="/usr/bin/clang++" --env CFLAGS="-fsanitize=undefined -DZEND_TRACK_ARENA_ALLOC" --env CPPFLAGS="-fsanitize=undefined -DZEND_TRACK_ARENA_ALLOC" shell test clang-ubsan-php
# Windows:
# runs-on: windows-2022
# defaults:
Expand Down
8 changes: 4 additions & 4 deletions pskel.sh
Original file line number Diff line number Diff line change
Expand Up @@ -43,10 +43,10 @@ EOF
fi

for BIN in "${1}" "${1}ize" "${1}-config"; do
if ! type "${1}" > /dev/null 2>&1; then
echo "Invalid argument: '${1}', executable file not found" >&2
exit 1
fi
if ! type "${1}" > /dev/null 2>&1; then
echo "Invalid argument: '${1}', executable file not found" >&2
exit 1
fi
done

PSKEL_EXT_DIR="/ext"
Expand Down

0 comments on commit 0598697

Please sign in to comment.