| 
									
										
										
										
											2015-01-14 17:03:37 +01:00
										 |  |  | #!/bin/bash
 | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | # create random virtual machine test | 
					
						
							| 
									
										
										
										
											2015-02-05 12:09:35 +01:00
										 |  |  | 
 | 
					
						
							|  |  |  | mkdir --parents ~/testout | 
					
						
							|  |  |  | cd ~/testout | 
					
						
							| 
									
										
										
										
											2015-03-12 00:57:28 +01:00
										 |  |  | export EVMJIT="-cache=0" | 
					
						
							| 
									
										
										
										
											2015-01-14 17:03:37 +01:00
										 |  |  | while [ 1 ] | 
					
						
							|  |  |  | do	 | 
					
						
							| 
									
										
										
										
											2015-03-17 12:02:49 +01:00
										 |  |  | 	TEST="$(docker run --rm --entrypoint=\"/cpp-ethereum/build/test/createRandomStateTest\" ethereum/cppjit-testrunner)" | 
					
						
							| 
									
										
										
										
											2015-01-14 17:03:37 +01:00
										 |  |  | 	# echo "$TEST" | 
					
						
							|  |  |  | 	 | 
					
						
							| 
									
										
										
										
											2015-01-25 22:52:38 +01:00
										 |  |  | 	# test pyethereum | 
					
						
							| 
									
										
										
										
											2015-03-12 00:57:28 +01:00
										 |  |  | 	OUTPUT_PYTHON="$(docker run --rm ethereum/python-testrunner --notrace <<< "$TEST")" | 
					
						
							| 
									
										
										
										
											2015-02-05 12:09:35 +01:00
										 |  |  | 	RESULT_PYTHON=$? | 
					
						
							| 
									
										
										
										
											2015-01-14 17:03:37 +01:00
										 |  |  | 
 | 
					
						
							|  |  |  | 	# test go | 
					
						
							| 
									
										
										
										
											2015-02-05 12:09:35 +01:00
										 |  |  | 	OUTPUT_GO="$(docker run --rm ethereum/go-testrunner "$TEST")" | 
					
						
							| 
									
										
										
										
											2015-01-25 22:52:38 +01:00
										 |  |  | 	RESULT_GO=$? | 
					
						
							|  |  |  | 	 | 
					
						
							| 
									
										
										
										
											2015-01-14 17:03:37 +01:00
										 |  |  | 	# test cpp-jit | 
					
						
							| 
									
										
										
										
											2015-02-05 12:09:35 +01:00
										 |  |  | 	OUTPUT_CPPJIT="$(docker run --rm ethereum/cppjit-testrunner "$TEST")" | 
					
						
							| 
									
										
										
										
											2015-01-25 22:52:38 +01:00
										 |  |  | 	RESULT_CPPJIT=$? | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | 	# go fails | 
					
						
							|  |  |  | 	if [ "$RESULT_GO" -ne 0 ]; then | 
					
						
							|  |  |  | 		echo Failed: | 
					
						
							|  |  |  | 		echo Output_GO: | 
					
						
							|  |  |  | 		echo $OUTPUT_GO | 
					
						
							|  |  |  | 		echo Test: | 
					
						
							|  |  |  | 		echo "$TEST" | 
					
						
							|  |  |  | 		echo "$TEST" > FailedTest.json | 
					
						
							|  |  |  | 		mv FailedTest.json $(date -d "today" +"%Y%m%d%H%M")GO.json # replace with scp to central server | 
					
						
							|  |  |  | 	fi | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | 	# python fails | 
					
						
							| 
									
										
										
										
											2015-02-05 12:09:35 +01:00
										 |  |  | 	if [ "$RESULT_PYTHON" -ne 0 ]; then | 
					
						
							|  |  |  | 		echo Failed: | 
					
						
							|  |  |  | 		echo Output_PYTHON: | 
					
						
							|  |  |  | 		echo $OUTPUT_PYTHON | 
					
						
							|  |  |  | 		echo Test: | 
					
						
							|  |  |  | 		echo "$TEST" | 
					
						
							|  |  |  | 		echo "$TEST" > FailedTest.json | 
					
						
							|  |  |  | 		mv FailedTest.json $(date -d "today" +"%Y%m%d%H%M")PYTHON.json | 
					
						
							|  |  |  | 	fi | 
					
						
							| 
									
										
										
										
											2015-01-25 22:52:38 +01:00
										 |  |  | 
 | 
					
						
							|  |  |  | 	# cppjit fails | 
					
						
							|  |  |  | 	if [ "$RESULT_CPPJIT" -ne 0 ]; then | 
					
						
							|  |  |  | 		echo Failed: | 
					
						
							|  |  |  | 		echo Output_CPPJIT: | 
					
						
							|  |  |  | 		echo $OUTPUT_CPPJIT | 
					
						
							|  |  |  | 		echo Test: | 
					
						
							|  |  |  | 		echo "$TEST" | 
					
						
							|  |  |  | 		echo "$TEST" > FailedTest.json | 
					
						
							|  |  |  | 		mv FailedTest.json $(date -d "today" +"%Y%m%d%H%M")CPPJIT.json | 
					
						
							|  |  |  | 	fi | 
					
						
							| 
									
										
										
										
											2015-01-14 18:06:28 +01:00
										 |  |  | done |