Page Menu
Home
Software Heritage
Search
Configure Global Search
Log In
Files
F9339170
geoip-test.sh
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
320 B
Subscribers
None
geoip-test.sh
View Options
#!/usr/bin/env bash
source
"
$(
dirname
$0
)
/_test_setup.sh"
mmdb
=
"../geoip/GeoLite2-City.mmdb"
# Starts with no mmdb, ends up with empty.
test
!
-f
$mmdb
source
geoip.sh
diff
-rub
$mmdb
$mmdb
.empty
# Doesn't clobber existing, though.
echo
GARBAGE
>
$mmdb
source
geoip.sh
test
"
$(
cat
$mmdb
)
"
=
"GARBAGE"
report_success
File Metadata
Details
Attached
Mime Type
text/x-shellscript
Expires
Jul 4 2025, 9:28 AM (5 w, 5 d ago)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
3249494
Attached To
R206 getsentry-onpremise
Event Timeline
Log In to Comment