Add another test case for file updates
This commit is contained in:
parent
9b56b3c8e6
commit
479fe0b29f
|
@ -0,0 +1,2 @@
|
|||
identifiers
|
||||
doStuff1 f
|
|
@ -0,0 +1,3 @@
|
|||
identifiers
|
||||
doStuff1 f
|
||||
doStuff2 f
|
|
@ -0,0 +1,6 @@
|
|||
import testfile2;
|
||||
|
||||
void main()
|
||||
{
|
||||
doStu
|
||||
}
|
|
@ -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
|
|
@ -0,0 +1,4 @@
|
|||
module testfile2;
|
||||
|
||||
void doStuff1();
|
||||
void doStuff2();
|
|
@ -0,0 +1,3 @@
|
|||
module testfile2;
|
||||
|
||||
void doStuff1();
|
Loading…
Reference in New Issue