mirror of
				https://github.com/rust-lang/rust.git
				synced 2025-10-31 21:16:44 +00:00 
			
		
		
		
	 13b94cf89f
			
		
	
	
		13b94cf89f
		
	
	
	
	
		
			
			Move this to a script and ensure only `libm-test` gets built to avoid default feature issues with `compiler-builtins`.
		
			
				
	
	
		
			25 lines
		
	
	
		
			455 B
		
	
	
	
		
			Bash
		
	
	
		
			Executable File
		
	
	
	
	
			
		
		
	
	
			25 lines
		
	
	
		
			455 B
		
	
	
	
		
			Bash
		
	
	
		
			Executable File
		
	
	
	
	
| #!/bin/bash
 | |
| 
 | |
| set -euo pipefail
 | |
| 
 | |
| echo "Tests to run: '$TO_TEST'"
 | |
| 
 | |
| if [ -z "$TO_TEST" ]; then
 | |
|     echo "No tests to run, exiting."
 | |
|     exit
 | |
| fi
 | |
| 
 | |
| set -x
 | |
| 
 | |
| test_cmd=(
 | |
|     cargo test
 | |
|     --package libm-test
 | |
|     --features "build-mpfr,libm/unstable,libm/force-soft-floats"
 | |
|     --profile release-checked
 | |
| )
 | |
| 
 | |
| # Run the non-extensive tests first to catch any easy failures
 | |
| "${test_cmd[@]}" -- "$TO_TEST"
 | |
| 
 | |
| LIBM_EXTENSIVE_TESTS="$TO_TEST" "${test_cmd[@]}" -- extensive
 |