Merge ~canonical-kernel-team/+git/rt-hints:krzk/tests into ~canonical-kernel-team/+git/rt-hints:main

Proposed by Krzysztof Kozlowski
Status: Merged
Merged at revision: 6cdc6a6d5ab99475bec81e9a458111fccdc4b2d1
Proposed branch: ~canonical-kernel-team/+git/rt-hints:krzk/tests
Merge into: ~canonical-kernel-team/+git/rt-hints:main
Diff against target: 42 lines (+24/-1)
2 files modified
README (+9/-1)
etc/pre-commit (+15/-0)
Reviewer Review Type Date Requested Status
Canonical Kernel Team Pending
Review via email: mp+405755@code.launchpad.net
To post a comment you must log in.

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1diff --git a/README b/README
2index 7d7b653..0c45357 100644
3--- a/README
4+++ b/README
5@@ -91,7 +91,15 @@ ubuntu_kernel_selftests:
6
7 Hints can be checked for basic correctness by running the parser:
8
9- ./compile-hints . /dev/null
10+ ./run-test.sh
11+
12+Please add it via pre-commit hoot:
13+
14+ ln -s ../../etc/pre-commit .git/hooks/
15+
16+You can compile hints manually with:
17+
18+ compile-hints . /dev/null
19
20 An empty output is a sign of goodness. If you want to see the resulting hint
21 dictionaries, substitute `/dev/null` with a valid directory name.
22diff --git a/etc/pre-commit b/etc/pre-commit
23new file mode 100755
24index 0000000..a11daf0
25--- /dev/null
26+++ b/etc/pre-commit
27@@ -0,0 +1,15 @@
28+#!/bin/sh
29+# SPDX-License-Identifier: GPL-2.0
30+# Copyright (C) 2021, Canonical Ltd.
31+#
32+# To enable this hook, link this file to into ".git/hooks/pre-commit".
33+# ln -s ../../etc/pre-commit .git/hooks/
34+
35+./run-test.sh 2> /dev/null
36+ret=$?
37+
38+if [ $ret -ne 0 ]; then
39+ echo "Tests failed, please run ./run-test.sh"
40+fi
41+
42+exit $ret

Subscribers

People subscribed via source and target branches

to all changes: