a4e0a0f7f6
bug: NA test: manually ran build/soong/run_integration_tests.sh and verified all tests ran Change-Id: I1a0a2e227888efc2e7fd7f718b8e534e6dbdbcf1
22 lines
No EOL
500 B
Bash
Executable file
22 lines
No EOL
500 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
|
|
|
|
# Create a directory with files that cannot be removed
|
|
mkdir -p out/bad_directory_permissions
|
|
touch out/bad_directory_permissions/unremovable_file
|
|
# File permissions are fine but directory permissions are bad
|
|
chmod a+rwx out/bad_directory_permissions/unremovable_file
|
|
chmod a-rwx out/bad_directory_permissions
|
|
|
|
run_soong clean
|
|
}
|
|
|
|
scan_and_run_tests |