| 
									
										
										
										
											2017-05-11 15:53:22 +02:00
										 |  |  | #!/bin/bash
 | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | set -e | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | ./sizes | 
					
						
							|  |  |  | ./constants | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2017-06-05 15:58:10 +02:00
										 |  |  | for i in $(for j in $(echo $(./hashsum -h | tail -n +3)); do echo $j; done | sort); do echo -n "$i: " && ./hashsum -a $i tests/test.key ; done > hashsum_tv.txt | 
					
						
							| 
									
										
										
										
											2017-05-11 15:53:22 +02:00
										 |  |  | difftroubles=$(diff -i -w -B hashsum_tv.txt notes/hashsum_tv.txt | grep '^<') || true | 
					
						
							|  |  |  | if [ -n "$difftroubles" ]; then | 
					
						
							|  |  |  |   echo "FAILURE: hashsum_tv.tx" | 
					
						
							|  |  |  |   diff -i -w -B hashsum_tv.txt notes/hashsum_tv.txt | 
					
						
							|  |  |  |   echo "hashsum failed" | 
					
						
							|  |  |  |   exit 1 | 
					
						
							|  |  |  | else | 
					
						
							|  |  |  |   echo "hashsum okay" | 
					
						
							|  |  |  | fi | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | exit 0 | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2017-06-19 13:43:49 +02:00
										 |  |  | # ref:         $Format:%D$ | 
					
						
							|  |  |  | # git commit:  $Format:%H$ | 
					
						
							|  |  |  | # commit time: $Format:%ai$ |