Debian Codegraph @

tests/ts/ipcs/headers

raw symbols SCIP
1 #!/bin/bash
2
3 #
4 # Copyright (C) 2007 Karel Zak <[email protected]>
5 #
6 # This file is part of util--limitsinux.
7 #
8 # This file is free software; you can redistribute it and/or modify
9 # it under the terms of the GNU General Public License as published by
10 # the Free Software Foundation; either version 2 of the License, or
11 # (at your option) any later version.
12 #
13 # This file is distributed in the hope that it will be useful,
14 # but WITHOUT ANY WARRANTY; without even the implied warranty of
15 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16 # GNU General Public License for more details.
17 #
18 TS_TOPDIR="${0%/*}/../.."
19 TS_DESC="headers"
20
21 . "$TS_TOPDIR"/functions.sh
22 ts_init "$*"
23
24 ts_check_test_command "$TS_CMD_IPCS"
25
26 ts_init_subtest "shm-headers"
27 $TS_CMD_IPCS --shmems --time | grep -A1 "^---" >> $TS_OUTPUT 2>> $TS_ERRLOG
28 $TS_CMD_IPCS --shmems --pid | grep -A1 "^---" >> $TS_OUTPUT 2>> $TS_ERRLOG
29 $TS_CMD_IPCS --shmems --creator | grep -A1 "^---" >> $TS_OUTPUT 2>> $TS_ERRLOG
30 $TS_CMD_IPCS --shmems --limits | grep "^---" >> $TS_OUTPUT 2>> $TS_ERRLOG
31 $TS_CMD_IPCS --shmems --summary | grep "^---" >> $TS_OUTPUT 2>> $TS_ERRLOG
32 ts_finalize_subtest
33
34 ts_init_subtest "mesg-headers"
35 $TS_CMD_IPCS --queues --time | grep -A1 "^---" >> $TS_OUTPUT 2>> $TS_ERRLOG
36 $TS_CMD_IPCS --queues --pid | grep -A1 "^---" >> $TS_OUTPUT 2>> $TS_ERRLOG
37 $TS_CMD_IPCS --queues --creator | grep -A1 "^---" >> $TS_OUTPUT 2>> $TS_ERRLOG
38 $TS_CMD_IPCS --queues --limits | grep "^---" >> $TS_OUTPUT 2>> $TS_ERRLOG
39 $TS_CMD_IPCS --queues --summary | grep "^---" >> $TS_OUTPUT 2>> $TS_ERRLOG
40 ts_finalize_subtest
41
42 ts_init_subtest "sem-headers"
43 $TS_CMD_IPCS --semaphores --time | grep -A1 "^---" >> $TS_OUTPUT 2>> $TS_ERRLOG
44 $TS_CMD_IPCS --semaphores --pid | grep -A1 "^---" >> $TS_OUTPUT 2>> $TS_ERRLOG
45 $TS_CMD_IPCS --semaphores --creator | grep -A1 "^---" >> $TS_OUTPUT 2>> $TS_ERRLOG
46 $TS_CMD_IPCS --semaphores --limits | grep "^---" >> $TS_OUTPUT 2>> $TS_ERRLOG
47 $TS_CMD_IPCS --semaphores --summary | grep "^---" >> $TS_OUTPUT 2>> $TS_ERRLOG
48 ts_finalize_subtest
49
50 ts_init_subtest "all-headers"
51 $TS_CMD_IPCS --all | grep -A1 "^---" >> $TS_OUTPUT 2>> $TS_ERRLOG
52
53 $TS_CMD_IPCS --all --time | grep -A1 "^---" >> $TS_OUTPUT 2>> $TS_ERRLOG
54 $TS_CMD_IPCS --all --pid | grep -A1 "^---" >> $TS_OUTPUT 2>> $TS_ERRLOG
55 $TS_CMD_IPCS --all --creator | grep -A1 "^---" >> $TS_OUTPUT 2>> $TS_ERRLOG
56 $TS_CMD_IPCS --all --limits | grep "^---" >> $TS_OUTPUT 2>> $TS_ERRLOG
57 $TS_CMD_IPCS --all --summary | grep "^---" >> $TS_OUTPUT 2>> $TS_ERRLOG
58 ts_finalize_subtest
59
60 ts_finalize