2023-10-23 22:21:50 +02:00
|
|
|
#!/bin/bash -e
|
|
|
|
|
|
|
|
#!/bin/bash -e
|
|
|
|
|
2023-10-23 23:04:58 +02:00
|
|
|
wrap=$PWD/bugs/wrap.php
|
2023-10-23 22:21:50 +02:00
|
|
|
standalone=$PWD/bugs/1_infection.php
|
|
|
|
|
|
|
|
cd /tmp
|
|
|
|
|
|
|
|
rm -rf infection
|
|
|
|
|
2023-10-23 22:37:56 +02:00
|
|
|
git clone https://github.com/infection/infection -b 0.27.4
|
2023-10-23 22:21:50 +02:00
|
|
|
cd infection
|
|
|
|
|
|
|
|
composer i --ignore-platform-reqs
|
|
|
|
|
|
|
|
cp $standalone .
|
2023-10-23 23:04:58 +02:00
|
|
|
cp $wrap .
|
2023-10-23 22:21:50 +02:00
|
|
|
|
|
|
|
echo "About to run the standalone test"
|
|
|
|
|
2023-10-23 23:04:58 +02:00
|
|
|
docker run -v $PWD:/app --rm --privileged -it asan_tests /usr/bin/php /app/wrap.php /app/1_infection.php
|
2023-10-23 22:21:50 +02:00
|
|
|
|
|
|
|
echo "About to run the testsuite"
|
|
|
|
|
2023-10-23 23:04:58 +02:00
|
|
|
docker run -v $PWD:/app --rm --privileged -it asan_tests /usr/bin/php /app/wrap.php vendor/bin/phpunit || EXIT_CODE=$?
|
|
|
|
|
|
|
|
if [ $EXIT_CODE -gt 128 ]; then
|
|
|
|
exit $EXIT_CODE
|
|
|
|
fi
|
2023-10-23 22:21:50 +02:00
|
|
|
|
|
|
|
echo "About to run composer"
|
|
|
|
|
|
|
|
rm -rf vendor
|
|
|
|
|
2023-10-23 23:04:58 +02:00
|
|
|
docker run -v $PWD:/app --rm --privileged -it asan_tests /usr/bin/php /app/wrap.php /usr/bin/composer update
|
2023-10-23 22:21:50 +02:00
|
|
|
|
|
|
|
echo "OK, no bugs!"
|