blob: 18f25e3f10555e618b539651a58fafbf5188823b [file] [log] [blame]
Denis Vlasenko50120da2008-06-05 08:27:26 +00001#!/bin/sh
2
3set -e
4
5. testing.sh
6
7# Need this in order to not execute shell builtin
8bb="busybox "
9
10# testing "test name" "command" "expected result" "file input" "stdin"
11
12testing "printf produce no further output 1" \
13 "${bb}printf '\c' foo" \
14 "" \
15 "" ""
16
17testing "printf produce no further output 2" \
18 "${bb}printf '%s\c' foo \$HOME" \
19 "foo" \
20 "" ""
21
22testing "printf repeatedly use pattern for each argv" \
23 "${bb}printf '%s\n' foo \$HOME" \
24 "foo\n$HOME\n" \
25 "" ""
26
27exit $FAILCOUNT