Skip to content

Commit f661a77

Browse files
committed
job-list: add job-list matching library
Problem: In the future we would like to use RFC31 constraints to filter jobs rather than the current implementation. It would allow users to write far more expressive job filtering queries than can currently be done. Add an initially job matching library to parse and match jobs against constraint objects. Add unit tests.
1 parent cb7ae61 commit f661a77

File tree

4 files changed

+1875
-2
lines changed

4 files changed

+1875
-2
lines changed

src/modules/job-list/Makefile.am

Lines changed: 13 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,10 +29,13 @@ libjob_list_la_SOURCES = \
2929
idsync.h \
3030
idsync.c \
3131
stats.h \
32-
stats.c
32+
stats.c \
33+
match.h \
34+
match.c
3335

3436
TESTS = \
35-
test_job_data.t
37+
test_job_data.t \
38+
test_match.t
3639

3740
test_ldadd = \
3841
$(builddir)/libjob-list.la \
@@ -65,6 +68,14 @@ test_job_data_t_LDADD = \
6568
test_job_data_t_LDFLAGS = \
6669
$(test_ldflags)
6770

71+
test_match_t_SOURCES = test/match.c
72+
test_match_t_CPPFLAGS = \
73+
$(test_cppflags)
74+
test_match_t_LDADD = \
75+
$(test_ldadd)
76+
test_match_t_LDFLAGS = \
77+
$(test_ldflags)
78+
6879
EXTRA_DIST = \
6980
test/R/1node_1core.R \
7081
test/R/1node_4core.R \

0 commit comments

Comments
 (0)