t_grep.sh (272458) | t_grep.sh (292581) |
---|---|
1# $NetBSD: t_grep.sh,v 1.2 2013/05/17 15:39:17 christos Exp $ 2# 3# Copyright (c) 2008, 2009 The NetBSD Foundation, Inc. 4# All rights reserved. 5# 6# Redistribution and use in source and binary forms, with or without 7# modification, are permitted provided that the following conditions 8# are met: --- 29 unchanged lines hidden (view full) --- 38 39atf_test_case binary 40binary_head() 41{ 42 atf_set "descr" "Checks handling of binary files" 43} 44binary_body() 45{ | 1# $NetBSD: t_grep.sh,v 1.2 2013/05/17 15:39:17 christos Exp $ 2# 3# Copyright (c) 2008, 2009 The NetBSD Foundation, Inc. 4# All rights reserved. 5# 6# Redistribution and use in source and binary forms, with or without 7# modification, are permitted provided that the following conditions 8# are met: --- 29 unchanged lines hidden (view full) --- 38 39atf_test_case binary 40binary_head() 41{ 42 atf_set "descr" "Checks handling of binary files" 43} 44binary_body() 45{ |
46 # Begin FreeBSD 47 # 48 # Generate stable output instead of depending on uname to match the 49 # branded OS name of /bin/sh 50 if true; then 51 dd if=/dev/zero count=1 of=test.file 52 echo -n "foobar" >> test.file 53 atf_check -o file:"$(atf_get_srcdir)/d_binary.out" grep foobar test.file 54 else 55 # End FreeBSD |
|
46 atf_check -o file:"$(atf_get_srcdir)/d_binary.out" grep $(uname) /bin/sh | 56 atf_check -o file:"$(atf_get_srcdir)/d_binary.out" grep $(uname) /bin/sh |
57 # Begin FreeBSD 58 fi 59 # End FreeBSD |
|
47} 48 49atf_test_case recurse 50recurse_head() 51{ 52 atf_set "descr" "Checks recursive searching" 53} 54recurse_body() --- 192 unchanged lines hidden --- | 60} 61 62atf_test_case recurse 63recurse_head() 64{ 65 atf_set "descr" "Checks recursive searching" 66} 67recurse_body() --- 192 unchanged lines hidden --- |