Merge in 5.30
[civicrm-core.git] / ext / afform / bin / test-all.sh
1 #!/bin/bash
2
3 ## Run all afform-related tests
4 ##
5 ## Usage: ./bin/test-all.sh
6
7 set -e
8 EXIT=0
9
10 cv en afform afform_mock
11 AFF_CORE=$(cv path -x afform)
12 AFF_MOCK=$(cv path -x afform_mock)
13
14 pushd "$AFF_CORE" >> /dev/null
15 if ! phpunit6 "$@" ; then
16 EXIT=1
17 fi
18 popd >> /dev/null
19
20 pushd "$AFF_MOCK" >> /dev/null
21 if ! phpunit6 --group e2e "$@" ; then
22 EXIT=1
23 fi
24 popd >> /dev/null
25
26 pushd "$AFF_MOCK" >> /dev/null
27 if ! phpunit6 --group headless "$@" ; then
28 EXIT=1
29 fi
30 popd >> /dev/null
31
32 exit "$EXIT"