iterate over multiple files and compile&execute in test.sh
This commit is contained in:
		
							parent
							
								
									d743292710
								
							
						
					
					
						commit
						1bd6c43341
					
				
							
								
								
									
										9
									
								
								test.sh
									
									
									
									
									
								
							
							
						
						
									
										9
									
								
								test.sh
									
									
									
									
									
								
							|  | @ -1,4 +1,9 @@ | ||||||
| #!/bin/bash | #!/bin/bash | ||||||
| 
 | 
 | ||||||
| cargo run --bin main -- -i "$1" asm > asm.S | cargo build --bin main | ||||||
| clang asm.S -c && clang asm.o -o asm && ./asm; echo $? | 
 | ||||||
|  | for file in "$@" | ||||||
|  | do | ||||||
|  |     ./target/debug/main -i "$file" asm > asm.S | ||||||
|  |     clang asm.S -c && clang asm.o -o asm && ./asm; echo "$file> $?" | ||||||
|  | done | ||||||
|  |  | ||||||
		Loading…
	
		Reference in a new issue