summaryrefslogtreecommitdiffstats
path: root/tools (follow)
Commit message (Collapse)AuthorAgeFilesLines
...
* 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
|
* hwdb: switch meson to use ids_parser.py (#6964)Zbigniew Jędrzejewski-Szmek2017-10-041-1/+1
| | | | Also drop the now-unused perl implementation (that doesn't do sorting), so it's incompatible anyway.
* hwdb: updateZbigniew Jędrzejewski-Szmek2017-10-021-1/+1
| | | | | http://www.uefi.org/uefi-pnp-export is returning an internal server error, so the previous version was used.
* meson-hwdb-update.sh: add -n param to skip downloadsZbigniew Jędrzejewski-Szmek2017-10-021-8/+10
| | | | Useful to experiment with the patching part w/o redownloading the files.
* meson: install the git hook (#6425)Zbigniew Jędrzejewski-Szmek2017-07-241-0/+11
| | | | | | | | | | | This was done autogen.sh previously and was dropped in 72cdb3e783174dcf9223a49f03e3b0e2ca95ddb8. Let's add it back. The meson configuration step is the only reasonable place. Note that this only works for the most standard git dirs, e.g. the hook will not be installed if git worktree is used or if $GIT_DIR is specified, etc. I think that's OK because most of the time meson will be run at least once in the original cloned dir.
* python: remove star importsZbigniew Jędrzejewski-Szmek2017-07-183-3/+3
| | | | | | Star imports are discouraged and break pyflakes. I'm happy to report that pyflakes finds no issues ;)
* build-sys: drop support for generation of Makefile-man.amZbigniew Jędrzejewski-Szmek2017-07-181-67/+4
|
* git-contrib: drop weird non-breaking spacesLennart Poettering2017-07-031-0/+1
| | | | | | For some reason git shortlog spits out non-breaking spaces, let's remove that, as for our purposes (inclusion in NEWS) we really want breaking (i.e. normal) spaces.