diff --git a/.gitignore b/.gitignore index e2129a8..7981eaa 100644 --- a/.gitignore +++ b/.gitignore @@ -18,3 +18,5 @@ /test/3-copyFiles/bin/ /test/ignore-hidden-1/ignore-hidden-1 /test/ignore-hidden-2/ignore-hidden-2 +/test/expected-import-path-output +/test/expected-string-import-path-output diff --git a/test/4-describe-import-paths.sh b/test/4-describe-import-paths.sh index 9fff02b..19e66f9 100755 --- a/test/4-describe-import-paths.sh +++ b/test/4-describe-import-paths.sh @@ -15,6 +15,11 @@ die 'Printing import paths failed!' fi +# Create the expected output path file to compare against. +echo "$CURR_DIR/describe-project/src/" > "$CURR_DIR/expected-import-path-output" +echo "$CURR_DIR/describe-dependency-1/source/" >> "$CURR_DIR/expected-import-path-output" +echo "$CURR_DIR/describe-dependency-2/some-path/" >> "$CURR_DIR/expected-import-path-output" + if ! diff "$CURR_DIR"/expected-import-path-output "$temp_file"; then cleanup die 'The import paths did not match the expected output!' diff --git a/test/4-describe-string-importh-paths.sh b/test/4-describe-string-importh-paths.sh index 1a0e8a3..184b9ad 100755 --- a/test/4-describe-string-importh-paths.sh +++ b/test/4-describe-string-importh-paths.sh @@ -15,6 +15,10 @@ die 'Printing string import paths failed!' fi +# Create the expected output path file to compare against. +echo "$CURR_DIR/describe-project/views/" > "$CURR_DIR/expected-string-import-path-output" +echo "$CURR_DIR/describe-dependency-2/some-extra-string-import-path/" >> "$CURR_DIR/expected-string-import-path-output" + if ! diff "$CURR_DIR"/expected-string-import-path-output "$temp_file"; then cleanup die 'The string import paths did not match the expected output!' diff --git a/test/expected-import-path-output b/test/expected-import-path-output deleted file mode 100644 index 62f1eed..0000000 --- a/test/expected-import-path-output +++ /dev/null @@ -1,3 +0,0 @@ -/home/w0rp/git/personal/dub/test/describe-project/src/ -/home/w0rp/git/personal/dub/test/describe-dependency-1/source/ -/home/w0rp/git/personal/dub/test/describe-dependency-2/some-path/ diff --git a/test/expected-string-import-path-output b/test/expected-string-import-path-output deleted file mode 100644 index dcb8e56..0000000 --- a/test/expected-string-import-path-output +++ /dev/null @@ -1,2 +0,0 @@ -/home/w0rp/git/personal/dub/test/describe-project/views/ -/home/w0rp/git/personal/dub/test/describe-dependency-2/some-extra-string-import-path/