TESTS="queue_name"

simulate_cmds="sbatch rm" # Simulate rm in order not to get job script deleted
read -r -d '' simulator_output <<'EOF'
rargs="/sbatch .*/"
output="Submitted batch job 1"

rargs="/rm .*/"
output=""
EOF

function test_queue_name()
{
read -r -d '' arc_test_configuration <<'EOF'
[lrms]
slurm_bin_path=@PWD@/bin
[queue:nordugrid]
EOF

read -r -d '' job_description_input <<'EOF'
&(executable = "/bin/true")
 (queue = "nordugrid")
EOF

cat "${SRCDIR}/queue-test-queue_name.patch" | patch -sf -p1 -d ${SRCDIR} -o ${testdir}/expected_lrms_job_script.tmpl
}
