forked from lsof-org/lsof
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcase-13-classic.bash
More file actions
executable file
·45 lines (37 loc) · 882 Bytes
/
case-13-classic.bash
File metadata and controls
executable file
·45 lines (37 loc) · 882 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
name=$(basename $0 .bash)
lsof=$1
report=$2
base=$(pwd)
(
f=/tmp/${name}-$$
cd tests
make > $f 2>&1
if ! grep -q "LTbasic \.\.\. OK" $f; then
echo '"LTbasic ... OK" is not found in the output' >> $report
s=1
fi
if ! grep -q "LTnlink \.\.\. OK" $f; then
echo '"LTnlink ... OK" is not found in the output' >> $report
s=1
fi
if ! grep -q "LTsock \.\.\. OK" $f; then
echo '"LTsock ... OK" is not found in the output' >> $report
s=1
fi
if ! grep -q "LTszoff \.\.\. OK" $f; then
echo '"LTszoff ... OK" is not found in the output' >> $report
s=1
fi
if ! grep -q "LTunix \.\.\. OK" $f; then
echo '"LTunix ... OK" is not found in the output' >> $report
s=1
fi
{
echo
echo "output"
echo .............................................................................
cat $f
} >> $report
rm $f
exit $s
)