blob: 905d7082336143b365c249ebbe0479b4d0cf7f47 [file] [log] [blame]
Rupert Shuttleworth755ceb02021-08-11 09:20:27 -04001#!/bin/bash -eu
2
3set -o pipefail
4
5# Tests of Soong functionality
6
7source "$(dirname "$0")/lib.sh"
8
9function test_m_clean_works {
10 setup
11
12 # Create a directory with files that cannot be removed
13 mkdir -p out/bad_directory_permissions
14 touch out/bad_directory_permissions/unremovable_file
15 # File permissions are fine but directory permissions are bad
16 chmod a+rwx out/bad_directory_permissions/unremovable_file
17 chmod a-rwx out/bad_directory_permissions
18
19 run_soong clean
20}
21
22test_m_clean_works