summaryrefslogtreecommitdiffstats
path: root/tools (follow)
Commit message (Collapse)AuthorAgeFilesLines
* docs: tweak index.md generation and run it againLennart Poettering2018-11-161-2/+3
|
* oss-fuzz.sh: copy dictionaries along with "options" filesEvgeny Vereshchagin2018-11-061-0/+1
| | | | | We currently don't have any upstream but it doesn't mean that it should be impossible to experiment with local ones :-)
* tests: add a fuzzer for the json parser and dumperEvgeny Vereshchagin2018-10-101-0/+3
|
* meson: use same compilers to build fuzzersYu Watanabe2018-10-091-1/+3
|
* Merge pull request #10246 from keszybz/fuzz-bussLennart Poettering2018-10-021-2/+4
|\ | | | | Bus fuzzer
| * fuzz: rename "fuzz-corpus" directory to just "fuzz"Zbigniew Jędrzejewski-Szmek2018-10-021-2/+4
| | | | | | | | | | Also, all corpus subdirectories are named exactly the same as the fuzzer they are for. This makes the paths a bit longer, but easier.
* | docs: add a simple, auto-generated index.mdLennart Poettering2018-10-021-0/+15
|/ | | | This is useful for the github pages feature
* tools: use print function in Python 3 codeLucas Werkmeister2018-08-271-8/+10
| | | | | | | | | This GDB script was converted to use Python 3 along with all other Python scripts in commit b95f5528cc, but still used the Python 2 print statement syntax instead of the Python 3 print function. Fix that. We also add the Python 2 compatibility statement, just in case some GDB still uses Python 2 instead of Python 3.
* oss-fuzz.sh: just install the shared libraryEvgeny Vereshchagin2018-08-161-2/+1
| | | | | | | | The workaround is no longer necessary, because the scripts checking fuzzers have stopped going down to the subdirectories of $OUT and started to look for the string "LLVMFuzzerTestOneInput" to tell fuzzers and random binaries apart. Some more details can be found at https://github.com/google/oss-fuzz/issues/1566.
* meson: print stats in check-api-docsZbigniew Jędrzejewski-Szmek2018-08-021-0/+23
|
* Merge pull request #8876 from yuwata/meson-0.46Zbigniew Jędrzejewski-Szmek2018-07-241-1/+0
|\ | | | | meson: bump minimum required version to 0.46
| * meson: use has_link_argument() and friendsYu Watanabe2018-07-231-1/+0
| | | | | | | | | | This bumps the minimum required version of meson to 0.46, as `has_link_argument()` and friends are supported since 0.46.
* | Drop "Copyright abandonded" headerZbigniew Jędrzejewski-Szmek2018-07-241-1/+1
|/ | | | | | Add CC0 as the license. SPDX does not have a "public domain" tag, but CC0 is more or less equivalent. We should have *some* header to avoid doubts in the future.
* meson: check the existence of ninja.build for fuzzer testsYu Watanabe2018-07-231-1/+1
|
* coverity.sh: fail if uploading data to Coverity Scan is forbiddenEvegeny Vereshchagin2018-06-261-1/+1
|
* coverity.sh: use a comma to separate module namesEvegeny Vereshchagin2018-06-261-1/+1
| | | | | | | | | | | Otherwise Python bails out with ``` Traceback (most recent call last): File "<string>", line 1, in <module> NameError: name 'json' is not defined ``` See https://travis-ci.org/systemd/systemd/jobs/397490437
* coverity.sh: make the script compatible with Python 3Evegeny Vereshchagin2018-06-251-2/+2
|
* coverity.sh: fix a couple indentsEvegeny Vereshchagin2018-06-251-2/+2
|
* tree-wide: drop copyright headers from frequent contributorsZbigniew Jędrzejewski-Szmek2018-06-202-4/+0
| | | | | | | | Fixes #9320. for p in Shapovalov Chevalier Rozhkov Sievers Mack Herrmann Schmidt Rudenberg Sahani Landden Andersen Watanabe; do git grep -e 'Copyright.*'$p -l|xargs perl -i -0pe 's|/([*][*])?[*]\s+([*#]\s+)?Copyright[^\n]*'$p'[^\n]*\s*[*]([*][*])?/\n*|\n|gms; s|\s+([*#]\s+)?Copyright[^\n]*'$p'[^\n]*\n*|\n|gms' done
* Merge pull request #9301 from keszybz/man-drop-authorgroupLennart Poettering2018-06-142-18/+0
|\ | | | | man: drop unused <authorgroup> tags from man sources
| * Also drop <authorgroup> from autogenerated pagesZbigniew Jędrzejewski-Szmek2018-06-142-18/+0
| |
* | Drop my copyright headersZbigniew Jędrzejewski-Szmek2018-06-145-10/+0
|/ | | | | | | perl -i -0pe 's/\s*Copyright © .... Zbigniew Jędrzejewski.*?\n/\n/gms' man/*xml git grep -e 'Copyright.*Jędrzejewski' -l | xargs perl -i -0pe 's/(#\n)?# +Copyright © [0-9, -]+ Zbigniew Jędrzejewski.*?\n//gms' git grep -e 'Copyright.*Jędrzejewski' -l | xargs perl -i -0pe 's/\s*\/\*\*\*\s+Copyright © [0-9, -]+ Zbigniew Jędrzejewski[^\n]*?\s*\*\*\*\/\s*/\n\n/gms' git grep -e 'Copyright.*Jędrzejewski' -l | xargs perl -i -0pe 's/\s+Copyright © [0-9, -]+ Zbigniew Jędrzejewski[^\n]*//gms'
* tree-wide: beautify remaining copyright statementsLennart Poettering2018-06-147-7/+7
| | | | | | Let's unify an beautify our remaining copyright statements, with a unicode ©. This means our copyright statements are now always formatted the same way. Yay.
* tree-wide: remove Lennart's copyright linesLennart Poettering2018-06-141-1/+0
| | | | | | | | | | | These lines are generally out-of-date, incomplete and unnecessary. With SPDX and git repository much more accurate and fine grained information about licensing and authorship is available, hence let's drop the per-file copyright notice. Of course, removing copyright lines of others is problematic, hence this commit only removes my own lines and leaves all others untouched. It might be nicer if sooner or later those could go away too, making git the only and accurate source of authorship information.
* tree-wide: drop 'This file is part of systemd' blurbLennart Poettering2018-06-146-12/+1
| | | | | | | | | | | | | | | | This part of the copyright blurb stems from the GPL use recommendations: https://www.gnu.org/licenses/gpl-howto.en.html The concept appears to originate in times where version control was per file, instead of per tree, and was a way to glue the files together. Ultimately, we nowadays don't live in that world anymore, and this information is entirely useless anyway, as people are very welcome to copy these files into any projects they like, and they shouldn't have to change bits that are part of our copyright header for that. hence, let's just get rid of this old cruft, and shorten our codebase a bit.
* hwdb-update: make sure it works when run from mesonLennart Poettering2018-06-131-1/+3
| | | | | let's make the argument optional again, so that the command line "ninja -C build hwdb-update" runs works.
* coverity.sh: check that coverity responds with 200Evegeny Vereshchagin2018-06-071-1/+10
| | | | | | This is mostly inspired by https://github.com/pmem/pmdk/commit/7b103fd2dd54b2e5974f71fb65c81ab3713c12c5 Closes https://github.com/systemd/systemd/issues/9186.
* tools: make various scripts find the top-levle git dir automaticallyLennart Poettering2018-06-072-4/+8
|
* find-double-newline: look in headers tooLennart Poettering2018-05-221-2/+2
|
* tools: add a script for fixing up TABsLennart Poettering2018-05-221-0/+40
| | | | | This is similar to "find-double-newline.sh" but looks for TABs that should not be there.
* tools/oss-fuzz: install private shared library non-executable (#8927)Zbigniew Jędrzejewski-Szmek2018-05-081-2/+2
| | | | | | Apparently oss-fuzz's "bad build check" is confused by the library. Let's make it non-executable, so the checker ignores it. Should fix https://github.com/google/oss-fuzz/issues/1330.
* meson: generate m4 preprocessor from config.h (#8914)Yu Watanabe2018-05-071-0/+24
|
* tree-wide: drop spurious newlines (#8764)Lennart Poettering2018-04-191-0/+40
| | | | | | | | Double newlines (i.e. one empty lines) are great to structure code. But let's avoid triple newlines (i.e. two empty lines), quadruple newlines, quintuple newlines, …, that's just spurious whitespace. It's an easy way to drop 121 lines of code, and keeps the coding style of our sources a bit tigther.
* tree-wide: drop license boilerplateZbigniew Jędrzejewski-Szmek2018-04-066-78/+0
| | | | | | | | | | Files which are installed as-is (any .service and other unit files, .conf files, .policy files, etc), are left as is. My assumption is that SPDX identifiers are not yet that well known, so it's better to retain the extended header to avoid any doubt. I also kept any copyright lines. We can probably remove them, but it'd nice to obtain explicit acks from all involved authors before doing that.
* oss-fuzz: Fallback to `ninja-build` when available (#8641)Filipe Brandenburger2018-04-041-1/+9
| | | | | The ninja binary is deployed as `ninja-build` in older distros such as RHEL 7/CentOS 7. Detect that and use `ninja-build` instead of `ninja` when it's available.
* tools/oss-fuzz: add clang library dir using -LZbigniew Jędrzejewski-Szmek2018-03-121-2/+9
| | | | | | | | | | | | | I have no idea why clang doesn't do this on its own, and why clang makes it so hard to query this path (-dumpversion returns something unrelated...). I know this is an ugly hack, but this is a very specialized script, so it should be OK to make it a bit hacky. Tested to work on Fedora (27) and Debian (unstable). Fixes #8428.
* Rename scripts/oss-fuzz.sh to tools/oss-fuzz.shZbigniew Jędrzejewski-Szmek2018-03-121-0/+59
|
* Rename scripts/coverity.sh to tools/coverity.shZbigniew Jędrzejewski-Szmek2018-03-121-0/+224
| | | | | There are only two files in tools/, I don't think we need a separate directory for them.
* tools/hwdb-update: allow downloads to failZbigniew Jędrzejewski-Szmek2018-03-021-0/+8
| | | | | sf.net is down, and linux-usb.org which is hosted there also fails. That's not nice, but there's not we can do about it now.
* tools/hwdb-update: print what is being executedZbigniew Jędrzejewski-Szmek2018-03-021-2/+4
|
* [gdb-sd_dump_hashmaps.py] String Formatting Update (#7819)Batuhan Osman Taşkaya2018-01-271-7/+7
| | | Changes: % changed as .format()
* Hook up oss-fuzz test cases as testsZbigniew Jędrzejewski-Szmek2018-01-271-0/+10
| | | | | | | | | | | | | | | | | | | | | | This is a bit painful because a separate build of systemd is necessary. The tests are guarded by tests!=false and slow-tests==true. Running them is not slow, but compilation certainly is. If this proves unwieldy, we can add a separate option controlling those builds later. The build for each sanitizer has its own directory, and we build all fuzzer tests there, and then pull them out one-by-one by linking into the target position as necessary. It would be nicer to just build the desired fuzzer, but we need to build the whole nested build as one unit. [I also tried making systemd and nested meson subproject. This would work nicely, but meson does not allow that because the nested target names are the same as the outer project names. If that is ever fixed, that would be the way to go.] v2: - make sure things still work if memory sanitizer is not available v3: - switch to syntax which works with meson 0.42.1 found in Ubuntu
* fuzz: add initial fuzzing infrastructureJonathan Rudenberg2018-01-171-0/+0
| | | | | | | | The fuzzers will be used by oss-fuzz to automatically and continuously fuzz systemd. This commit includes the build tooling necessary to build fuzz targets, and a fuzzer for the DNS packet parser.
* meson: resurrect API documentation targetLennart Poettering2018-01-051-0/+11
| | | | We had this functionality back in Automake times, let's resurrect it.
* separate flags from shebangbleep_blop2017-12-257-7/+14
|
* more portable perl shebangs (#7701)Jörg Thalheim2017-12-191-1/+1
| | | | | | | | same motivation as in #5816: - distributions have scripts to rewrite shebangs on installation and they know what locations to rely on. - For tests/compilation we should rather rely on the user to have setup there PATH correctly.
* meson-hwdb-update: fix undefined variable accessZbigniew Jędrzejewski-Szmek2017-12-141-2/+4
| | | | | | | I added the test if an optional parameter is not empty, but that doesn't work with -u. Provide an empty "fallback" value to fix the issue. Also group the update steps so that it's easier to see what is going on.
* tests: try to autodetect directory betterZbigniew Jędrzejewski-Szmek2017-12-061-0/+31
| | | | | | | | | | Ignore mkosi.builddir. In the future we can also add other patterns if necessary. run-intergration-tests.sh is updated to use the new script, and modified to work from arbitrary directory. Follow-up for #7494.
* test: set log_level to info in test-hwdb and check-help-*Yu Watanabe2017-11-251-0/+2
| | | | | | | | | | These tests check the stderr. So, if the systemd.log_level=debug is set in the kernel command line, then these tests fail. This set log_level to info in hwdb-test.sh and meson-check-help.sh, the kernel command line not to change the output of the target programs. Fixes #7362.
* Add SPDX license headers to python scriptsZbigniew Jędrzejewski-Szmek2017-11-196-0/+8
|