aboutsummaryrefslogtreecommitdiff
path: root/src/test/test_geoip.c
AgeCommit message (Collapse)Author
2021-03-12Update copyrights to 2021, using "make update-copyright"Nick Mathewson
2020-11-12Fix typos.Samanta Navarro
Typos found with codespell. Please keep in mind that this should have impact on actual code and must be carefully evaluated: src/core/or/lttng_circuit.inc - ctf_enum_value("CONTROLER", CIRCUIT_PURPOSE_CONTROLLER) + ctf_enum_value("CONTROLLER", CIRCUIT_PURPOSE_CONTROLLER)
2020-01-08It's 2020. Update the copyright dates with "make update-copyright"Nick Mathewson
2019-01-16Bump copyright date to 2019Nick Mathewson
2018-09-27Extract the non-stats part of geoip into a new src/lib/geoip.Nick Mathewson
2018-09-27Remove excess dependencies from geoip.cNick Mathewson
2018-09-27Split geoip from geoip-related stats.Nick Mathewson
This commit just moves the code to two separate files. The geoip code still has a few needless dependencies on core/* and features/*.
2018-07-05Fix every include path changed in the previous commit (automated)Nick Mathewson
I am very glad to have written this script.
2018-07-03Clean up various things that broke with our stdint.h changesNick Mathewson
Casting before printf was necessary; now it's not so smart. We don't have SIZEOF_UINT8_T any more.
2018-06-25Merge branch 'maint-0.3.4'Nick Mathewson
2018-06-24Fix test_geoip failures on windows by writing file in binary mode.Nick Mathewson
Fixes bug 26480; bug appeared when we re-enabled the geoip tests on windows. Bug originally introduced by our fix to 25787; bug not in any released Tor.
2018-06-21Merge branch 'maint-0.3.4'Nick Mathewson
2018-06-21Revise geoip tests to not require paths of actual geoip configNick Mathewson
When I wrote the first one of these, it needed the path of the geoip file. But that doesn't translate well in at least two cases: - Mingw, where the compile-time path is /c/foo/bar and the run-time path is c:\foo\bar. - Various CI weirdnesses, where we cross-compile a test binary, then copy it into limbo and expect it to work. Together, these problems precluded these tests running on windows. So, instead let's just generate some minimal files ourselves, and test against them. Fixes bug 25787
2018-06-20Run rectify_include_paths.pyNick Mathewson
2018-04-26Recover newline at the EOF, removed by mistakejuga0
in 071236e3e252fd0dcf5102739adecb8e69a76c4c.
2018-04-26Add clarification about type of file expectedjuga0
2018-04-26Remove FIXME about comparing num countries,juga0
* remove the fixme since clearing the countries should be other issue * remove unused variables related to it since that cause travis to fail
2018-04-26tests: Fix a couple typos and remove unnecessary inline comments.Isis Lovecruft
2018-04-26tests: Skip two more geoip_load_file tests on Windows.Isis Lovecruft
* FIXES part of #25515: https://bugs.torproject.org/25515
2018-04-16Add test to check that loading a 2nd file replaces the 1stjuga0
Signed-off-by: Isis Lovecruft <isis@torproject.org>
2018-04-16Add a test for geoip_load_file() using geoip6juga0
Signed-off-by: Isis Lovecruft <isis@torproject.org>
2018-04-13Disable load_geoip_file() tests on windowsNick Mathewson
See bug #25787 for discussion; we should have a better fix here.
2018-03-23test: more data on geoip load failure.Nick Mathewson
2018-03-15Add a test for geoip_load_file().Nick Mathewson
2018-03-15Split geoip tests into a separate module.Nick Mathewson