summaryrefslogtreecommitdiff
path: root/scripts
AgeCommit message (Collapse)Author
2020-03-20practracker: Disable practracker in git hooksteor
Disable our coding standards best practices tracker in our git hooks. 0.4.3 branches only. Closes ticket 33678.
2020-02-20Merge remote-tracking branch 'tor-github/pr/1757/head' into maint-0.4.3Nick Mathewson
2020-02-19practracker: Read unicode files when using Python 2teor
Allow the "practracker" coding best practices checking script to read unicode files, when using Python 2. We made the script use unicode literals in 0.4.3.1-alpha, but didn't change the codec for opening files. Fixes bug 33374; bugfix on 0.4.3.1-alpha.
2020-02-11Merge branch 'ticket33029_042_01' into ticket33029_043_03David Goulet
Conflicts: doc/tor.1.txt src/app/config/config.c src/app/config/or_options_st.h src/core/mainloop/connection.h Between 042 and 043, the dirauth options were modularized so this merge commit address this by moving the AuthDirRejectUncompressedRequests to the module along with a series of accessors. Signed-off-by: David Goulet <dgoulet@torproject.org>
2020-02-11Undefined name: make_key() -> make_rsa_key()Christian Clauss
2020-02-06Merge remote-tracking branch 'public/practracker_regen_overbroad_2'Nick Mathewson
2020-02-03practracker: use shutil.move so --regen will work on windowsNick Mathewson
On windows you can't os.rename() a file if the target filename already exists.
2020-02-03practracker: integration tests for --regen and --regen-overbroadNick Mathewson
2020-02-03practracker: add a --regen-overbroad option to remove overbroad exceptions.Nick Mathewson
Closes ticket 32372.
2020-02-03Remove unused import UserDictChristian Clauss
Fixes: https://trac.torproject.org/projects/tor/ticket/32791#comment:3 Unblocks: #1686
2020-01-28Use print() function in both Python 2 and Python 3cclauss
2020-01-23Git hooks: remove support for 0.2.9 directory layout.Nick Mathewson
We no longer will be pushing or committing things in branches that use src/common or src/or. Resolves ticket 32957.
2020-01-20add_c_file: Replace asserts with exceptionsteor
Closes 32962.
2020-01-20add_c_file: Improve script documentationteor
Part of 32962.
2020-01-20add_c_file: Improve tor source directory checksteor
Check that the script isn't in a tor build directory, by looking for a src/include.am file. Part of 32962.
2020-01-16add_c_file: Rename variables based on the type of pathteor
* fname for generic file paths * tor_fname for paths relative to the top-level tor directory * src_fname for paths relative to tor's src directory With prefixes as required to disambiguate different paths of the same type. Part of 32962.
2020-01-16add_c_file: Simplify some usage of srcdir_file()teor
Part of 32962.
2020-01-16add_c_file: Document the paths used by each part of the scriptteor
Most paths are relative to the top-level tor directory, but the paths in the C and H files are relative to tor's src directory. Part of 32962.
2020-01-16add_c_file: Improve path handling and canonicalisationteor
* distinguish between paths relative to the top-level tor directory, and paths relative to tor's src directory * canonicalise paths before using them * check that the script is run from the top-level tor directory * check that the file is being created in tor's src directory Part of 32962.
2020-01-16add_c_file: tolerate ./ in filenames.Nick Mathewson
2020-01-16add_c_file: handle adding to the end of a list correctly.Nick Mathewson
Fixes bug 32962.
2020-01-15Merge remote-tracking branch 'tor-github/pr/1657'Nick Mathewson
2020-01-15Merge branch 'pr1599_squashed'teor
2020-01-15practracker: Wrap long lines in the test scriptteor
2020-01-15practracker: Test practracker exit statusteor
Part of 32705.
2020-01-15practracker: Fail tests if any process exits unexpectedlyteor
Part of 32705.
2020-01-15practracker: Capture stderr output in test_practracker.shteor
And canonicalise file paths, so that output is consistent, even in out-of-tree builds. Capturing stderr output produces better diagnostics. Diagnostics for 32705.
2020-01-15scripts/git: Improve branch list commentsteor
Hopefully, these explanations make it easier to get the next branch transition right. Part of 32772.
2020-01-15scripts/git: Fix git-merge-forward after removing 0.2.9teor
We need a test branch for the earliest maint branch (maint-0.3.5), but we can't merge forward into it, because there is no previous active maint branch. Also, edit a git-push-all comment that still said "029". Bugfix on 32772; bug not in any released version of tor.
2020-01-14Merge branch 'tor-github/pr/1633'David Goulet
2020-01-14Merge branch 'maint-0.4.2'teor
2020-01-14practracker: print a notice to stderr when disabledteor
When TOR_DISABLE_PRACTRACKER is set, print a message to stderr when skipping practracker checks. Part of 32705.
2020-01-13test_practracker.sh: never disable practrackerNick Mathewson
When practracker is disabled, its output will be empty. We don't want that happening during our tests. Fixes bug 32705; bugfix on 0.4.2.1-alpha, when test_practracker.sh was introduced.
2020-01-13Split core/include.am into per-subdirectory include.am filesNick Mathewson
Closes ticket 32137.
2019-12-30Remove 0.2.9 from git scriptsrl1987
2019-12-20Makefile/git scripts: Add comments to keep owned file lists in syncteor
2019-12-19Merge remote-tracking branch 'tor-github/pr/1584'teor
2019-12-12python: Add __future__ imports for python 3 compatibilityteor
Except for src/ext, which we may not want to modify. Closes ticket 32732.
2019-12-09Port changelog tools to python 3Nick Mathewson
Closes ticket 32704.
2019-12-05cocci: Require spatch >= 1.0.4 to run checksteor
No changes file required: not in any released version of tor. Fixes bug 32663.
2019-12-04Merge branch 'ticket32609_squashed'Nick Mathewson
2019-12-04practracker: document !advisory in includes.pyteor
2019-12-04git scripts: Add the checkSpace.pl unit teststeor
Extra testing after 32613.
2019-12-04practracker: Test for bad ".c" includes in the unit teststeor
Part of 32522.
2019-12-04Makefile/git scripts: Add the practracker unit teststeor
Add a check-practracker-unit-test target, and run it as part of "make check". Add the practracker unit tests to scripts/git/pre-commit.git-hook. Part of 32609.
2019-12-03Have checkSpaceTest.sh exit as skipped when on WindowsNick Mathewson
Managing line-ending issues for this one isn't worth it.
2019-12-03Add a simple test for checkSpace.plNick Mathewson
This script is not expected to work on windows due to line-ending issues, so I'm not making it get run on an automated basis. We should use it when editing checkSpace.pl. Closes ticket 32613.
2019-11-26checkSpace.pl: make output more uniform.Nick Mathewson
There were lots of slight differences in indentation and formatting among the in-file error messages.
2019-11-26practracker/includes.py: Don't read editor temp filesteor
(Or any files that start with "." or "#".) Obviously correct changes to already-reviewed code.
2019-11-26check-spaces: Fix an outdated commentteor