mirror of
				https://github.com/RGBCube/serenity
				synced 2025-10-31 10:12:45 +00:00 
			
		
		
		
	 0e45b21e45
			
		
	
	
		0e45b21e45
		
	
	
	
	
		
			
			Set LLVM_PROFILE_FILE to a pattern that is easily extractable as "these are the profile data files we generated while running tests" for later post-processing.
		
			
				
	
	
		
			19 lines
		
	
	
	
		
			316 B
		
	
	
	
		
			Bash
		
	
	
		
			Executable file
		
	
	
	
	
			
		
		
	
	
			19 lines
		
	
	
	
		
			316 B
		
	
	
	
		
			Bash
		
	
	
		
			Executable file
		
	
	
	
	
| #!/bin/sh
 | |
| 
 | |
| echo
 | |
| echo "==== Running Tests on SerenityOS ===="
 | |
| 
 | |
| export LLVM_PROFILE_FILE="$HOME/profiles/%p-profile.profraw"
 | |
| 
 | |
| run-tests --show-progress=false
 | |
| fail_count=$?
 | |
| 
 | |
| unset LLVM_PROFILE_FILE
 | |
| 
 | |
| echo "Failed: $fail_count" > ./test-results.log
 | |
| 
 | |
| if test $DO_SHUTDOWN_AFTER_TESTS {
 | |
|     shutdown -n
 | |
| }
 | |
| 
 | |
| exit $fail_count
 |