source: drbl_ui/backup/test_busybox/busybox-1.7.2/testsuite/awk.tests @ 211

Last change on this file since 211 was 20, checked in by chris, 17 years ago
File size: 818 bytes
Line 
1#!/bin/sh
2
3# awk tests.
4# Copyright 2007 by Denys Vlasenko <vda.linux@googlemail.com>
5# Licensed under GPL v2, see file LICENSE for details.
6
7. testing.sh
8
9# testing "description" "arguments" "result" "infile" "stdin"
10
11testing "awk -F case 0" "awk -F '[#]' '{ print NF }'" ""    "" ""
12testing "awk -F case 1" "awk -F '[#]' '{ print NF }'" "0\n" "" "\n"
13testing "awk -F case 2" "awk -F '[#]' '{ print NF }'" "2\n" "" "#\n"
14testing "awk -F case 3" "awk -F '[#]' '{ print NF }'" "3\n" "" "#abc#\n"
15testing "awk -F case 4" "awk -F '[#]' '{ print NF }'" "3\n" "" "#abc#zz\n"
16testing "awk -F case 5" "awk -F '[#]' '{ print NF }'" "4\n" "" "#abc##zz\n"
17testing "awk -F case 6" "awk -F '[#]' '{ print NF }'" "4\n" "" "z#abc##zz\n"
18testing "awk -F case 7" "awk -F '[#]' '{ print NF }'" "5\n" "" "z##abc##zz\n"
19
20exit $FAILCOUNT
Note: See TracBrowser for help on using the repository browser.