Skip to content

Commit

Permalink
Tweak test
Browse files Browse the repository at this point in the history
  • Loading branch information
shs96c committed Jan 25, 2023
1 parent 16bdd6f commit d7303a2
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions tests/bazel_run_tests.sh
Original file line number Diff line number Diff line change
Expand Up @@ -7,21 +7,22 @@

function test_docs_are_up_to_date() {
before_docs="$(git status)"
bazel run //scripts:generate-docs >> "$TEST_LOG" 2>&1
bazel run //scripts:generate-docs >> "$TEST_LOG" 2>&1
after_docs="$(git status)"
expect_same "$before_docs" "$after_docs"
}

function test_formatting_is_okay() {
bazel run //scripts:format >> "$TEST_LOG" 2>&1
before_format="$(git status)"
bazel run //scripts:format >> "$TEST_LOG" 2>&1
after_format="$(git status)"
expect_same "$after_docs" "$after_format"
expect_same "$before_format" "$after_format"
}

function test_prebuilts_are_up_to_date() {
temp=$(mktemp -d)
cp private/tools/prebuilt/*.jar "$temp"
bazel run //scripts:refresh-prebuilts >> "$TEST_LOG" 2>&1
bazel run //scripts:refresh-prebuilts >> "$TEST_LOG" 2>&1

for i in private/tools/prebuilt/*.jar; do
file_name=$(basename $i)
Expand Down

0 comments on commit d7303a2

Please sign in to comment.