platform_build_soong/tests/soong_test.sh
Usta Shrestha 6e1aa7830c simplify m clean
`rm -rf out` used to fail because bazel would not set write permission on some files. Now it's been fixed and thus there is little reason to prefer `m clean` (also users are accustomed to `rm -rf out`)

Bug: NA
Test: verified `m clean` works;interestingly soong_metrics file is created at the end
Change-Id: I000d16508613045811fc7792e5798f7c150dcc05
2023-05-23 17:34:15 -04:00

18 lines
No EOL
245 B
Bash
Executable file

#!/bin/bash -eu
set -o pipefail
# Tests of Soong functionality
source "$(dirname "$0")/lib.sh"
function test_m_clean_works {
setup
mkdir -p out/some_directory
touch out/some_directory/some_file
run_soong clean
}
scan_and_run_tests