Skip to content

Commit

Permalink
update test scripts
Browse files Browse the repository at this point in the history
  • Loading branch information
zaucy committed Jul 4, 2024
1 parent e8b0be1 commit dfd8184
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 13 deletions.
4 changes: 2 additions & 2 deletions test/test.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ function Test-Path-Or-Exit($Path) {
}
}

git clean -fx .
git clean -fx . -e test/bazel-*
bazel build //...

bazel run --config=test //:copy_example_txt
Expand All @@ -21,7 +21,7 @@ Test-Path-Or-Exit .\ignored_folder\example\example.txt
bazel run --config=test //:copy_example_txt_file_path_external
Test-Path-Or-Exit .\ignored_folder\external\faux_repo\example.txt

git clean -fx .
git clean -fx . -e test/bazel-*

bazel run --config=test --config=ci //:copy_example_txt_file_path_external
Test-Path-Or-Exit .\\ignored_folder\external\faux_repo\example.txt
22 changes: 11 additions & 11 deletions test/test.sh
Original file line number Diff line number Diff line change
Expand Up @@ -8,19 +8,19 @@ function test_path_or_exit {
fi
}

git clean -fx example
bazel build //example/...
git clean -fx . -e test/bazel-*
bazel build //...

bazel run --config=test //example:copy_example_txt
test_path_or_exit ./example/ignored_folder/example.txt
bazel run --config=test //:copy_example_txt
test_path_or_exit ./ignored_folder/example.txt

bazel run --config=test //example:copy_example_txt_file_path
test_path_or_exit ./example/ignored_folder/example/example.txt
bazel run --config=test //:copy_example_txt_file_path
test_path_or_exit ./ignored_folder/example/example.txt

bazel run --config=test //example:copy_example_txt_file_path
test_path_or_exit ./example/ignored_folder/external/faux_repo/example.txt
bazel run --config=test //:copy_example_txt_file_path
test_path_or_exit ./ignored_folder/external/faux_repo/example.txt

git clean -fx example
git clean -fx . -e test/bazel-*

bazel run --config=test --config=ci //example:copy_example_txt_file_path_external
test_path_or_exit ./example/ignored_folder/external/faux_repo/example.txt
bazel run --config=test --config=ci //:copy_example_txt_file_path_external
test_path_or_exit ./ignored_folder/external/faux_repo/example.txt

0 comments on commit dfd8184

Please sign in to comment.