2
# Define location of slurm executables (if not in default search path)
3
#slurm_bin="/home/jette/slurm.way/bin/"
5
# Create private config file
6
# Set AuthType=auth/dummy
7
file_orig=`${slurm_bin}scontrol show config | awk '{ if ( $1 ~ /SLURM_CONFIG_FILE/ ) { print $3 } }'`
8
grep -iv AuthType <$file_orig >tmp.$$
9
echo "AuthType=auth/dummy" >>tmp.$$
11
# Run srun using this config file
12
export SLURM_CONF=tmp.$$
14
${slurm_bin}srun /bin/id --output=tmp.o.$$
16
grep --quiet uid tmp.o.$$
17
if [ "$?" == 1 ] ; then
18
echo "srun errors above are expected"