| 
									
										
										
										
											2009-11-12 22:35:10 +08:00
										 |  |  | #!/bin/bash | 
					
						
							|  |  |  | # mctestr : shorthand for make and ctest -R | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | if [ $# == 0 -o $# -ge 3 ] | 
					
						
							|  |  |  | then | 
					
						
							| 
									
										
										
										
											2009-11-16 10:12:15 +08:00
										 |  |  |   echo "usage: ./check regexp [jobs]" | 
					
						
							| 
									
										
										
										
											2009-11-26 10:26:37 +08:00
										 |  |  |   echo "  makes and runs tests matching the regexp, with [jobs] concurrent make jobs" | 
					
						
							| 
									
										
										
										
											2009-11-12 22:35:10 +08:00
										 |  |  |   exit 0 | 
					
						
							|  |  |  | fi | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | # TODO when ctest 2.8 comes out, honor the jobs parameter | 
					
						
							| 
									
										
										
										
											2009-11-26 10:26:37 +08:00
										 |  |  | ./buildtests "$1" "$2" && ctest -R "$1" |