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`
		
			
				
	
	
		
			13 lines
		
	
	
	
		
			503 B
		
	
	
	
		
			XML
		
	
	
	
	
	
			
		
		
	
	
			13 lines
		
	
	
	
		
			503 B
		
	
	
	
		
			XML
		
	
	
	
	
	
<?xml version="1.0" encoding="utf-8"?>
 | 
						|
<configuration description="hardened_malloc test">
 | 
						|
 | 
						|
    <target_preparer class="com.android.compatibility.common.tradefed.targetprep.FilePusher">
 | 
						|
        <option name="cleanup" value="true" />
 | 
						|
        <option name="push" value="memtag_test->/data/local/tmp/memtag_test" />
 | 
						|
    </target_preparer>
 | 
						|
 | 
						|
    <test class="com.android.compatibility.common.tradefed.testtype.JarHostTest" >
 | 
						|
        <option name="jar" value="HMallocTest.jar" />
 | 
						|
    </test>
 | 
						|
 | 
						|
</configuration>
 |