1CONFIG_REQUIRES_FULL_LIBC=y
2CONFIG_COMMON_LIBC_MALLOC_ARENA_SIZE=65536
3
4# CONFIG_THRIFT Dependencies
5CONFIG_CPP=y
6CONFIG_STD_CPP17=y
7CONFIG_CPP_EXCEPTIONS=y
8CONFIG_GLIBCXX_LIBCPP=y
9CONFIG_POSIX_API=y
10CONFIG_NETWORKING=y
11CONFIG_NET_TCP=y
12CONFIG_NET_SOCKETS=y
13CONFIG_NET_SOCKETPAIR=y
14CONFIG_HEAP_MEM_POOL_SIZE=16384
15CONFIG_EVENTFD=y
16
17CONFIG_THRIFT=y
18
19# Test dependencies
20CONFIG_ZTEST=y
21CONFIG_TEST_RANDOM_GENERATOR=y
22CONFIG_NET_TEST=y
23CONFIG_NET_DRIVERS=y
24CONFIG_NET_LOOPBACK=y
25CONFIG_NET_TCP_TIME_WAIT_DELAY=100
26
27# Some platforms require relatively large stack sizes.
28# This can be tuned per-board.
29CONFIG_ZTEST_STACK_SIZE=8192
30CONFIG_MAIN_STACK_SIZE=4096
31CONFIG_SYSTEM_WORKQUEUE_STACK_SIZE=8192
32CONFIG_THRIFTTEST_SERVER_STACK_SIZE=8192
33CONFIG_NET_TCP_WORKQ_STACK_SIZE=4096
34CONFIG_NET_MGMT_EVENT_STACK_SIZE=4096
35CONFIG_IDLE_STACK_SIZE=4096
36CONFIG_NET_RX_STACK_SIZE=8192
37
38CONFIG_NET_BUF_TX_COUNT=20
39CONFIG_NET_PKT_TX_COUNT=20
40CONFIG_NET_BUF_RX_COUNT=20
41CONFIG_NET_PKT_RX_COUNT=20
42
43# We can get away with using fewer sockets in the non-TLS tests because we use
44# TFDServer.cpp for our server and socketpair() for our channel. We do not
45# need an accept socket for the server (in contrast to TCP), it only needs 1
46# eventfd for server cancellation, and there are no cancellation sockets
47# required because we close them in the testsuite.
48#
49# File Descriptor Usage
50# ---------------------
51# stdin, stdout, stderr: 3
52# socketpair for channel: 2
53# eventfd for cancellation: 1
54CONFIG_POSIX_MAX_FDS=6
55
56# Network address config
57CONFIG_NET_IPV4=y
58CONFIG_NET_CONFIG_SETTINGS=y
59CONFIG_NET_CONFIG_MY_IPV4_ADDR="192.0.2.1"
60