Add another test case for file updates

This commit is contained in:
Hackerpilot 2015-08-10 13:22:52 -07:00
parent 9b56b3c8e6
commit 479fe0b29f
6 changed files with 35 additions and 0 deletions

View File

@ -0,0 +1,2 @@
identifiers
doStuff1 f

View File

@ -0,0 +1,3 @@
identifiers
doStuff1 f
doStuff2 f

6
tests/tc014/file.d Normal file
View File

@ -0,0 +1,6 @@
import testfile2;
void main()
{
doStu
}

17
tests/tc014/run.sh Executable file
View File

@ -0,0 +1,17 @@
set -e
set -u
cp testfile2_old.d ../imports/testfile2.d
# Sleep because modification times aren't stored with granularity of less
# than one second
sleep 1s;
dcd-client file.d -c39 > actual1.txt
diff actual1.txt expected1.txt
cp testfile2_new.d ../imports/testfile2.d
# Same here
sleep 1s;
dcd-client file.d -c39 > actual2.txt
diff actual2.txt expected2.txt

View File

@ -0,0 +1,4 @@
module testfile2;
void doStuff1();
void doStuff2();

View File

@ -0,0 +1,3 @@
module testfile2;
void doStuff1();