mirror of
				https://github.com/GrapheneOS/hardened_malloc.git
				synced 2025-11-04 09:46:32 +01:00 
			
		
		
		
	To run them, connect an MTE-enabled device via adb and execute `atest HMallocTest:MemtagTest`. Since these tests are not deterministic (and neither is hardened_malloc itself), it's better to run them multiple times, e.g. `atest --iterations 30 HMallocTest:MemtagTest`. There are also CTS tests that are useful for checking correctness of the Android integration: `atest CtsTaggingHostTestCases`
		
			
				
	
	
		
			25 lines
		
	
	
	
		
			397 B
		
	
	
	
		
			Text
		
	
	
	
	
	
			
		
		
	
	
			25 lines
		
	
	
	
		
			397 B
		
	
	
	
		
			Text
		
	
	
	
	
	
java_test_host {
 | 
						|
    name: "HMallocTest",
 | 
						|
    srcs: [
 | 
						|
        "src/**/*.java",
 | 
						|
    ],
 | 
						|
 | 
						|
    libs: [
 | 
						|
        "tradefed",
 | 
						|
        "compatibility-tradefed",
 | 
						|
        "compatibility-host-util",
 | 
						|
    ],
 | 
						|
 | 
						|
    static_libs: [
 | 
						|
        "cts-host-utils",
 | 
						|
        "frameworks-base-hostutils",
 | 
						|
    ],
 | 
						|
 | 
						|
    test_suites: [
 | 
						|
        "general-tests",
 | 
						|
    ],
 | 
						|
 | 
						|
    data_device_bins_64: [
 | 
						|
        "memtag_test",
 | 
						|
    ],
 | 
						|
}
 |