diff --git a/Test/baseResults/hlsl.dashI.vert.d.out b/Test/baseResults/hlsl.dashI.vert.d.out new file mode 100644 index 000000000..11f8ed4c5 --- /dev/null +++ b/Test/baseResults/hlsl.dashI.vert.d.out @@ -0,0 +1 @@ +vert.spv: hlsl.dashI.vert ./bar.h ./parent.h inc1/path1/local.h inc1/path1/notHere.h inc1/path2/remote.h diff --git a/Test/baseResults/hlsl.include.vert.d.out b/Test/baseResults/hlsl.include.vert.d.out new file mode 100644 index 000000000..f2e54ff45 --- /dev/null +++ b/Test/baseResults/hlsl.include.vert.d.out @@ -0,0 +1 @@ +vert.spv: ../Test/hlsl.include.vert ../Test/./inc1/bar.h ../Test/./inc1/foo.h ../Test/bar.h ../Test/inc2/bar.h ../Test/inc2/foo.h ../Test/parent.h diff --git a/Test/runtests b/Test/runtests index 51f1a6a6c..69312e131 100755 --- a/Test/runtests +++ b/Test/runtests @@ -190,6 +190,16 @@ diff -b $BASEDIR/hlsl.dashI.vert.out $TARGETDIR/hlsl.dashI.vert.out || HASERROR= run -D -Od -e MainPs -H -Od -g hlsl.pp.line3.frag > $TARGETDIR/hlsl.pp.line3.frag.out diff -b $BASEDIR/hlsl.pp.line3.frag.out $TARGETDIR/hlsl.pp.line3.frag.out || HASERROR=1 +# +# Testing --depfile +# + +echo "Testing --depfile" +run -D -Od -e main -H --depfile $TARGETDIR/hlsl.include.vert.d.out -Od ../Test/hlsl.include.vert > $TARGETDIR/hlsl.include.vert.out +diff -b $BASEDIR/hlsl.include.vert.d.out $TARGETDIR/hlsl.include.vert.d.out || HASERROR=1 +run -D -Od -e main -H --depfile $TARGETDIR/hlsl.dashI.vert.d.out -Od -Iinc1/path1 -Iinc1/path2 hlsl.dashI.vert > $TARGETDIR/hlsl.dashI.vert.out +diff -b $BASEDIR/hlsl.dashI.vert.d.out $TARGETDIR/hlsl.dashI.vert.d.out || HASERROR=1 + # # Testing -D and -U #