Some checks failed
		
		
	
	Lock closed issues/PRs / lock (push) Has been cancelled
				Test / Sentry self-hosted end-to-end tests (push) Has been cancelled
				Test / unit tests (push) Has been cancelled
				Test / Sentry upgrade test (push) Has been cancelled
				Test / integration test v2.19.0 - customizations disabled (push) Has been cancelled
				Test / integration test v2.19.0 - customizations enabled (push) Has been cancelled
				Test / integration test v2.26.0 - customizations disabled (push) Has been cancelled
				Test / integration test v2.26.0 - customizations enabled (push) Has been cancelled
				Signed-off-by: 小草林(田梓萱) <xcl@xuegao-tzx.top>
		
			
				
	
	
		
			18 lines
		
	
	
		
			326 B
		
	
	
	
		
			Bash
		
	
	
		
			Executable File
		
	
	
	
	
			
		
		
	
	
			18 lines
		
	
	
		
			326 B
		
	
	
	
		
			Bash
		
	
	
		
			Executable File
		
	
	
	
	
| #!/usr/bin/env bash
 | |
| 
 | |
| source _unit-test/_test_setup.sh
 | |
| 
 | |
| mmdb=geoip/GeoLite2-City.mmdb
 | |
| 
 | |
| # Starts with no mmdb, ends up with empty.
 | |
| test ! -f $mmdb
 | |
| source install/geoip.sh
 | |
| diff -rub $mmdb $mmdb.empty
 | |
| 
 | |
| # Doesn't clobber existing, though.
 | |
| echo GARBAGE >$mmdb
 | |
| source install/geoip.sh
 | |
| test "$(cat $mmdb)" = "GARBAGE"
 | |
| 
 | |
| report_success
 |