Skip to content

Commit 8dc2890

Browse files
committed
WIP: updating test using new profiling images
1 parent 62ae9b5 commit 8dc2890

2 files changed

Lines changed: 18 additions & 5 deletions

File tree

src/tests/multi-server/environments/profiling.yml.j2

Lines changed: 9 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -15,14 +15,18 @@ services:
1515
profiling-server:
1616
image: freeradius-prof:latest
1717
volumes:
18+
# Mount <freeradius-server-src> directory - needed since we haven't built the server in the image
19+
#- .:/user/local/src/repositories/freeradius/
20+
#- ${DATA_PATH}/build/:/srv/freeradius/build/
21+
1822
# profiling-server server config
19-
- ${DATA_PATH}/freeradius/profiling-server/radiusd.conf:/etc/freeradius/radiusd.conf
23+
- ${DATA_PATH}/freeradius/profiling-server/radiusd.conf:/usr/local/src/repositories/freeradius-server/radiusd.conf
2024
# proto_load packet configuration and statistics output
21-
- ${DATA_PATH}/freeradius/profiling-server/proto_load_config.env:/etc/freeradius/proto_load_config.env
22-
- ${DATA_PATH}/freeradius/profiling-server/load-generator-packets/:/etc/freeradius/load-generator-packets/
23-
- ${DATA_PATH}/freeradius/profiling-server/stats/load-generator-stats.csv:/etc/freeradius/stats/load-generator-stats.csv
25+
- ${DATA_PATH}/freeradius/profiling-server/proto_load_config.env:/usr/local/src/repositories/freeradius-server/proto_load_config.env
26+
- ${DATA_PATH}/freeradius/profiling-server/load-generator-packets/:/usr/local/src/repositories/freeradius-server/load-generator-packets/
27+
- ${DATA_PATH}/freeradius/profiling-server/stats/load-generator-stats.csv:/usr/local/src/repositories/freeradius-server/stats/load-generator-stats.csv
2428
# Profiling results directory
25-
- ${DATA_PATH}/prof-results/:/etc/prof-results/
29+
- ${DATA_PATH}/prof-results/:/user/local/src/repositories/prof-results/
2630
# Listener directory
2731
- ${LISTENER_DIR}/:/var/run/multi-server/
2832
entrypoint:

src/tests/multi-server/tests/prof-accept/template.yml.j2

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,15 @@ states:
77
host:
88
profiling-server:
99
actions:
10+
- execute_command:
11+
command: |
12+
cd /srv/freeradius
13+
/profile/configure.sh
14+
make -j$(nproc)
15+
make install
16+
ln -sf /usr/local/sbin/radiusd /usr/local/sbin/freeradius
17+
ln -sf /etc/freeradius/radiusd.conf /etc/freeradius/freeradius.conf
18+
ln -sf /etc/freeradius /etc/raddb
1019
- execute_command:
1120
command: |
1221
#

0 commit comments

Comments
 (0)