From e2472c7b1d061aef8bb05a4d7940fd8159c4a329 Mon Sep 17 00:00:00 2001 From: Stephane Desneux Date: Tue, 14 Jun 2016 11:51:43 +0200 Subject: add dung-3.4.25-m2, required by some JTA Functional.* tests collection of shell scripts Used in multiple tests: * Functional.arch_timer/arch_timer.sh * Functional.scifab/scifab.sh * Functional.cmt/cmt.sh * Functional.sdhi_0/sdhi_0.sh Change-Id: I268c426071890554518e8b4927620fe6df587c34 Signed-off-by: Stephane Desneux --- dung-3.4.25-m2/common/dmesg-quiet.sh | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) create mode 100755 dung-3.4.25-m2/common/dmesg-quiet.sh (limited to 'dung-3.4.25-m2/common/dmesg-quiet.sh') diff --git a/dung-3.4.25-m2/common/dmesg-quiet.sh b/dung-3.4.25-m2/common/dmesg-quiet.sh new file mode 100755 index 0000000..d0b6219 --- /dev/null +++ b/dung-3.4.25-m2/common/dmesg-quiet.sh @@ -0,0 +1,29 @@ +#!/bin/sh +# dmesg-quiet.sh +# +# Simple dmesg based feature test (quiet variant) +# +# Copyright (C) 2013 Horms Soltutions Ltd. +# +# Contact: Simon Horman +# +# This program is free software; you can redistribute it and/or modify +# it under the terms of the GNU General Public License as published by +# the Free Software Foundation; version 2 of the License. + +set -e +#set -x + +if [ $# -ne 1 ]; then + echo "usage: $(basename $0) PATTERN" >& 2 + exit 1 +fi + +PATTERN="$1" + +#echo "dmesg feature test for '$PATTERN'" + +if ! dmesg | grep "$PATTERN" > /dev/null; then + echo "error: not matched" >&2 + exit 1 +fi -- cgit 1.2.3-korg