#!/bin/sh
#
-# Run a simple backup of the Bacula build directory then create some
-# new files, do an Incremental and restore those two files.
+# Copyright (C) 2000-2015 Kern Sibbald
+# License: BSD 2-Clause; see file LICENSE-FOSS
#
-TestName="incremental-test"
+
+#
+# Test the "comment" option of "run" command
+#
+TestName="comment-test"
JobName=Incremental
. scripts/functions
start_test
cat <<END_OF_DATA >${tmp}/bconcmds
-@$out /dev/null
+@output /dev/null
messages
@$out ${tmp}/log1.out
run comment="This is a comment for $JobName" job=$JobName yes
cp -f ${tmpsrc}/dird.c ${tmpsrc}/ficheriro2.txt
cat <<END_OF_DATA >${tmp}/bconcmds
-@$out /dev/null
+@output /dev/null
messages
@$out ${tmp}/log1.out
@# Force Incremental on the second Volume
run_bconsole
cat <<END_OF_DATA >${tmp}/bconcmds
-@$out /dev/null
+@output /dev/null
messages
@$out ${tmp}/log2.out
@#