$bperl -e "add_attribute('$conf/bacula-dir.conf', 'Tag', '\"#byresource\"', 'Job', 'MonsterSave')"
+$bperl -e "add_attribute('$conf/bacula-dir.conf', 'Tag', '\"#byjobdef\"', 'JobDefs', 'BackupJob')"
+$bperl -e "add_attribute('$conf/bacula-dir.conf', 'JobDefs', 'BackupJob', 'Job', 'Simple')"
+
sed "s/$HOST-fd/test1-fd/" $tmp/1 >> $conf/bacula-dir.conf
sed "s/$HOST-fd/test2-fd/" $tmp/1 >> $conf/bacula-dir.conf
sed "s/$HOST-fd/test-rst-fd/" $tmp/1 >> $conf/bacula-dir.conf
estat=1
fi
+nb=`grep "#byjobdef" $tmp/tag.50.job | wc -l`
+if [ $nb != 2 ]; then
+ print_debug "ERROR: Should find 1 #byjobdef tag into $tmp/tag.50.job"
+ estat=1
+fi
+
nb=`grep "#tagviamenu" $tmp/tag.50.job | wc -l`
if [ $nb != 4 ]; then
print_debug "ERROR: Should find 2 #tagviamenu tag into $tmp/tag.50.job"