diff --git a/tests/tc_import_symbol_list/.gitignore b/tests/tc_import_symbol_list/.gitignore new file mode 100644 index 0000000..e494f3a --- /dev/null +++ b/tests/tc_import_symbol_list/.gitignore @@ -0,0 +1 @@ +/expected1.txt diff --git a/tests/tc_import_symbol_list/file.d b/tests/tc_import_symbol_list/file.d new file mode 100644 index 0000000..2a3f41c --- /dev/null +++ b/tests/tc_import_symbol_list/file.d @@ -0,0 +1 @@ +import newmodule: \ No newline at end of file diff --git a/tests/tc_import_symbol_list/newpackage/newmodule.d b/tests/tc_import_symbol_list/newpackage/newmodule.d new file mode 100644 index 0000000..476fa47 --- /dev/null +++ b/tests/tc_import_symbol_list/newpackage/newmodule.d @@ -0,0 +1,3 @@ +module newmodule; + +struct SomeStruct {} diff --git a/tests/tc_import_symbol_list/run.sh b/tests/tc_import_symbol_list/run.sh new file mode 100755 index 0000000..257e0e3 --- /dev/null +++ b/tests/tc_import_symbol_list/run.sh @@ -0,0 +1,6 @@ +set -e +set -u + +../../bin/dcd-client $1 file.d --extended -I"$PWD"/newpackage -c$(stat -c %s file.d) > actual1.txt +echo -e "identifiers\nSomeStruct\ts\t\t$PWD/newpackage/newmodule.d 26\t" > expected1.txt +diff actual1.txt expected1.txt