mirror of
				https://github.com/intel/isa-l.git
				synced 2025-10-30 05:29:39 +01:00 
			
		
		
		
	tools: allow testing on multiple architectures with Intel SDE
Signed-off-by: Pablo de Lara <pablo.de.lara.guarch@intel.com>
This commit is contained in:
		 Pablo de Lara
					Pablo de Lara
				
			
				
					committed by
					
						 Marcel Cornu
						Marcel Cornu
					
				
			
			
				
	
			
			
			 Marcel Cornu
						Marcel Cornu
					
				
			
						parent
						
							2ca781df19
						
					
				
				
					commit
					df073be348
				
			| @@ -45,13 +45,17 @@ while [ -n "$1" ]; do | |||||||
| 	    ./tools/test_checks.sh | 	    ./tools/test_checks.sh | ||||||
| 	    shift ;; | 	    shift ;; | ||||||
| 	ext ) | 	ext ) | ||||||
| 	    ./tools/test_extended.sh |             # Drop first argument, to pass the rest of the arguments to test_extended.sh | ||||||
|  |             shift ; | ||||||
|  | 	    ./tools/test_extended.sh $@ | ||||||
| 	    shift ;; | 	    shift ;; | ||||||
| 	format ) | 	format ) | ||||||
| 	    shift ;; | 	    shift ;; | ||||||
| 	all ) | 	all ) | ||||||
|  |             # Drop first argument, to pass the rest of the arguments to test_extended.sh | ||||||
|  |             shift ; | ||||||
| 	    ./tools/test_checks.sh | 	    ./tools/test_checks.sh | ||||||
| 	    ./tools/test_extended.sh | 	    ./tools/test_extended.sh $@ | ||||||
| 	    shift ;; | 	    shift ;; | ||||||
| 	* ) | 	* ) | ||||||
| 	    echo $0 undefined option: $1 | 	    echo $0 undefined option: $1 | ||||||
|   | |||||||
| @@ -201,6 +201,24 @@ test_end "noarch_build_random" $? | |||||||
| $MAKE -f Makefile.unx arch=noarch clean | $MAKE -f Makefile.unx arch=noarch clean | ||||||
| msg+=$'Noarch build: Pass\n' | msg+=$'Noarch build: Pass\n' | ||||||
|  |  | ||||||
|  | # Test other implementations with SDE | ||||||
|  | if [ $(uname -m) == "x86_64" ] && command -V sde64 >/dev/null 2>&1; then | ||||||
|  |     # Compile tests | ||||||
|  |     $MAKE -f Makefile.unx -j $cpus checks | ||||||
|  |     # Loop through architectures | ||||||
|  |     while [ $# -gt 0 ] | ||||||
|  |     do | ||||||
|  |         test_start "SDE test on $1 architecture" | ||||||
|  |         time sde64 -$1 -- $MAKE -f Makefile.unx -j $cpus D="TEST_SEED=$S" check | ||||||
|  |         test_start "SDE test on $1 architecture" $? | ||||||
|  |         # Drop architecture from list, to test the next one | ||||||
|  |         shift; | ||||||
|  |     done | ||||||
|  |         msg+=$'Running tests with SDE: Pass\n' | ||||||
|  |     else | ||||||
|  |         msg+=$'Running tests with SDE: Skip\n' | ||||||
|  | fi | ||||||
|  |  | ||||||
| # Try mingw build | # Try mingw build | ||||||
| if [ $(uname -m) == "x86_64" ] && command -V x86_64-w64-mingw32-gcc >/dev/null 2>&1; then | if [ $(uname -m) == "x86_64" ] && command -V x86_64-w64-mingw32-gcc >/dev/null 2>&1; then | ||||||
|     test_start "mingw_build" |     test_start "mingw_build" | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user