Skip to content
Draft
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 6 additions & 2 deletions tests/diff_test/diff_test_tests.sh
Original file line number Diff line number Diff line change
Expand Up @@ -83,11 +83,11 @@ eof
echo bar > "$ws/$subdir/b.txt"

(cd "$ws" && \
bazel test ${flags} "//${subdir%/}:same" --test_output=errors 1>"$TEST_log" 2>&1 \
bazel --windows_enable_symlinks test ${flags} "//${subdir%/}:same" --test_output=errors 1>"$TEST_log" 2>&1 \
|| fail "expected success")

(cd "$ws" && \
bazel test ${flags} "//${subdir%/}:different" --test_output=errors 1>"$TEST_log" 2>&1 \
bazel --windows_enable_symlinks test ${flags} "//${subdir%/}:different" --test_output=errors 1>"$TEST_log" 2>&1 \
&& fail "expected failure" || true)
expect_log "FAIL: files \"${subdir}a.txt\" and \"${subdir}b.txt\" differ"
}
Expand Down Expand Up @@ -236,6 +236,10 @@ function test_directory_named_external_with_manifest() {
assert_simple_diff_test "--noenable_runfiles" "${FUNCNAME[0]}" "path/to/directory/external/in/name/"
}

function test_windows_symlinks() {
assert_simple_diff_test "--enable_runfiles" "${FUNCNAME[0]}" ""
}

function test_from_ext_repo_with_legacy_external_runfiles() {
assert_from_ext_repo "--enable_runfiles --legacy_external_runfiles" "${FUNCNAME[0]}"
}
Expand Down