summaryrefslogtreecommitdiffstats
path: root/tools (follow)
Commit message (Collapse)AuthorAgeFilesLines
* test: pin meson to 0.52.1 for fuzzit/fuzzbuzzFrantisek Sumsal2020-01-081-0/+4
| | | | | | | | Latest meson doesn't work with older python 3.5, which is present on Ubuntu 16.04. Let's pin in to the latest working version (0.52.1) until we properly bump all necessary Ubuntu images to 18.04. See: https://github.com/mesonbuild/meson/issues/6427
* man: sort options without "=" in the directives indexZbigniew Jędrzejewski-Szmek2019-11-211-0/+3
| | | | | | | Some options would appear twice in the index, e.g. --collect= and --collect. Some man pages use one form, some the other, and the argument might be mandatory for some commands but not others. Anyway, let's display them as one entry, to reduce the total number of items listed.
* man: fix a few bogus entries in directives indexZbigniew Jędrzejewski-Szmek2019-11-211-1/+1
| | | | | | When wrong element types are used, directives are sometimes placed in the wrong section. Also, strip part of text starting with "'", which is used in a few places and which is displayed improperly in the index.
* man: change noindex="true" to index="false"Zbigniew Jędrzejewski-Szmek2019-11-211-2/+2
| | | | We nowadays prefer positive options over negative.
* meson: add target to update the chromiumos rulesZbigniew Jędrzejewski-Szmek2019-11-152-0/+7
| | | | | | | | There is no change in the file right now, but the download seems to work OK. It's funny that the biggest company in the world cannot provide a download link in plain text.
* coverity: replace python with jqEvgeny Vereshchagin2019-10-301-3/+3
| | | | | | | | Judging by https://travis-ci.org/systemd/systemd/jobs/604425785 (where the script failed with "tools/coverity.sh: line 45: python: command not found") python-unversioned-command is no longer installed by default with python2. Given that it's not the first time python has vanished and it's not clear what exactly should be installed to make sure it's there, let's just use jq instead.
* trivial: rename chromeos to chromiumosTim Teichmann2019-10-073-3/+3
|
* trivial: update tools/chromeos/gen_autosuspend_rules.pyMario Limonciello2019-10-051-1/+3
| | | | Adds CNP PCH xHCI device PCIID to udev rules
* Add missing license file and information for ↵Tim Teichmann2019-10-051-0/+27
| | | | | | tools/chromeos/gen_autosuspend_rules.py (#13729) The license file for the python script that was commited with b61d777abeecd8b6c76035e11899aae210633534 was missing. The license was copied from https://chromium.googlesource.com/chromiumos/platform2/+/master/LICENSE.
* rules: Add automatic suspend udev rulesMario Limonciello2019-10-042-0/+329
| | | | | | | | | | | | | | | | | | | The ChromeOS ecosystem has a large amount of testing, both automated and manual across devices including measurement of power regressions. It's safe to assume that any of these devices will handle USB auto-suspend appropriately. Use the script from ChromeOS https://chromium.googlesource.com/chromiumos/platform2/+/master/power_manager/udev/gen_autosuspend_rules.py to generate udev rules at build time. This script in systemd `tools/chromeos/gen_autosuspend_rules.py` should be kept in sync with the ChromeOS version of the script. Manually added autosuspend devices should be placed in the new template `rules/61-autosuspend-manual.rules` Suggested-by: Hans de Goede <hdegoede@redhat.com> Signed-off-by: Mario Limonciello <mario.limonciello@dell.com>
* oss-fuzz.sh: stop downloading the skia seed corpusEvgeny Vereshchagin2019-09-111-1/+0
| | | | | | | | | | | | | | | | | When the fuzz target was integrated, it was added as a stopgap to get fuzz-json up and running. It served its purpose and can safely be removed to prevent tools/oss-fuzz.sh from failing with ``` +wget -O /home/travis/build/systemd/systemd/out/fuzz-json_seed_corpus.zip https://storage.googleapis.com/skia-fuzzer/oss-fuzz/skjson_seed_corpus.zip --2019-09-10 22:40:44-- https://storage.googleapis.com/skia-fuzzer/oss-fuzz/skjson_seed_corpus.zip Resolving storage.googleapis.com (storage.googleapis.com)... 74.125.70.128, 2607:f8b0:4001:c05::80 Connecting to storage.googleapis.com (storage.googleapis.com)|74.125.70.128|:443... connected. HTTP request sent, awaiting response... 403 Forbidden 2019-09-10 22:40:44 ERROR 403: Forbidden. ``` Ideally we should put our seed corpus somewhere and download it from there but I haven't got round to it.
* meson: catch programs which ignore argumentsZbigniew Jędrzejewski-Szmek2019-07-221-2/+8
| | | | | Don't try to use <<<. It seems to not work properly with old bash versions or something.
* meson: update hint in man/rules/Zbigniew Jędrzejewski-Szmek2019-07-191-0/+2
|
* Merge pull request #12510 from keszybz/test-directivesYu Watanabe2019-05-211-6/+8
|\ | | | | test: run check-directives.sh as part of the test suite
| * test: run check-directives.sh as part of the test suiteZbigniew Jędrzejewski-Szmek2019-05-201-6/+8
| |
* | meson-vcs-tag: enhance version info generationJoe Lin2019-05-211-1/+5
|/ | | | | | | | | | | | When build from release tarball and where there is parent .git dir, this situtaion will get wrong version info. (build with buildroot) The systemd running show wrong version in dmesg log: systemd[1]: systemd 2019.02-1086-gf5f17c4 running in system mode. ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ Shoule be: systemd[1]: systemd 241 running in system mode. (-PAM -AUDIT -SEL ^^^^^^^^^^^
* fuzzers: use -fsanitizer=fuzzer if clang supports itEvgeny Vereshchagin2019-05-141-2/+2
| | | | Closes https://github.com/systemd/systemd/issues/10645
* check-directives: use diff to show what the differences really areZbigniew Jędrzejewski-Szmek2019-05-081-3/+9
| | | | | This also makes the comparison more detailed, since we check spelling, including case.
* codespell: fix spelling errorsBen Boeckel2019-04-291-2/+2
|
* scripts: use 4 space indentationZbigniew Jędrzejewski-Szmek2019-04-1215-278/+273
| | | | | | | | | | | | | | | | | | We had all kinds of indentation: 2 sp, 3 sp, 4 sp, 8 sp, and mixed. 4 sp was the most common, in particular the majority of scripts under test/ used that. Let's standarize on 4 sp, because many commandlines are long and there's a lot of nesting, and with 8sp indentation less stuff fits. 4 sp also seems to be the default indentation, so this will make it less likely that people will mess up if they don't load the editor config. (I think people often use vi, and vi has no support to load project-wide configuration automatically. We distribute a .vimrc file, but it is not loaded by default, and even the instructions in it seem to discourage its use for security reasons.) Also remove the few vim config lines that were left. We should either have them on all files, or none. Also remove some strange stuff like '#!/bin/env bash', yikes.
* Update UEFI URLs (#12260)Paul Menzel2019-04-091-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Use more secure https://www.uefi.org http://www.uefi.org directs to https://uefi.org/, so this saves one redirect. $ curl -I http://www.uefi.org HTTP/1.1 302 Found Server: nginx Date: Tue, 09 Apr 2019 14:54:46 GMT Content-Type: text/html; charset=iso-8859-1 Connection: keep-alive X-Content-Type-Options: nosniff Location: https://uefi.org/ Cache-Control: max-age=1209600 Expires: Tue, 23 Apr 2019 14:54:46 GMT Run the command below to update all occurrences. git grep -l http://www.uefi.org | xargs sed -i 's,http://www.uefi.org,https://www.uefi.org,' * Use https://uefi.org to save redirect Save one redirect by using the target location. $ curl -I https://www.uefi.org HTTP/1.1 301 Moved Permanently Server: nginx Date: Tue, 09 Apr 2019 14:55:42 GMT Content-Type: text/html; charset=iso-8859-1 Connection: keep-alive X-Content-Type-Options: nosniff Location: https://uefi.org/ Cache-Control: max-age=1209600 Expires: Tue, 23 Apr 2019 14:55:42 GMT Run the command below to update all occurrences. git grep -l https://www.uefi.org | xargs sed -i 's,https://www.uefi.org,https://uefi.org,'
* tools: check all directives even if it detects non-updated filesYu Watanabe2019-02-251-3/+6
|
* tools: update check-directives.sh to support fuzz-link-parserYu Watanabe2019-02-251-0/+5
|
* man: add a new section for EFI variablesZbigniew Jędrzejewski-Szmek2019-02-131-0/+10
| | | | | | | We should probably refer to them from other man pages for programs which use them, since right now all refs are in systemd-boot(7). But creating the section is a good step anyway.
* man: add a new directives section for .nspawnZbigniew Jędrzejewski-Szmek2019-02-131-1/+10
| | | | | | They is quite a bit of those directives and they were in "MISCELLANEOUS" because they don't quite fit anywhere. When the OCI-compat stuff is merged, there'll be even more, so let's make a separate section for them.
* man: move all config file options to one sectionZbigniew Jędrzejewski-Szmek2019-02-131-3/+3
| | | | | | We had "SYSTEM MANAGER DIRECTIVES" which was a misnomer already, because it also listed user manager stuff. Let's make this a more general section and move the items for other services there too (from "MISCELANENOUS").
* man: move os-release, machine-info, vconsole.conf vars to envvar sectionZbigniew Jędrzejewski-Szmek2019-02-131-2/+2
| | | | | Strictly speaking, those are not environment variables, but they are compatible and people think about them like this. Moving them makes them easier to find.
* tools/choose-default-locale.sh: set shebang to /bin/shJörg Thalheim2019-01-171-1/+1
| | | | | | | | The script does not use any bash features. On NixOS we have /bin/sh and /usr/bin/env for posix compatibility but not /bin/bash as it is stored in our nix store. With this change one can run the `meson configure` without patching which greatly helps, when working on upstream contributions.
* Merge pull request #11317 from filbranden/docs1Zbigniew Jędrzejewski-Szmek2019-01-031-32/+0
|\ | | | | Improvements to systemd.io generation
| * docs: generate index.md in JekyllFilipe Brandenburger2019-01-021-32/+0
| | | | | | | | | | | | | | | | | | | | This uses a {% for %} loop in Jekyll to render the page, from the "title" information in the Front Matter of the actual page files. This also makes `make-index-md` build rule unnecessary, since generation is done by the template engine itself. Tested this by running Jekyll locally.
* | Merge pull request #11230 from keszybz/version-string-altYu Watanabe2019-01-031-0/+18
|\ \ | |/ |/| Generate version string from git describe (alternative approach)
| * meson: use /bin/bash for scriptZbigniew Jędrzejewski-Szmek2018-12-211-1/+1
| | | | | | | | | | It seems -o pipefail does not work on Ubunut. /bin/sh is most likely resolved to dash.
| * meson: allow setting the version string during configurationZbigniew Jędrzejewski-Szmek2018-12-211-1/+7
| | | | | | | | | | | | This will be useful when building distro packages, because we can set the version string to the rpm/dpkg/whatever version string, and getter reports from end users.
| * meson-vcs-tag: add work-around for git bugZbigniew Jędrzejewski-Szmek2018-12-211-2/+5
| |
| * meson: generate version tag from gitZbigniew Jędrzejewski-Szmek2018-12-211-0/+9
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | $ build/systemctl --version systemd 239-3555-g6178cbb5b5 +PAM +AUDIT +SELINUX +IMA -APPARMOR +SMACK +SYSVINIT +UTMP +LIBCRYPTSETUP +GCRYPT +GNUTLS +ACL +XZ +LZ4 +SECCOMP +BLKID +ELFUTILS +KMOD -IDN2 +IDN +PCRE2 default-hierarchy=hybrid $ git tag v240 -m 'v240' $ ninja -C build ninja: Entering directory `build' [76/76] Linking target fuzz-unit-file. $ build/systemctl --version systemd 240 +PAM +AUDIT +SELINUX +IMA -APPARMOR +SMACK +SYSVINIT +UTMP +LIBCRYPTSETUP +GCRYPT +GNUTLS +ACL +XZ +LZ4 +SECCOMP +BLKID +ELFUTILS +KMOD -IDN2 +IDN +PCRE2 default-hierarchy=hybrid This is very useful during development, because a precise version string is embedded in the build product and displayed during boot, so we don't have to guess answers for questions like "did I just boot the latest version or the one from before?". This change creates an overhead for "noop" builds. On my laptop, 'ninja -C build' that does nothing goes from 0.1 to 0.5 s. It would be nice to avoid this, but I think that <1 s is still acceptable. Fixes #7183. PACKAGE_VERSION is renamed to GIT_VERSION, to make it obvious that this is the more dynamically changing version string. Why save to a file? It would be easy to generate the version tag using run_command(), but we want to go through a file so that stuff gets rebuilt when this file changes. If we just defined an variable in meson, ninja wouldn't know it needs to rebuild things.
* | meson: check whether C.UTF-8 exists or not and use it if existsYu Watanabe2019-01-011-0/+12
|/ | | | If C.UTF-8 does not exist, then fallback to en_US.UTF-8 or C.
* tree-wide: drop header for emacs from python scriptsYu Watanabe2018-12-096-8/+2
|
* tools: add one more SPDX license headerYu Watanabe2018-12-091-1/+3
|
* tools: drop unused variableYu Watanabe2018-12-091-1/+0
|
* docs: work around GitHub pages weirdnessLennart Poettering2018-11-291-1/+17
| | | | Fixes: #10546
* Merge pull request #10970 from yuwata/from-name-return-negative-errnoYu Watanabe2018-11-281-0/+22
|\ | | | | util: make *_from_name() returns negative errno on error
| * tools: move generate-gperfs.py to tools/Yu Watanabe2018-11-281-0/+22
| |
* | travis: make sure that *.perf and directives.* files are in syncEvgeny Vereshchagin2018-11-281-0/+21
|/ | | | | | New features are constantly added to networkd. Apparently, not everybody knows that the "directives" files should be updated too to make the fuzzers aware of them.
* 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