File: smoke

package info (click to toggle)
beef 1.2.0-2
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, forky, sid, trixie
  • size: 1,536 kB
  • sloc: sh: 4,174; ansic: 650; makefile: 63
file content (23 lines) | stat: -rwxr-xr-x 317 bytes parent folder | download | duplicates (6)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
#!/bin/sh

# Setup

echo "# Generating test program"
echo '+[--------->++<]>+.------.++.----.------.>++++++++++.' >smoke.bf

# Test

echo "# Running beef"
beef smoke.bf >beef.log 2>&1

echo "# Checking result"
test "$(cat beef.log)" = "smoke"
rc=$?

# Teardown

test "$rc" -eq 0 || {
    cat beef.log >&2
}

exit $rc