another xargs test

This commit is contained in:
Frans Kaashoek 2024-09-03 19:56:41 -04:00
parent 5ed6844af4
commit 6bd4e66b23

View File

@ -84,7 +84,7 @@ def test_find_recursive():
'./%s/%s/%s' % (dirs[0], dirs[1], needle),
'./%s/%s' % (dirs[2], needle))
@test(19, "xargs")
@test(10, "xargs")
def test_xargs():
r.run_qemu(shell_script([
'sh < xargstest.sh',
@ -93,6 +93,11 @@ def test_xargs():
matches = re.findall("hello", r.qemu.output)
assert_equal(len(matches), 3, "Number of appearances of 'hello'")
@test(9, "xargs, multi-line echo")
def test_xargs_multiline():
r.run_qemu(shell_script(['(echo 1 ; echo 2) | xargs echo']))
r.match('^1$', '^2$')
@test(1, "time")
def test_time():
check_time()