File: program-test

package info (click to toggle)
bacula 15.0.3-5
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 29,780 kB
  • sloc: ansic: 194,276; cpp: 41,177; sh: 28,258; python: 6,669; makefile: 5,275; perl: 3,666; sql: 1,371; java: 345; xml: 196; awk: 51; sed: 25
file content (62 lines) | stat: -rwxr-xr-x 1,202 bytes parent folder | download | duplicates (5)
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
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
#!/bin/bash

# Copy STDOUT to FD3. This prevents the XTRACE output to be mixed
# with the normal STDOUT used for piping.
exec 3>&1

# Redirect XTRACE output to the new FD3
BASH_XTRACEFD="3"

# Activate Tracing and exit-on-error
set -ex

echo "----- start testing -----"
echo "USER: ${USER}"

DBTYPE="${0##*-}"

echo "---- Preparing test files ----"

DATAFILE="${AUTOPKGTEST_TMP}/datafile"

cat > "${DATAFILE}" <<End-of-message
-------------------------------------
This is line 1 of the message.
This is line 2 of the message.
This is line 3 of the message.
This is line 4 of the message.
This is the last line of the message.
-------------------------------------
End-of-message

echo
echo "---- Testing /usr/sbin/bregex ----"

echo -en "line . of the message\r" | /usr/sbin/bregex -f "${DATAFILE}"

echo
echo "---- Testing /usr/sbin/bwild ----"

echo -en "*line ? of the message.\r" | /usr/sbin/bwild -f "${DATAFILE}"

echo
echo "---- Testing /usr/sbin/bbconsjson ----"

/usr/sbin/bbconsjson

echo
echo "---- Testing /usr/sbin/bdirjson ----"

/usr/sbin/bdirjson

echo
echo "---- Testing /usr/sbin/bfdjson ----"

/usr/sbin/bfdjson

echo
echo "---- Testing /usr/sbin/bsdjson ----"

/usr/sbin/bsdjson