Improve non-linux testing (#698)

This commit is contained in:
Crsi 2022-12-08 20:41:26 +01:00 committed by GitHub
parent e1977b4db8
commit 0f68143929
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
94 changed files with 171 additions and 170 deletions

1
.gitattributes vendored Normal file
View File

@ -0,0 +1 @@
/tests/*/*.d text eol=lf

View File

@ -23,7 +23,7 @@ function startServer()
{
"$server" "$tcp" --ignoreConfig -I $IMPORTS 2>stderr.txt > stdout.txt &
server_pid=$!
sleep 1s;
sleep 1
}
# Make sure that the server is shut down
@ -33,7 +33,7 @@ echo "Shutting down currently-running server..."
for socket in unix tcp; do
# allow some time for server to shutdown
sleep 0.5s;
sleep 0.5;
if [[ $socket == "tcp" ]]; then
tcp="--tcp"
@ -54,7 +54,7 @@ for socket in unix tcp; do
fi
sleepTime=$((1 << $i))
echo "Server isn't up yet. Sleeping for ${sleepTime}s"
sleep "${sleepTime}s"
sleep "${sleepTime}"
done
# Run tests

View File

@ -2,4 +2,4 @@ set -e
set -u
../../bin/dcd-client $1 file.d -c12 > actual.txt
diff actual.txt expected.txt
diff actual.txt expected.txt --strip-trailing-cr

View File

@ -2,4 +2,4 @@ set -e
set -u
../../bin/dcd-client $1 file.d -c52 > actual.txt
diff actual.txt expected.txt
diff actual.txt expected.txt --strip-trailing-cr

View File

@ -2,7 +2,7 @@ set -e
set -u
../../bin/dcd-client $1 file.d -c696 > actual1.txt
diff actual1.txt expected1.txt
diff actual1.txt expected1.txt --strip-trailing-cr
../../bin/dcd-client $1 file.d -c713 > actual2.txt
diff actual2.txt expected2.txt
diff actual2.txt expected2.txt --strip-trailing-cr

View File

@ -2,4 +2,4 @@ set -e
set -u
../../bin/dcd-client $1 file.d -c13 > actual.txt
diff actual.txt expected.txt
diff actual.txt expected.txt --strip-trailing-cr

View File

@ -2,4 +2,4 @@ set -e
set -u
../../bin/dcd-client $1 file.d -c136 > actual.txt
diff actual.txt expected.txt
diff actual.txt expected.txt --strip-trailing-cr

View File

@ -2,13 +2,13 @@ set -e
set -u
../../bin/dcd-client $1 file.d -c184 > actual1.txt
diff actual1.txt expected1.txt
diff actual1.txt expected1.txt --strip-trailing-cr
../../bin/dcd-client $1 file.d -c199 > actual2.txt
diff actual2.txt expected2.txt
diff actual2.txt expected2.txt --strip-trailing-cr
../../bin/dcd-client $1 file.d -c216 > actual3.txt
diff actual3.txt expected3.txt
diff actual3.txt expected3.txt --strip-trailing-cr
../../bin/dcd-client $1 file.d -c231 > actual4.txt
diff actual4.txt expected4.txt
diff actual4.txt expected4.txt --strip-trailing-cr

View File

@ -2,7 +2,7 @@ set -e
set -u
../../bin/dcd-client $1 file.d -c97 > actual1.txt
diff actual1.txt expected1.txt
diff actual1.txt expected1.txt --strip-trailing-cr
../../bin/dcd-client $1 file.d -c130 > actual2.txt
diff actual2.txt expected2.txt
diff actual2.txt expected2.txt --strip-trailing-cr

View File

@ -2,4 +2,4 @@ set -e
set -u
../../bin/dcd-client $1 file.d -c113 > actual1.txt
diff actual1.txt expected1.txt
diff actual1.txt expected1.txt --strip-trailing-cr

View File

@ -2,10 +2,10 @@ set -e
set -u
../../bin/dcd-client $1 file.d -c83 > actual1.txt
diff actual1.txt expected1.txt
diff actual1.txt expected1.txt --strip-trailing-cr
../../bin/dcd-client $1 file.d -c93 > actual2.txt
diff actual2.txt expected2.txt
diff actual2.txt expected2.txt --strip-trailing-cr
../../bin/dcd-client $1 file.d -c148 > actual3.txt
diff actual3.txt expected3.txt
diff actual3.txt expected3.txt --strip-trailing-cr

View File

@ -4,14 +4,14 @@ set -u
cp testfile1_old.d ../imports/testfile1.d
# Sleep because modification times aren't stored with granularity of less
# than one second
sleep 1s;
sleep 1
../../bin/dcd-client $1 file.d -c84 > actual1.txt
diff actual1.txt expected1.txt
diff actual1.txt expected1.txt --strip-trailing-cr
cp testfile1_new.d ../imports/testfile1.d
# Same here
sleep 1s;
sleep 1
../../bin/dcd-client $1 file.d -c84 > actual2.txt
diff actual2.txt expected2.txt
diff actual2.txt expected2.txt --strip-trailing-cr

View File

@ -2,4 +2,4 @@ set -e
set -u
../../bin/dcd-client $1 file.d -c48 > actual1.txt
diff actual1.txt expected1.txt
diff actual1.txt expected1.txt --strip-trailing-cr

View File

@ -2,7 +2,7 @@ set -e
set -u
../../bin/dcd-client $1 file.d -c35 > actual1.txt
diff actual1.txt expected1.txt
diff actual1.txt expected1.txt --strip-trailing-cr
../../bin/dcd-client $1 file.d -c61 > actual2.txt
diff actual2.txt expected2.txt
diff actual2.txt expected2.txt --strip-trailing-cr

View File

@ -2,7 +2,7 @@ set -e
set -u
../../bin/dcd-client $1 file.d -c187 > actual1.txt
diff actual1.txt expected1.txt
diff actual1.txt expected1.txt --strip-trailing-cr
../../bin/dcd-client $1 file.d -c211 > actual2.txt
diff actual2.txt expected2.txt
diff actual2.txt expected2.txt --strip-trailing-cr

View File

@ -4,14 +4,14 @@ 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;
sleep 1
../../bin/dcd-client $1 file.d -c39 > actual1.txt
diff actual1.txt expected1.txt
diff actual1.txt expected1.txt --strip-trailing-cr
cp testfile2_new.d ../imports/testfile2.d
# Same here
sleep 1s;
sleep 1
../../bin/dcd-client $1 file.d -c39 > actual2.txt
diff actual2.txt expected2.txt
diff actual2.txt expected2.txt --strip-trailing-cr

View File

@ -2,7 +2,7 @@ set -e
set -u
../../bin/dcd-client $1 file1.d -c84 > actual1.txt
diff actual1.txt expected1.txt
diff actual1.txt expected1.txt --strip-trailing-cr
../../bin/dcd-client $1 file2.d -c73 > actual2.txt
diff actual2.txt expected2.txt
diff actual2.txt expected2.txt --strip-trailing-cr

View File

@ -2,7 +2,7 @@ set -e
set -u
../../bin/dcd-client $1 file.d -c24 > actual1.txt
diff actual1.txt expected1.txt
diff actual1.txt expected1.txt --strip-trailing-cr
../../bin/dcd-client $1 file.d -c57 > actual2.txt
diff actual2.txt expected2.txt
diff actual2.txt expected2.txt --strip-trailing-cr

View File

@ -2,4 +2,4 @@ set -e
set -u
../../bin/dcd-client $1 file.d -c33 > actual.txt
diff actual.txt expected.txt
diff actual.txt expected.txt --strip-trailing-cr

View File

@ -2,7 +2,7 @@ set -e
set -u
../../bin/dcd-client $1 file.d -c61 > actual1.txt
diff actual1.txt expected1.txt
diff actual1.txt expected1.txt --strip-trailing-cr
../../bin/dcd-client $1 file.d -c88 > actual2.txt
diff actual2.txt expected2.txt
diff actual2.txt expected2.txt --strip-trailing-cr

View File

@ -2,7 +2,7 @@ set -e
set -u
../../bin/dcd-client $1 file.d -c84 > actual1.txt
diff actual1.txt expected1.txt
diff actual1.txt expected1.txt --strip-trailing-cr
../../bin/dcd-client $1 file.d -c111 > actual2.txt
diff actual2.txt expected2.txt
diff actual2.txt expected2.txt --strip-trailing-cr

View File

@ -2,7 +2,7 @@ set -e
set -u
../../bin/dcd-client $1 file.d -c159 > actual1.txt
diff actual1.txt expected1.txt
diff actual1.txt expected1.txt --strip-trailing-cr
../../bin/dcd-client $1 file.d -c199 > actual2.txt
diff actual2.txt expected2.txt
diff actual2.txt expected2.txt --strip-trailing-cr

View File

@ -2,4 +2,4 @@ set -e
set -u
../../bin/dcd-client $1 file.d -c1 > actual.txt
diff actual.txt expected.txt
diff actual.txt expected.txt --strip-trailing-cr

View File

@ -2,4 +2,4 @@ set -e
set -u
../../bin/dcd-client $1 file.d -c16 > actual.txt
diff actual.txt expected.txt
diff actual.txt expected.txt --strip-trailing-cr

View File

@ -2,7 +2,7 @@ set -e
set -u
../../bin/dcd-client $1 file.d -c117 > actual1.txt
diff actual1.txt expected1.txt
diff actual1.txt expected1.txt --strip-trailing-cr
../../bin/dcd-client $1 file.d -c89 > actual2.txt
diff actual2.txt expected2.txt
diff actual2.txt expected2.txt --strip-trailing-cr

View File

@ -2,25 +2,25 @@ set -e
set -u
../../bin/dcd-client $1 file.d -c286 -d > actual1.txt
diff actual1.txt expected1.txt
diff actual1.txt expected1.txt --strip-trailing-cr
../../bin/dcd-client $1 file.d -c290 -d > actual2.txt
diff actual2.txt expected2.txt
diff actual2.txt expected2.txt --strip-trailing-cr
../../bin/dcd-client $1 file.d -c294 -d > actual3.txt
diff actual3.txt expected3.txt
diff actual3.txt expected3.txt --strip-trailing-cr
../../bin/dcd-client $1 file.d -c298 -d> actual4.txt
diff actual4.txt expected4.txt
diff actual4.txt expected4.txt --strip-trailing-cr
../../bin/dcd-client $1 file.d -c302 -d> actual5.txt
diff actual5.txt expected5.txt
diff actual5.txt expected5.txt --strip-trailing-cr
../../bin/dcd-client $1 file.d -c306 -d> actual6.txt
diff actual6.txt expected6.txt
diff actual6.txt expected6.txt --strip-trailing-cr
../../bin/dcd-client $1 file.d -c313 -d> actual7.txt
diff actual7.txt expected7.txt
diff actual7.txt expected7.txt --strip-trailing-cr
../../bin/dcd-client $1 file.d -c432 -d> actual8.txt
diff actual8.txt expected8.txt
diff actual8.txt expected8.txt --strip-trailing-cr

View File

@ -2,4 +2,4 @@ set -e
set -u
../../bin/dcd-client $1 file.d -c94 > actual1.txt
diff actual1.txt expected1.txt
diff actual1.txt expected1.txt --strip-trailing-cr

View File

@ -2,4 +2,4 @@ set -e
set -u
../../bin/dcd-client $1 file.d -c53 > actual1.txt
diff actual1.txt expected1.txt
diff actual1.txt expected1.txt --strip-trailing-cr

View File

@ -2,4 +2,4 @@ set -e
set -u
../../bin/dcd-client $1 file.d -c66 > actual1.txt
diff actual1.txt expected1.txt
diff actual1.txt expected1.txt --strip-trailing-cr

View File

@ -2,4 +2,4 @@ set -e
set -u
../../bin/dcd-client $1 file.d -c122 > actual1.txt
diff actual1.txt expected1.txt
diff actual1.txt expected1.txt --strip-trailing-cr

View File

@ -2,4 +2,4 @@ set -e
set -u
../../bin/dcd-client $1 file.d -c73 > actual1.txt
diff actual1.txt expected1.txt
diff actual1.txt expected1.txt --strip-trailing-cr

View File

@ -2,4 +2,4 @@ set -e
set -u
../../bin/dcd-client $1 file.d -c11 > actual1.txt
diff actual1.txt expected1.txt
diff actual1.txt expected1.txt --strip-trailing-cr

View File

@ -2,4 +2,4 @@ set -e
set -u
../../bin/dcd-client $1 file.d -d -c1 > actual1.txt
diff actual1.txt expected1.txt
diff actual1.txt expected1.txt --strip-trailing-cr

View File

@ -2,4 +2,4 @@ set -e
set -u
../../bin/dcd-client $1 file.d -l -c 15 | sed s\""$(dirname "$(pwd)")"\"\" > actual1.txt
diff actual1.txt expected1.txt
diff actual1.txt expected1.txt --strip-trailing-cr

View File

@ -2,8 +2,8 @@ set -e
set -u
../../bin/dcd-client $1 file.d -u -c22 | sed s\""$(dirname "$(pwd)")"\"\" > actual1.txt
diff actual1.txt expected1.txt
diff actual1.txt expected1.txt --strip-trailing-cr
# should work on last character of identifier
../../bin/dcd-client $1 file.d -u -c24 | sed s\""$(dirname "$(pwd)")"\"\" > actual2.txt
diff actual2.txt expected1.txt
diff actual2.txt expected1.txt --strip-trailing-cr

View File

@ -2,4 +2,4 @@ set -e
set -u
../../bin/dcd-client $1 file.d -u -c1 | sed s\""$(dirname "$(pwd)")"\"\" > actual1.txt
diff actual1.txt expected1.txt
diff actual1.txt expected1.txt --strip-trailing-cr

View File

@ -2,4 +2,4 @@ set -e
set -u
../../bin/dcd-client $1 file.d -u -c8 | sed s\""$(dirname "$(pwd)")"\"\" > actual1.txt
diff actual1.txt expected1.txt
diff actual1.txt expected1.txt --strip-trailing-cr

View File

@ -2,17 +2,17 @@ set -e
set -u
../../bin/dcd-client $1 file.d -c 15 | sed s\""$(dirname "$(pwd)")"\"\" > actual3.txt
diff actual3.txt expected3.txt
diff actual3.txt expected3.txt --strip-trailing-cr
../../bin/dcd-client $1 -I bar.d
../../bin/dcd-client $1 file.d -c 15 | sed s\""$(dirname "$(pwd)")"\"\" > actual1.txt
diff actual1.txt expected1.txt
diff actual1.txt expected1.txt --strip-trailing-cr
../../bin/dcd-client $1 file.d -c 40 | sed s\""$(dirname "$(pwd)")"\"\" > actual2.txt
diff actual2.txt expected2.txt
diff actual2.txt expected2.txt --strip-trailing-cr
../../bin/dcd-client $1 -R bar.d
../../bin/dcd-client $1 file.d -c 15 | sed s\""$(dirname "$(pwd)")"\"\" > actual3.txt
diff actual3.txt expected3.txt
diff actual3.txt expected3.txt --strip-trailing-cr

View File

@ -2,10 +2,10 @@ set -e
set -u
../../bin/dcd-client $1 implicit_array.d -c108 > actual.txt
diff actual.txt expected1.txt
diff actual.txt expected1.txt --strip-trailing-cr
../../bin/dcd-client $1 excplicit_array.d -c98 > actual.txt
diff actual.txt expected1.txt
diff actual.txt expected1.txt --strip-trailing-cr
../../bin/dcd-client $1 implicit_var.d -c108 > actual.txt
diff actual.txt expected1.txt
diff actual.txt expected1.txt --strip-trailing-cr

View File

@ -2,5 +2,5 @@ set -e
set -u
../../bin/dcd-client $1 file.d -c48 > actual.txt
diff actual.txt expected.txt
diff actual.txt expected.txt --strip-trailing-cr

View File

@ -2,14 +2,14 @@ set -e
set -u
../../bin/dcd-client $1 file.d -d -c149 > actual1.txt
diff actual1.txt expected1.txt
diff actual1.txt expected1.txt --strip-trailing-cr
../../bin/dcd-client $1 file.d -d -c158 > actual2.txt
diff actual2.txt expected2.txt
diff actual2.txt expected2.txt --strip-trailing-cr
../../bin/dcd-client $1 file.d -d -c166 > actual3.txt
diff actual3.txt expected3.txt
diff actual3.txt expected3.txt --strip-trailing-cr
../../bin/dcd-client $1 file.d -d -c175 > actual4.txt
diff actual4.txt expected4.txt
diff actual4.txt expected4.txt --strip-trailing-cr

View File

@ -2,7 +2,7 @@ set -e
set -u
../../bin/dcd-client $1 file.d -d -c18 > actual1.txt
diff actual1.txt expected1.txt
diff actual1.txt expected1.txt --strip-trailing-cr
../../bin/dcd-client $1 file.d -d -c107 > actual2.txt
diff actual2.txt expected2.txt
diff actual2.txt expected2.txt --strip-trailing-cr

View File

@ -2,4 +2,4 @@ set -e
set -u
../../bin/dcd-client $1 file.d -l -c48 > actual1.txt
diff actual1.txt expected1.txt
diff actual1.txt expected1.txt --strip-trailing-cr

View File

@ -2,7 +2,7 @@ set -e
set -u
../../bin/dcd-client $1 file.d -c12 -d > actual.txt
diff actual.txt expected.txt
diff actual.txt expected.txt --strip-trailing-cr
../../bin/dcd-client $1 file.d -c35 -d > actual.txt
diff actual.txt expected.txt
diff actual.txt expected.txt --strip-trailing-cr

View File

@ -2,4 +2,4 @@ set -e
set -u
../../bin/dcd-client $1 file.d -c26 > actual.txt # segfault if -c29 (" XX|"), bug!
diff actual.txt expected.txt
diff actual.txt expected.txt --strip-trailing-cr

View File

@ -2,4 +2,4 @@ set -e
set -u
../../bin/dcd-client $1 file.d -d -c11 > actual.txt
diff actual.txt expected.txt
diff actual.txt expected.txt --strip-trailing-cr

View File

@ -2,4 +2,4 @@ set -e
set -u
../../bin/dcd-client $1 file.d -d -c124 > actual.txt
diff actual.txt expected.txt
diff actual.txt expected.txt --strip-trailing-cr

View File

@ -2,4 +2,4 @@ set -e
set -u
../../bin/dcd-client $1 file.d -c72 > actual.txt
diff actual.txt expected.txt
diff actual.txt expected.txt --strip-trailing-cr

View File

@ -2,10 +2,10 @@ set -e
set -u
../../bin/dcd-client $1 file.d -l -c76 > actual1.txt
diff actual1.txt expected1.txt
diff actual1.txt expected1.txt --strip-trailing-cr
../../bin/dcd-client $1 file.d -l -c47 > actual2.txt
diff actual2.txt expected2.txt
diff actual2.txt expected2.txt --strip-trailing-cr
../../bin/dcd-client $1 file.d -l -c200 > actual3.txt
diff actual3.txt expected3.txt
diff actual3.txt expected3.txt --strip-trailing-cr

View File

@ -2,4 +2,4 @@ set -e
set -u
../../bin/dcd-client $1 file.d -c58 > actual.txt
diff actual.txt expected.txt
diff actual.txt expected.txt --strip-trailing-cr

View File

@ -2,10 +2,10 @@ set -e
set -u
../../bin/dcd-client $1 file.d -c29 > actual.txt
diff actual.txt expected.txt
diff actual.txt expected.txt --strip-trailing-cr
../../bin/dcd-client $1 file1.d -c25 > actual1.txt
diff actual1.txt expected1.txt
diff actual1.txt expected1.txt --strip-trailing-cr
../../bin/dcd-client $1 file2.d -c74 > actual2.txt
diff actual2.txt expected2.txt
diff actual2.txt expected2.txt --strip-trailing-cr

View File

@ -2,4 +2,4 @@ set -e
set -u
../../bin/dcd-client $1 file.d -c19 -d > actual.txt
diff actual.txt expected.txt
diff actual.txt expected.txt --strip-trailing-cr

View File

@ -2,4 +2,4 @@ set -e
set -u
../../bin/dcd-client $1 file.d -c26 > actual.txt
diff actual.txt expected.txt
diff actual.txt expected.txt --strip-trailing-cr

View File

@ -2,4 +2,4 @@ set -e
set -u
../../bin/dcd-client $1 file.d -c35 > actual.txt
diff actual.txt expected.txt
diff actual.txt expected.txt --strip-trailing-cr

View File

@ -2,4 +2,4 @@ set -e
set -u
../../bin/dcd-client $1 file.d -c18 > actual.txt
diff actual.txt expected.txt
diff actual.txt expected.txt --strip-trailing-cr

View File

@ -2,4 +2,4 @@ set -e
set -u
../../bin/dcd-client $1 file.d -c47 > actual.txt
diff actual.txt expected.txt
diff actual.txt expected.txt --strip-trailing-cr

View File

@ -2,4 +2,4 @@ set -e
set -u
../../bin/dcd-client $1 file.d -c161 > actual1.txt
diff actual1.txt expected1.txt
diff actual1.txt expected1.txt --strip-trailing-cr

View File

@ -2,4 +2,4 @@ set -e
set -u
../../bin/dcd-client $1 file.d --extended -c32 > actual1.txt
diff actual1.txt expected1.txt
diff actual1.txt expected1.txt --strip-trailing-cr

View File

@ -2,4 +2,4 @@ set -e
set -u
../../bin/dcd-client $1 file.d --extended -c44 > actual1.txt
diff actual1.txt expected1.txt
diff actual1.txt expected1.txt --strip-trailing-cr

View File

@ -4,4 +4,4 @@ set -u
../../bin/dcd-client $1 -I $(pwd)
echo | ../../bin/dcd-client $1 --search funcName > actual1.txt
echo -e "$(pwd)/file.d\tf\t5" > expected1.txt
diff actual1.txt expected1.txt
diff actual1.txt expected1.txt --strip-trailing-cr

View File

@ -2,4 +2,4 @@ set -e
set -u
../../bin/dcd-client $1 file.d -c25 > actual.txt
diff actual.txt expected.txt
diff actual.txt expected.txt --strip-trailing-cr

View File

@ -4,23 +4,23 @@ set -u
rm -f actual1.txt actual2.txt actual3.txt actual0.txt
../../bin/dcd-client $1 file1.d -c 137 | sed s\""$(dirname "$(pwd)")"\"\" > actual0.txt
diff actual0.txt expected0.txt
diff actual0.txt expected0.txt --strip-trailing-cr
../../bin/dcd-client $1 -I bar.d
../../bin/dcd-client $1 file1.d -c 137 | sed s\""$(dirname "$(pwd)")"\"\" > actual1.txt
diff actual1.txt expected1.txt
diff actual1.txt expected1.txt --strip-trailing-cr
../../bin/dcd-client $1 file1.d -c 152 | sed s\""$(dirname "$(pwd)")"\"\" > actual1_1.txt
diff actual1_1.txt expected1_1.txt
diff actual1_1.txt expected1_1.txt --strip-trailing-cr
../../bin/dcd-client $1 file1.d -c 170 | sed s\""$(dirname "$(pwd)")"\"\" > actual2.txt
diff actual2.txt expected2.txt
diff actual2.txt expected2.txt --strip-trailing-cr
../../bin/dcd-client $1 file2.d -c 83 | sed s\""$(dirname "$(pwd)")"\"\" > actual3.txt
diff actual3.txt expected3.txt
diff actual3.txt expected3.txt --strip-trailing-cr
../../bin/dcd-client $1 -R bar.d
../../bin/dcd-client $1 file1.d -c 137 | sed s\""$(dirname "$(pwd)")"\"\" > actual0.txt
diff actual0.txt expected0.txt
diff actual0.txt expected0.txt --strip-trailing-cr

View File

@ -2,4 +2,4 @@ set -e
set -u
../../bin/dcd-client $1 file.d -c103 > actual.txt
diff actual.txt expected.txt
diff actual.txt expected.txt --strip-trailing-cr

View File

@ -2,6 +2,6 @@ set -e
set -u
../../bin/dcd-client $1 file1.d -c77 > actual1.txt
diff actual1.txt expected1.txt
diff actual1.txt expected1.txt --strip-trailing-cr
../../bin/dcd-client $1 file2.d -c55 > actual2.txt
diff actual2.txt expected2.txt
diff actual2.txt expected2.txt --strip-trailing-cr

View File

@ -2,4 +2,4 @@ set -e
set -u
../../bin/dcd-client $1 file.d -c70 > actual.txt
diff actual.txt expected.txt
diff actual.txt expected.txt --strip-trailing-cr

View File

@ -2,6 +2,6 @@ set -e
set -u
../../bin/dcd-client $1 file.d -c49 > actual1.txt
diff actual1.txt expected1.txt
diff actual1.txt expected1.txt --strip-trailing-cr
../../bin/dcd-client $1 file.d -c103 > actual2.txt
diff actual2.txt expected2.txt
diff actual2.txt expected2.txt --strip-trailing-cr

View File

@ -2,4 +2,4 @@ set -e
set -u
../../bin/dcd-client $1 file.d -c22 > actual.txt
diff actual.txt expected.txt
diff actual.txt expected.txt --strip-trailing-cr

View File

@ -2,4 +2,4 @@ set -e
set -u
../../bin/dcd-client $1 file.d -c16 > actual.txt
diff actual.txt expected.txt
diff actual.txt expected.txt --strip-trailing-cr

View File

@ -2,4 +2,4 @@ set -e
set -u
../../bin/dcd-client $1 -c66 <<< "class Bar{void fun(A param){}}class Foo{void foo(Bar bar){bar.fun(}}" > actual.txt
diff actual.txt expected.txt
diff actual.txt expected.txt --strip-trailing-cr

View File

@ -2,4 +2,4 @@ set -e
set -u
../../bin/dcd-client $1 file.d -c14 > actual.txt
diff actual.txt expected.txt
diff actual.txt expected.txt --strip-trailing-cr

View File

@ -2,10 +2,10 @@ set -e
set -u
../../bin/dcd-client $1 file1.d -c25 > actual1.txt
diff actual1.txt expected1.txt
diff actual1.txt expected1.txt --strip-trailing-cr
../../bin/dcd-client $1 file2.d -c42 > actual2.txt
diff actual2.txt expected1.txt
diff actual2.txt expected1.txt --strip-trailing-cr
../../bin/dcd-client $1 file3.d -c64 > actual3.txt
diff actual3.txt expected3.txt
diff actual3.txt expected3.txt --strip-trailing-cr

View File

@ -2,8 +2,8 @@ set -e
set -u
../../bin/dcd-client $1 file1.d -c82 > actual1.txt
diff actual1.txt expected1.txt
diff actual1.txt expected1.txt --strip-trailing-cr
../../bin/dcd-client $1 file2.d -c46 > actual2.txt
diff actual2.txt expected2.txt
diff actual2.txt expected2.txt --strip-trailing-cr
../../bin/dcd-client $1 file3.d -c11 > actual3.txt
diff actual3.txt expected3.txt
diff actual3.txt expected3.txt --strip-trailing-cr

View File

@ -2,38 +2,38 @@ set -e
set -u
../../bin/dcd-client $1 file.d -d -c5 > actual1.txt
diff actual1.txt expected1.txt
diff actual1.txt expected1.txt --strip-trailing-cr
../../bin/dcd-client $1 file.d -d -c61 > actual2.txt
diff actual2.txt expected2.txt
diff actual2.txt expected2.txt --strip-trailing-cr
../../bin/dcd-client $1 file.d -d -c140 > actual3.txt
diff actual3.txt expected3.txt
diff actual3.txt expected3.txt --strip-trailing-cr
../../bin/dcd-client $1 file.d -d -c160 > actual4.txt
diff actual4.txt expected4.txt
diff actual4.txt expected4.txt --strip-trailing-cr
../../bin/dcd-client $1 file.d -d -c201 > actual5.txt
diff actual5.txt expected5.txt
diff actual5.txt expected5.txt --strip-trailing-cr
../../bin/dcd-client $1 file.d -d -c208 > actual6.txt
diff actual6.txt expected6.txt
diff actual6.txt expected6.txt --strip-trailing-cr
../../bin/dcd-client $1 file.d -d -c254 > actual7.txt
diff actual7.txt expected7.txt
diff actual7.txt expected7.txt --strip-trailing-cr
../../bin/dcd-client $1 file.d -d -c323 > actual8.txt
diff actual8.txt expected8.txt
diff actual8.txt expected8.txt --strip-trailing-cr
../../bin/dcd-client $1 file.d -d -c335 > actual8.1.txt
diff actual8.1.txt expected8.1.txt
diff actual8.1.txt expected8.1.txt --strip-trailing-cr
../../bin/dcd-client $1 file.d -d -c414 > actual8.2.txt
diff actual8.2.txt expected8.2.txt
diff actual8.2.txt expected8.2.txt --strip-trailing-cr
../../bin/dcd-client $1 file.d -d -c425 > actual8.3.txt
diff actual8.3.txt expected8.3.txt
diff actual8.3.txt expected8.3.txt --strip-trailing-cr
../../bin/dcd-client $1 file.d -d -c457 > actual9.txt
diff actual9.txt expected9.txt
diff actual9.txt expected9.txt --strip-trailing-cr

View File

@ -1,5 +1,5 @@
set -e
set -u
../../bin/dcd-client $1 file.d --extended -c$(stat -c %s file.d) > actual.txt
diff actual.txt expected.txt
../../bin/dcd-client $1 file.d --extended -c$(wc -c < file.d) > actual.txt
diff actual.txt expected.txt --strip-trailing-cr

View File

@ -2,6 +2,6 @@ set -e
set -u
../../bin/dcd-client $1 file.d -c 118 > actual1.txt
diff actual1.txt expected1.txt
diff actual1.txt expected1.txt --strip-trailing-cr
../../bin/dcd-client $1 file.d -c 134 > actual2.txt
diff actual2.txt expected2.txt
diff actual2.txt expected2.txt --strip-trailing-cr

View File

@ -2,4 +2,4 @@ set -e
set -u
../../bin/dcd-client $1 file.d -x -c80 > actual1.txt
diff actual1.txt expected1.txt
diff actual1.txt expected1.txt --strip-trailing-cr

View File

@ -2,4 +2,4 @@ set -e
set -u
../../bin/dcd-client $1 file.d -c46 > actual.txt
diff actual.txt expected.txt
diff actual.txt expected.txt --strip-trailing-cr

View File

@ -2,4 +2,4 @@ set -e
set -u
../../bin/dcd-client $1 file.d -c37 > actual.txt
diff actual.txt expected.txt
diff actual.txt expected.txt --strip-trailing-cr

View File

@ -1,6 +1,6 @@
set -e
set -u
../../bin/dcd-client $1 file.d --extended -I"$PWD"/newpackage -c$(stat -c %s file.d) > actual1.txt
../../bin/dcd-client $1 file.d --extended -I"$PWD"/newpackage -c$(wc -c < file.d) > actual1.txt
echo -e "identifiers\nSomeStruct\ts\t\t$PWD/newpackage/newmodule.d 26\t" > expected1.txt
diff actual1.txt expected1.txt
diff actual1.txt expected1.txt --strip-trailing-cr

View File

@ -2,4 +2,4 @@ set -e
set -u
../../bin/dcd-client $1 file.d -c58 > actual1.txt
diff actual1.txt expected1.txt
diff actual1.txt expected1.txt --strip-trailing-cr

View File

@ -2,4 +2,4 @@ set -e
set -u
../../bin/dcd-client $1 file.d -c37 > actual.txt
diff actual.txt expected.txt
diff actual.txt expected.txt --strip-trailing-cr

View File

@ -3,4 +3,4 @@ set -u
../../bin/dcd-client $1 -c57 -l -I"$PWD"/barutils file.d > actual.txt
echo -e "$PWD/barutils/barutils.d\t22" > expected.txt
diff actual.txt expected.txt
diff actual.txt expected.txt --strip-trailing-cr

View File

@ -2,4 +2,4 @@ set -e
set -u
../../bin/dcd-client $1 file.d -c1 > actual1.txt
diff actual1.txt expected1.txt
diff actual1.txt expected1.txt --strip-trailing-cr

View File

@ -2,6 +2,6 @@ set -e
set -u
../../bin/dcd-client $1 file1.d -c59 > actual1.txt
diff actual1.txt expected1.txt
diff actual1.txt expected1.txt --strip-trailing-cr
../../bin/dcd-client $1 file2.d -c44 > actual2.txt
diff actual2.txt expected2.txt
diff actual2.txt expected2.txt --strip-trailing-cr

View File

@ -2,7 +2,7 @@ set -e
set -u
../../bin/dcd-client $1 file1.d -c171 > actual1.txt
diff actual1.txt expected1.txt
diff actual1.txt expected1.txt --strip-trailing-cr
../../bin/dcd-client $1 file2.d -c153 > actual2.txt
diff actual2.txt expected2.txt
diff actual2.txt expected2.txt --strip-trailing-cr

View File

@ -2,4 +2,4 @@ set -e
set -u
../../bin/dcd-client $1 file.d --symbolLocation -c43 > actual1.txt
diff actual1.txt expected1.txt
diff actual1.txt expected1.txt --strip-trailing-cr

View File

@ -2,10 +2,10 @@ set -e
set -u
../../bin/dcd-client $1 file.d -c13 > actual1.txt
diff actual1.txt expected1.txt
diff actual1.txt expected1.txt --strip-trailing-cr
../../bin/dcd-client $1 file.d -R$IMPORTS
../../bin/dcd-client $1 file.d -c13 > actual2.txt
diff actual2.txt expected2.txt
diff actual2.txt expected2.txt --strip-trailing-cr
../../bin/dcd-client $1 -I$IMPORTS
../../bin/dcd-client $1 file.d -c13 > actual1.txt
diff actual1.txt expected1.txt
diff actual1.txt expected1.txt --strip-trailing-cr

View File

@ -2,4 +2,4 @@ set -e
set -u
../../bin/dcd-client $1 file1.d -c35 > actual1.txt
diff actual1.txt expected1.txt
diff actual1.txt expected1.txt --strip-trailing-cr

View File

@ -2,4 +2,4 @@ set -e
set -u
../../bin/dcd-client $1 file.d -c13 > actual.txt
diff actual.txt expected.txt
diff actual.txt expected.txt --strip-trailing-cr

View File

@ -2,10 +2,10 @@ set -e
set -u
../../bin/dcd-client $1 file.d -c28 > actual1.txt
diff actual1.txt expected1.txt
diff actual1.txt expected1.txt --strip-trailing-cr
../../bin/dcd-client $1 file.d -c59 > actual2.txt
diff actual2.txt expected2.txt
diff actual2.txt expected2.txt --strip-trailing-cr
../../bin/dcd-client $1 file.d -c94 > actual3.txt
diff actual3.txt expected3.txt
diff actual3.txt expected3.txt --strip-trailing-cr

View File

@ -2,7 +2,7 @@ set -e
set -u
../../bin/dcd-client $1 file.d -c19 > actual1.txt
diff actual1.txt expected1.txt
diff actual1.txt expected1.txt --strip-trailing-cr
../../bin/dcd-client $1 file.d -c37 > actual2.txt
diff actual2.txt expected2.txt
diff actual2.txt expected2.txt --strip-trailing-cr

View File

@ -2,4 +2,4 @@ set -e
set -u
../../bin/dcd-client $1 file.d -c 9 > actual.txt
diff actual.txt expected.txt
diff actual.txt expected.txt --strip-trailing-cr

View File

@ -2,4 +2,4 @@ set -e
set -u
../../bin/dcd-client $1 -c293 file.d > actual.txt
diff actual.txt expected.txt
diff actual.txt expected.txt --strip-trailing-cr

View File

@ -2,4 +2,4 @@ set -e
set -u
../../bin/dcd-client $1 -c100 -I"$PWD"/fooutils file.d > actual.txt
diff actual.txt expected.txt
diff actual.txt expected.txt --strip-trailing-cr