# This file is part of Direvent testsuite. -*- Autotest -*- # Copyright (C) 2013-2014 Sergey Poznyakoff # # Direvent is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation; either version 3, or (at your option) # any later version. # # Direvent is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY; without even the implied warranty of # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the # GNU General Public License for more details. # # You should have received a copy of the GNU General Public License # along with Direvent. If not, see . AT_SETUP([Write]) AT_KEYWORDS([write]) AT_DIREVENT_TEST([ debug 10; syslog { facility ${TESTSUITE_FACILITY:-local0}; tag direvent-test:write; } watcher { path $cwd/dir; event write; command "$TESTDIR/envdump -s -i DIREVENT_FILE=:DIREVENT_GENEV_ -f $outfile -k\$self_test_pid"; option (stdout,stderr); } ], [echo "to come to" >> dir/file], [outfile=$cwd/dump mkdir dir cat > dir/file <