Skip to content

Commit 0392a85

Browse files
committed
removed commented out code
1 parent d4847c8 commit 0392a85

File tree

1 file changed

+0
-60
lines changed

1 file changed

+0
-60
lines changed

.ci/static-check-unit-test.sh

Lines changed: 0 additions & 60 deletions
Original file line numberDiff line numberDiff line change
@@ -27,66 +27,6 @@ trap onScriptExit EXIT
2727

2828
ensureSyslogIsRunning
2929

30-
## This make runs PHPT
31-
# Disable agent for auxiliary PHP processes to reduce noise in logs
32-
33-
# export ELASTIC_APM_ENABLED=false
34-
# for phptFile in ./tests/*.phpt; do
35-
# msg="Running tests in \`${phptFile}' ..."
36-
# echo "${msg}"
37-
# this_script_name="$( basename "${BASH_SOURCE[0]}" )"
38-
# logger -t "${this_script_name}" "${msg}"
39-
# # Disable exit-on-error
40-
# set +e
41-
# make test TESTS="--show-all ${phptFile}"
42-
# exitCode=$?
43-
44-
# if [ ${exitCode} -ne 0 ] ; then
45-
# echo "Tests in \`${phptFile}' failed"
46-
# phptFileName="${phptFile%.phpt}"
47-
# cat "${phptFileName}.log"
48-
# cat "${phptFileName}.out"
49-
# exit 1
50-
# fi
51-
52-
# # Re-enable exit-on-error
53-
# set -e
54-
# done
55-
56-
# native unit tests will be triggered just after build
57-
# Disable exit-on-error
58-
#set +e
59-
## Run cmocka tests
60-
#function buildAndRunUnitTests () {
61-
# pushd /app/src/ext/unit_tests
62-
# for buildType in Debug Release
63-
# do
64-
# cmake -DCMAKE_BUILD_TYPE=${buildType} .
65-
# make
66-
# ./unit_tests
67-
# unitTestsExitCode=$?
68-
# if [ ${unitTestsExitCode} -ne 0 ] ; then
69-
# popd
70-
# return ${unitTestsExitCode}
71-
# fi
72-
# done
73-
# popd
74-
#}
75-
#buildAndRunUnitTests
76-
## Save errorlevel to be reported later on
77-
# ret=$?
78-
79-
# TODO pawel - makes no sense to me here, should be located after last call to composer
80-
# ## Manipulate JUnit report without multiple testsuites entries.
81-
# for file in "${BUILD_FOLDER}"/*-unit-tests-junit.xml; do
82-
# sed -i.bck ':begin;$!N;s#</testsuites>\n<testsuites>##;tbegin;P;D' "${file}"
83-
# done
84-
85-
# ## Return the error if any
86-
# if [ $ret -ne 0 ] ; then
87-
# exit 1
88-
# fi
89-
9030
# Re-enable exit-on-error
9131
set -e
9232

0 commit comments

Comments
 (0)