xref: /aosp_15_r20/external/aws-crt-java/.builder/actions/localhost_test.py (revision 3c7ae9de214676c52d19f01067dc1a404272dc11)
1import Builder
2import sys
3import os
4
5
6class LocalhostTest(Builder.Action):
7
8    def run(self, env):
9        env.shell.setenv('AWS_CRT_MEMORY_TRACING', '2')
10        actions = []
11        if os.system("mvn -Dtest=Http2ClientLocalHostTest test -DredirectTestOutputToFile=true -DforkCount=0 \
12            -Daws.crt.memory.tracing=2 \
13            -Daws.crt.debugnative=true \
14            -Daws.crt.log.level=Debug \
15            -Daws.crt.localhost=true"):
16            # Failed
17            actions.append("exit 1")
18
19        return Builder.Script(actions, name='aws-crt-java-test')
20