Skip to content

Commit 4be3705

Browse files
committed
Makefile & sanity-check changes to build sudo1008 & sudo1009
Signed-off-by: George Kennedy <[email protected]>
1 parent 394aea3 commit 4be3705

File tree

4 files changed

+17
-2
lines changed

4 files changed

+17
-2
lines changed

adaptived/configure.ac

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -87,6 +87,7 @@ AC_CONFIG_FILES([
8787
src/Makefile
8888
tests/Makefile
8989
tests/ftests/Makefile
90+
tests/ftests/sample_data/Makefile
9091
tests/gunit/Makefile
9192
])
9293
AC_CONFIG_FILES([dist/adaptived.spec:dist/adaptived.spec.in])

adaptived/tests/ftests/Makefile.am

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,9 @@
2121
#
2222
# adaptived tests Makefile.am
2323
#
24+
DIST_SUBDIRS = sample_data
25+
SUBDIRS = $(DIST_SUBDIRS)
26+
2427
TESTS = ftests-wrapper.sh ftests-c-wrapper.sh
2528

2629
EXTRA_DIST_PYTHON_FILES = \
@@ -119,6 +122,8 @@ sudo1004_SOURCES = 1004-sudo-effect-sd_bus_setting_add_int_infinity.c ftests.c
119122
sudo1005_SOURCES = 1005-sudo-effect-sd_bus_setting_sub_infinity.c ftests.c
120123
sudo1006_SOURCES = 1006-sudo-effect-sd_bus_setting_set_int_scope.c ftests.c
121124
sudo1007_SOURCES = 1007-sudo-effect-sd_bus_setting_set_str.c ftests.c
125+
sudo1008_SOURCES = 1008-sudo-adaptivemmd_mem_leak.c ftests.c
126+
sudo1009_SOURCES = 1009-sudo-adaptivemmd_watermark.c ftests.c
122127

123128
check_PROGRAMS = \
124129
test002 \
@@ -194,7 +199,9 @@ check_PROGRAMS = \
194199
sudo1004 \
195200
sudo1005 \
196201
sudo1006 \
197-
sudo1007
202+
sudo1007 \
203+
sudo1008 \
204+
sudo1009
198205

199206
EXTRA_DIST_PYTHON_TESTS = \
200207
001-cause-time_of_day.py \
@@ -208,7 +215,9 @@ EXTRA_DIST_SUDO_CFGS = \
208215
1004-sudo-effect-sd_bus_setting_add_int_infinity.json \
209216
1005-sudo-effect-sd_bus_setting_sub_infinity.json \
210217
1006-sudo-effect-sd_bus_setting_set_int_scope.json \
211-
1007-sudo-effect-sd_bus_setting_set_str.json
218+
1007-sudo-effect-sd_bus_setting_set_str.json \
219+
1008-sudo-adaptivemmd_mem_leak.json \
220+
1009-sudo-adaptivemmd_watermark.json
212221

213222
EXTRA_DIST_CFGS = \
214223
001-cause-time_of_day.json.token \

adaptived/tests/ftests/ftests-wrapper.sh

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,7 @@ if [ "$START_DIR" != "$SCRIPT_DIR" ]; then
3636
cp "$SCRIPT_DIR"/*.token "$START_DIR"
3737
cp "$SCRIPT_DIR"/*.schedstat "$START_DIR"
3838
cp "$SCRIPT_DIR"/*.expected "$START_DIR"
39+
cp "$SCRIPT_DIR"/sample_data/*.gz "$START_DIR/sample_data/."
3940
fi
4041

4142

@@ -58,6 +59,7 @@ if [ "$START_DIR" != "$SCRIPT_DIR" ]; then
5859
rm -f "$START_DIR"/*.expected
5960
rm -fr "$START_DIR"/__pycache__
6061
rm -f ftests.py.log
62+
rm -fr "$START_DIR"/sample_data/*_logs*
6163
fi
6264

6365
exit $RET
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
EXTRA_DIST = \
2+
mem_leak_logs.tar.gz \
3+
watermark_logs.tar.gz

0 commit comments

Comments
 (0)