1# This file is part of Direvent testsuite. -*- Autotest -*- 2# Copyright (C) 2013-2016 Sergey Poznyakoff 3# 4# Direvent is free software; you can redistribute it and/or modify 5# it under the terms of the GNU General Public License as published by 6# the Free Software Foundation; either version 3, or (at your option) 7# any later version. 8# 9# Direvent is distributed in the hope that it will be useful, 10# but WITHOUT ANY WARRANTY; without even the implied warranty of 11# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 12# GNU General Public License for more details. 13# 14# You should have received a copy of the GNU General Public License 15# along with Direvent. If not, see <http://www.gnu.org/licenses/>. 16 17AT_SETUP([Extended case-sensitive]) 18AT_KEYWORDS([create fname regexp re re01]) 19 20AT_DIREVENT_TEST([ 21debug 10; 22syslog { 23 facility ${TESTSUITE_FACILITY:-local0}; 24 tag direvent-test:create; 25} 26watcher { 27 path $cwd/dir; 28 event create; 29 file /temp.*/; 30 command "$TESTDIR/envdump -s -i DIREVENT_FILE=:DIREVENT_GENEV_ -f $outfile -k\$self_test_pid"; 31 option (stdout,stderr); 32} 33], 34[> dir/file 35> dir/tempfile 36], 37[outfile=$cwd/dump 38mkdir dir 39], 40[sed "s^$cwd^(CWD)^;s^$TESTDIR^(TESTDIR)^;/^argv\[[[0-9]]\]=-k/d;/DIREVENT_SELF_TEST_PID/d" $outfile 41], 42[0], 43[# Dump of execution environment 44cwd is (CWD)/dir 45# Arguments 46argv[[0]]=(TESTDIR)/envdump 47argv[[1]]=-s 48argv[[2]]=-i 49argv[[3]]=DIREVENT_FILE=:DIREVENT_GENEV_ 50argv[[4]]=-f 51argv[[5]]=(CWD)/dump 52# Environment 53DIREVENT_FILE=tempfile 54DIREVENT_GENEV_CODE=1 55DIREVENT_GENEV_NAME=create 56# End 57]) 58 59AT_CLEANUP 60