summaryrefslogtreecommitdiffstats
path: root/tests/ts/misc
diff options
context:
space:
mode:
authorSami Kerola2013-01-19 01:09:04 +0100
committerKarel Zak2013-01-25 10:09:36 +0100
commitb74fe86e1d7c1d73903fbd81267dbc8ef3d2956b (patch)
treed4a7c8c066c8483643da6f6180f403a3adc26d89 /tests/ts/misc
parenttests: add setsid(1) check (diff)
downloadkernel-qcow2-util-linux-b74fe86e1d7c1d73903fbd81267dbc8ef3d2956b.tar.gz
kernel-qcow2-util-linux-b74fe86e1d7c1d73903fbd81267dbc8ef3d2956b.tar.xz
kernel-qcow2-util-linux-b74fe86e1d7c1d73903fbd81267dbc8ef3d2956b.zip
tests: add setarch(8) check
Signed-off-by: Sami Kerola <kerolasa@iki.fi>
Diffstat (limited to 'tests/ts/misc')
-rwxr-xr-xtests/ts/misc/setarch23
1 files changed, 23 insertions, 0 deletions
diff --git a/tests/ts/misc/setarch b/tests/ts/misc/setarch
new file mode 100755
index 000000000..805055688
--- /dev/null
+++ b/tests/ts/misc/setarch
@@ -0,0 +1,23 @@
+#!/bin/bash
+
+# This file is part of util-linux.
+#
+# This file 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; either version 2 of the License, or
+# (at your option) any later version.
+#
+# This file is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+
+TS_TOPDIR="$(dirname $0)/../.."
+TS_DESC="setarch"
+
+. $TS_TOPDIR/functions.sh
+ts_init "$*"
+
+$TS_CMD_SETARCH $(uname -m) -vRFZLXBIST3 --uname-2.6 echo "success" >$TS_OUTPUT 2>&1
+
+ts_finalize