diff --git a/t/Makefile.am b/t/Makefile.am index a84e27e9..8274d920 100644 --- a/t/Makefile.am +++ b/t/Makefile.am @@ -43,6 +43,7 @@ TESTSCRIPTS = \ t1041-view-jobs-by-project.t \ t1042-issue508.t \ t1043-view-jobs-by-bank.t \ + t1044-mf-priority-resource-counting.t \ t5000-valgrind.t \ python/t1000-example.py \ python/t1001_db.py \ diff --git a/t/t1044-mf-priority-resource-counting.t b/t/t1044-mf-priority-resource-counting.t new file mode 100755 index 00000000..8bb1fd8c --- /dev/null +++ b/t/t1044-mf-priority-resource-counting.t @@ -0,0 +1,31 @@ +#!/bin/bash + +test_description='test calculating and storing system core information in priority plugin' + +. `dirname $0`/sharness.sh + +mkdir -p conf.d + +MULTI_FACTOR_PRIORITY=${FLUX_BUILD_DIR}/src/plugins/.libs/mf_priority.so + +export TEST_UNDER_FLUX_SCHED_SIMPLE_MODE="limited=1" +test_under_flux 4 job -o,--config-path=$(pwd)/conf.d + +flux setattr log-stderr-level 1 + +test_expect_success 'load multi-factor priority plugin' ' + flux jobtap load -r .priority-default ${MULTI_FACTOR_PRIORITY} +' + +test_expect_success 'check that mf_priority plugin is loaded' ' + flux jobtap list | grep mf_priority +' + +test_expect_success 'check that cores-per-node count is correct' ' + flux jobtap query mf_priority.so > query.json && + test_debug "jq -S . ncores_per_node.test && + jq -e ".ncores_per_node == $(cat ncores_per_node.test)"