summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2019-09-16Fix a shellcheck warning in test_parseconf.sh.Nick Mathewson
I wonder why this didn't show up before.
2019-09-16sort and coalesce some changelog sectionsNick Mathewson
2019-09-16Run format-changelog, add a stub blurb.Nick Mathewson
2019-09-16Start a changelog for 0.4.2.1-alphaNick Mathewson
This commit sorts the changes files using sortChanges, and inserts them into a changelog entry.
2019-09-16Merge branch 'tor-github/pr/1316'George Kadianakis
2019-09-16Merge branch 'tor-github/pr/1324'George Kadianakis
2019-09-16Merge branch 'tor-github/pr/1273'George Kadianakis
2019-09-16Merge branch 'tor-github/pr/1318'George Kadianakis
2019-09-14test_parseconf.sh: On --dump-config failure, --verify-configNick Mathewson
2019-09-14Add a test with many non-default options.Nick Mathewson
2019-09-14Add a few error test casesNick Mathewson
2019-09-14Add an integration test for %include.Nick Mathewson
2019-09-14test_parseconf: run each test from inside its directory.Nick Mathewson
We need this to test includes and relative paths.
2019-09-14Add a changes file for ticket 31637.Nick Mathewson
2019-09-14Add test for +Option, /Option, and OptionNick Mathewson
Here we use these directives to replace, extend, or clear values in torrc.defaults and in torrc.
2019-09-14Move our first 3 example conf_examples to named directoriesNick Mathewson
I'm not planning to use "example" as the name for all of them, but these first three _are_ simple examples.
2019-09-14Add a test script to try parsing and encoding Tor configurationsNick Mathewson
This script takes a set of example torrcs and command-lines from src/test/conf_examples. If a success is expected, it runs "tor --dump-config" and compares the result with the one we expect. If a failure is expected, it runs "tor --verify-config" and greps for the error we expect.
2019-09-13Detect overflow or underflow on double config values.Nick Mathewson
Any floating point value too positive or negative to distinguish from +/-Inf, or too small to distinguish from +/-0, is an over/underflow.
2019-09-12Merge branch 'tor-github/pr/1319'David Goulet
2019-09-12Merge branch 'tor-github/pr/1285'David Goulet
2019-09-12Merge branch 'tor-github/pr/1303'George Kadianakis
2019-09-12Merge branch 'tor-github/pr/1299'George Kadianakis
2019-09-12Workaround for GCC "note" about "variable tracking size limit"Nick Mathewson
GCC complains that we are using too many variables here, probably because of the sheer number of locals used for our tinytest macros. Eventually we should fix that (see 30968), but this commit just makes the "note" go away by splitting the test function into two.
2019-09-12Remove variable declarations from macros in test_addr_parse()Nick Mathewson
Instead, put them in the function itself. This is an attempt to fix the gcc warning about the "variable tracking size limit exceeded".
2019-09-12Merge remote-tracking branch 'tor-github/pr/1300'Nick Mathewson
2019-09-11Changes file for ticket31626 (confparse.[ch] move)Nick Mathewson
2019-09-11Update include.am files to refer to new location of confparse.[ch]Nick Mathewson
Tests should now pass again.
2019-09-11Update #includes to point to confparse.h in its new location.Nick Mathewson
This commit was automatically generated by running scripts/maint/rectify_include_paths.py .
2019-09-11Move confparse.[ch] into src/lib/confmgt/Nick Mathewson
This commit only does code movement, and does not clean up after itself. As such, it will break compilation. I'm separating it for ease of review.
2019-09-11Add new entries to lib/confmgt ".may_include" fileNick Mathewson
confparse.[ch] will need these; checkIncludes confirms that we have not introduced a cycle.
2019-09-11Merge branch 'tor-github/pr/1296'David Goulet
2019-09-11Document inconsistent usage of config_var_is_listable()Nick Mathewson
See also ticket 31654.
2019-09-11Extract common list of flags to use for obsolete variables.Nick Mathewson
2019-09-11Clarify documentation on config_var_is_listable()Nick Mathewson
Here we make it clear we're only looking at listable variable names, not at whether the variables themselves are gettable. Also, remove an extraneous h. (This commit is not a fixup, because of rebase conflicts.)
2019-09-11Add test_cmdline.sh to distribution.Nick Mathewson
2019-09-11integration test for --list-torrc-optionsNick Mathewson
(This option tests our existing behavior, not necessarily the most sensible behavior.)
2019-09-11Test: Make sure NOLIST options are not listed.Nick Mathewson
2019-09-11Changes file for 31625 (config flag refactor)Nick Mathewson
2019-09-11Revise documentation on CFLG_* flagsNick Mathewson
2019-09-11Remove all CVFLAG_* usage.Nick Mathewson
2019-09-11Remove all VTFLAG_* usage.Nick Mathewson
2019-09-11confparse, conftypes: Replace flags with their new names.Nick Mathewson
The old names remain as #defines that cause variables to get one or more flags. Now every flag-testing function in confparse.c tests exactly one flag.
2019-09-11Replace low-level {var_type,struct_var}_is_*() with flag inspectionNick Mathewson
Since the flags are now stored with compatible numbering, we can just OR them together and see whether the flag we want is in the result. (Net code removal!)
2019-09-11Re-number VTFLAG_* values so they don't conflict with CVFLAG_*Nick Mathewson
2019-09-11Move VTFLAG_* declarations to conftypes.hNick Mathewson
2019-09-11typed_var: Make flags into an unsigned OR of bits.Nick Mathewson
Using a bitfield here will enable us to unify the var_type_def_t flags with the config_var_t flags. (This commit does not yet do that unification, and does not yet rename or refactor any flags. It only changes booleans into bits.)
2019-09-11struct_var: refactor struct_var_is*() functions to delegateNick Mathewson
Previously they checked the individual flags inside var_type_def_t; now they call the appropriate var_type_is_*() functions. (These functions will be removed entirely by the end of this branch.)
2019-09-11config: make config_var_is_dumpable static.Nick Mathewson
2019-09-11config: rename "contained" to "derived", and explain it better.Nick Mathewson
Don't use "derived" directly, but check its implications for listing and copying.
2019-09-11config: Introduce the concept of an "ungettable" variable.Nick Mathewson
We had though to make all obsolete and invisible variables ungettable, so that GETCONF would reject them. But it turns out that this isn't the current behavior of GETCONF with those variables. So for now, I'm leaving the current behavior unchanged. (See ticket 31647 for a proposal to change the behavior.)