Commit Graph

203 Commits

Author SHA1 Message Date
Gerwin Klein e8f9dab83c misc/scripts: remove Darwin cpp wrapper
This wrapper around Apple llvm-gcc has been obsolete and unused for a
few years now. Remove to avoid confusion.

Signed-off-by: Gerwin Klein <gerwin.klein@proofcraft.systems>
2024-01-22 09:37:06 +00:00
Rafal Kolanski 286278d9e8 misc: goto-error jEdit macro: update for 2023
Signed-off-by: Rafal Kolanski <rafal.kolanski@proofcraft.systems>
2023-10-06 14:29:15 +11:00
Gerwin Klein 9b0fede338 misc: repo check for sorry/fixme count
The scripts have to be run inside the l4v repo to work properly.

Signed-off-by: Gerwin Klein <gerwin.klein@proofcraft.systems>
2022-05-30 13:54:55 +10:00
Gerwin Klein aa391ec820 misc: add script to count FIXMEs with tag
Signed-off-by: Gerwin Klein <gerwin.klein@proofcraft.systems>
2022-05-30 13:54:55 +10:00
Gerwin Klein a80bdfd981 sorry-count: automatically start in top-level dir
This makes the script a little more robust wrt to where it is invoked
from.

Signed-off-by: Gerwin Klein <gerwin.klein@proofcraft.systems>
2022-05-30 13:54:55 +10:00
Gerwin Klein ee1a9944ac misc: import sorry-count.sh from ci-actions
This scripts counts sorries per major directory in l4v. It used to live
in the ci-actions repository, but is occasionally useful to run
manually.

Signed-off-by: Gerwin Klein <gerwin.klein@proofcraft.systems>
2022-05-30 13:54:55 +10:00
Gerwin Klein 2a1fc75e6f regression: tool for comparing session times
This adds a small script that parses two run_tests logs for session
times and compares them.

Signed-off-by: Gerwin Klein <gerwin.klein@proofcraft.systems>
2022-04-13 13:35:24 +10:00
Gerwin Klein 28bc26c925 isabelle-2021: HOL-Word now in HOL-Library
Signed-off-by: Gerwin Klein <gerwin.klein@data61.csiro.au>
2021-09-30 16:53:17 +10:00
Gerwin Klein 66a2dc621a testboardpush: fix URL processing
Had missed the `:` suffix in the git URL, so the ssh URL test would
never succeed.

Signed-off-by: Gerwin Klein <gerwin.klein@proofcraft.systems>
2021-09-28 11:39:31 +10:00
Gerwin Klein ce302e0c65 testboard: alwaus use https URLs
The AWS test runner does not have a GitHub ssh key, so can only
access repositories via https.

Signed-off-by: Gerwin Klein <gerwin.klein@proofcraft.systems>
2021-09-22 15:31:46 +10:00
Gerwin Klein 4b6d390ecd trivial: misc/bump/README update
Signed-off-by: Gerwin Klein <gerwin.klein@proofcraft.systems>
2021-08-16 17:06:52 +10:00
Gerwin Klein 34eaf81367 testboard: print GitHub commit URL
Useful for copy/paste into PR comments to link to the testboard
results, or just to see them manually.

Signed-off-by: Gerwin Klein <gerwin.klein@proofcraft.systems>
2021-08-16 10:35:11 +10:00
Gerwin Klein 4cf76886f4 testboard: add dry-run option
Mostly for testing, to inspect what manifest is being constructed
without triggering tests.

Signed-off-by: Gerwin Klein <gerwin.klein@proofcraft.systems>
2021-08-16 10:35:11 +10:00
Gerwin Klein 494ea6af8d testboard: less noise standard output
Use '> ' instead of '[log] ', since this is not a log file but
usually read interactively.

Signed-off-by: Gerwin Klein <gerwin.klein@proofcraft.systems>
2021-08-16 10:35:11 +10:00
Gerwin Klein afdcbf13ee testboard: use https URLs
The test runner does not have ssh access to GitHub, so can't use
ssh:// URLs. This means the tested revisions need to be public, but
since this is meant for foundation use, that should be fine.

(The testboard itself is public anway)

Signed-off-by: Gerwin Klein <gerwin.klein@proofcraft.systems>
2021-08-16 10:35:11 +10:00
Gerwin Klein 115b12f1e2 run_tests: flush output
On GitHub, the output of external processes such as isabelle overtake
the stdout/stderr output of the test driver. Flushing stdout/stderr
in the right spots avoids that.

Signed-off-by: Gerwin Klein <gerwin.klein@proofcraft.systems>
2021-07-15 13:53:14 +10:00
Gerwin Klein 0ac43566d7 run_tests.py: use colour on github
Signed-off-by: Gerwin Klein <gerwin.klein@proofcraft.systems>
2021-07-15 13:53:14 +10:00
Gerwin Klein 92cdf47946 runtests.py: nicer logs on GitHub
Add a folding group for verbose log output if running in a GitHub
context. GITHUB_REPOSITORY will be set for all GitHub contexts we're
interested in.

Signed-off-by: Gerwin Klein <gerwin.klein@proofcraft.systems>
2021-07-13 21:28:21 +10:00
Mitchell Buckley ca9b20e65b misc: Add search-replace.sh and README.md
search-replace.sh is a very simple script which takes a list of text
replacements and applies those replacements in all files in the current
directory. The README file contains more detailed information.

Signed-off-by: Mitchell Buckley <mitchell.alan.buckley@gmail.com>
2021-06-21 10:30:04 +10:00
Gerwin Klein 208348ffad
`bump` script for `verification-manifest` (#260)
Use this to update revisions in `devel.xml` of `verification-manifest`
at https://github.com/seL4/verification-manifest

Signed-off-by: Gerwin Klein <kleing@unsw.edu.au>
2021-03-30 19:55:02 +11:00
Gerwin Klein 809e31487e testboard: clarify how results are reported
Signed-off-by: Gerwin Klein <kleing@unsw.edu.au>
2021-03-18 15:28:29 +11:00
Gerwin Klein 3446a92087 testboardpush script for github testboard
Signed-off-by: Gerwin Klein <kleing@unsw.edu.au>
2021-03-18 15:28:29 +11:00
Gerwin Klein dbc735c81d
readme/docs: update comments to Isabelle2020
Signed-off-by: Gerwin Klein <gerwin.klein@data61.csiro.au>
2020-10-27 16:55:33 +10:00
Gerwin Klein f15fbf1e4b gen_isabelle_root: add option for session dirs
Signed-off-by: Gerwin Klein <gerwin.klein@data61.csiro.au>
2020-10-27 15:52:31 +10:00
Matthew Brecknell 9cf8de9b95 regression: use `python3` for tests-xml-correct
PEP 394 expects that Python 3 installations provide a `python3` command,
but does not require a `python` command. Some distributions (including
Debian) are no longer providing a `python` command, but do provide
`python3`.

In this change, the `python3` interpreter is invoked via the existing
`#!` line in the `testspec.py` script.

Signed-off-by: Matthew Brecknell <Matthew.Brecknell@data61.csiro.au>
2020-10-21 11:57:30 +11:00
Gerwin Klein 04b7a4185a trivial: fix stray indent
Signed-off-by: Gerwin Klein <gerwin.klein@data61.csiro.au>
2020-07-23 12:04:19 +10:00
Gerwin Klein 2398278726 misc/stats: properly report sorry balance+rate
Signed-off-by: Gerwin Klein <gerwin.klein@data61.csiro.au>
2020-06-29 15:03:17 +08:00
Gerwin Klein a27a1da45a misc: script for tracking sorry count stats
Signed-off-by: Gerwin Klein <gerwin.klein@data61.csiro.au>
2020-06-29 12:26:57 +08:00
Gerwin Klein b7525f8d43 misc: make memusage.py not crash on MacOS for newer psutil versions
Signed-off-by: Gerwin Klein <gerwin.klein@data61.csiro.au>
2020-05-12 16:58:46 +08:00
Amirreza Zarrabi 3bb212bb75 run_tests.py: fix for python3
The decode method is only valid for bytes in python3

Signed-off-by: Amirreza Zarrabi <amrzar@gmail.com>
2020-04-21 15:53:44 +10:00
Gerwin Klein 092b1207f7 run astyle on all C files in the repository
Leaves parse tests and generated files unchanged, and provides a style
filter for these.

Signed-off-by: Gerwin Klein <gerwin.klein@data61.csiro.au>
2020-04-19 13:50:17 +08:00
Matthew Fernandez 18c9f361ab misc: support marginal comments in Vim syntax
Signed-off-by: Gerwin Klein <gerwin.klein@data61.csiro.au>
2020-04-14 13:16:49 +08:00
Matthew Brecknell cf48906b26 regression: force use of python3
Python 2 has passed its sunset date, and many distributions are
withdrawing support for Python 2.

PEP 394 recommends distributions always install versioned interpreter
commands (e.g. `python3`), but does not make a recommendation about
whether or not an unversioned command (`python`) should exist, or what
version it should run.

It therefore seems advisable to explicitly run scripts using the
`python3` command, for scripts that are compatible with Python 3.

Here, we do this for Python scripts used by `run_tests`. For this to
work, some scripts have been updated in ways that will break Python 2
compatibility. But for some other scripts which were already compatible
with both Python 2 and 3, we have not yet removed Python 2
compatibility. There are also miscellaneous scripts that are not used by
`run_tests`, and these have not yet been updated to Python 3.

Signed-off-by: Matthew Brecknell <Matthew.Brecknell@data61.csiro.au>
2020-04-01 14:31:36 +11:00
Gerwin Klein 75acf19dcd style: pep8 style for python files 2020-03-25 22:42:27 +11:00
Gerwin Klein c68915b92b license: provide documentation under CC-BY-SA-4.0
Datat61 provides all docs under CC-BY-SA-4.0.
2020-03-16 14:19:15 +08:00
Gerwin Klein 86a941e7e7 spdx: review missing copyright & license info
Some files were missing machine-readable copyright info, others were tagged
incorrectly.
2020-03-16 14:19:15 +08:00
Gerwin Klein a424d55e3e licenses: convert license tags to SPDX 2020-03-13 14:38:24 +08:00
Japheth Lim 992cc15725 misc: update settings file for Isabelle2019
Changes:
- Isabelle2017 compat for output heaps is now removed.
- We no longer select x86_64 as the ML_PLATFORM; the new default
  x86_64_32 platform is generally superior.
- We still select ML_PLATFORM for Isabelle2018 compat.
2019-06-13 16:22:33 +10:00
Edward Pierzchalski 3dbe9fb100 misc: Use TS settings file.
For internal use, we want to configure Isabelle to use our custom
multiple-heap settings.
2019-04-24 14:45:58 +10:00
Japheth Lim 9fa4dece6b run_tests: add --dot option to print test dependency graph 2018-09-27 15:03:17 +10:00
Japheth Lim 1bb071e703 misc: add new minimal thydeps script for Isabelle2018 2018-09-06 20:34:59 +10:00
Japheth Lim b61e91921c misc: retire broken thydeps script 2018-09-06 20:34:59 +10:00
Gerwin Klein 23147cffc8 jedit: go to end of file if there is no error
(idea by Dominique Unruh)
2018-09-05 16:00:08 +10:00
Gerwin Klein b74b6f13c4 Isabelle2018: simplify l4v isabelle settings; guard ML_HOME access
ML_HOME is not always set already when this script is sourced (e.g. when
the polyml component is somehow faulty).

Isabelle heap output settings are now part of the TS isabelle patch queue;
explicit override is still possible as before.
2018-08-20 09:06:37 +10:00
Gerwin Klein b213aa9ba0 Isabelle2018: CParser 2018-08-20 09:06:36 +10:00
Gerwin Klein c1a0f3be1c thydeps: retire theory dependency check
Isabelle2018 will perform these checks now automatically when loading ROOT
files, and the thydeps tool does not understand sessions-qualified imports.
2018-08-20 09:05:52 +10:00
Japheth Lim a837d38012 regression: better messages for nonexistent tests 2018-06-15 11:23:57 +10:00
Japheth Lim a70475ac99 regression: support using --remove with test selection; refactoring 2018-06-14 20:42:30 +10:00
Japheth Lim 06027b6841 regression: clarify behaviour of --exclude vs. --remove 2018-06-13 17:28:35 +10:00
Japheth Lim 3ae4d6577d regression: add --scale-timeouts and --no-timeouts options
These are being added to support builds that turn on extra debugging
or measurement options in Isabelle, which slow the builds down.
Might also be useful for running tests on very slow machines.
2018-06-01 15:19:37 +10:00