From cc08ad26fe371e0b0bdbc58343c1f33a8840d2a0 Mon Sep 17 00:00:00 2001 From: Denis Vlasenko Date: Sun, 3 Aug 2008 19:12:25 +0000 Subject: xargs: fix xargs -e; added test for that --- testsuite/xargs.tests | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100755 testsuite/xargs.tests (limited to 'testsuite') diff --git a/testsuite/xargs.tests b/testsuite/xargs.tests new file mode 100755 index 0000000..e041d59 --- /dev/null +++ b/testsuite/xargs.tests @@ -0,0 +1,19 @@ +#!/bin/sh +# Copyright 2008 by Denys Vlasenko +# Licensed under GPL v2, see file LICENSE for details. + +. testing.sh + +# testing "test name" "command" "expected result" "file input" "stdin" + +testing "xargs stops on underscore" \ + "xargs" \ + "a\n" \ + "" "a\n_\nb\n" + +testing "xargs -e without param" \ + "xargs -e" \ + "a _ b\n" \ + "" "a\n_\nb\n" + +exit $FAILCOUNT -- cgit v1.1