/external/toybox/tests/ |
H A D | head.test | 16 baz" > file1 17 testing "head, multiple files" "head -n 2 input file1" "==> input <==\none\ntwo\n\n==> file1 <==\nfoo\nbar\n" "one\ntwo\nthree\n" "" 18 rm file1
|
H A D | cat.test | 7 echo "one" > file1 11 testing "cat file1 file2" "cat file1 file2" "one\ntwo\n" "" "" 12 testing "cat - file" "cat - file1" "zero\none\n" "" "zero\n" 13 testing "cat file -" "cat file1 -" "one\nzero\n" "" "zero\n" 15 testing "cat file1 notfound file2" \ 16 "cat file1 notfound file2 2>stderr && echo ok ; cat stderr; rm stderr" \ 20 testing "cat file1" \ 21 'cat "$FILE" > file1 && cmp "$FILE" file1 [all...] |
H A D | rev.test | 7 echo -e "one" > file1 11 testing "rev file1 file2" "rev file1 file2" "eno\nowt\n" "" "" 12 testing "rev - file" "rev - file1" "orez\neno\n" "" "zero\n" 13 testing "rev file -" "rev file1 -" "eno\norez\n" "" "zero\n" 16 testing "rev file1 notfound file2" \ 17 "rev file1 notfound file2 2>stderr && echo ok ; cat stderr; rm stderr" \ 25 rm file1 file
|
H A D | tac.test | 8 echo -e "one-A\none-B" > file1 12 testing "tac file1 file2" "tac file1 file2" "one-B\none-A\ntwo-B\ntwo-A\n" "" "" 13 testing "tac - file" "tac - file1" "zero-B\nzero-A\none-B\none-A\n" "" "zero-A\nzero-B\n" 14 testing "tac file -" "tac file1 -" "one-B\none-A\nzero-B\nzero-A\n" "" "zero-A\nzero-B\n" 16 testing "tac file1 notfound file2" \ 17 "tac file1 notfound file2 2>stderr && echo ok ; tac stderr; rm stderr" \ 29 rm file1 file
|
H A D | wc.test | 7 cat >file1 <<EOF 17 testing "wc -c" "wc -c file1" "26 file1\n" "" "" 18 testing "wc -l" "wc -l file1" "4 file1\n" "" "" 19 testing "wc -w" "wc -w file1" "5 file1\n" "" "" 20 testing "wc format" "wc file1" "4 5 26 file1\n" "" "" 21 testing "wc multiple files" "wc input - file1" \ [all...] |
H A D | link.test | 14 echo file1 > file 23 echo file1 > file
|
H A D | sha1sum.test | 29 echo -n "abc" > file1 42 "sha1sum file1" \ 43 "a9993e364706816aba3e25717850c26c9cd0d89d file1\n" \ 46 testing "sha1sum file1 file2" \ 47 "sha1sum file1 file2" \ 48 "a9993e364706816aba3e25717850c26c9cd0d89d file1\n589c22335a381f122d129225f5c0ba3056ed5811 file2\n" \ 51 testing "sha1sum file1 file2 -" \ 52 "sha1sum file1 file2 -" \ 53 "a9993e364706816aba3e25717850c26c9cd0d89d file1\n589c22335a381f122d129225f5c0ba3056ed5811 file2\na9993e364706816aba3e25717850c26c9cd0d89d -\n" \ 56 rm -f file1 file [all...] |
H A D | xxd.test | 7 echo "this is some text" > file1 12 testing "xxd file1" "xxd file1" \ 15 testing "xxd file1 -l" "xxd -l 2 file1" \ 23 testing "xxd -c 8 -g 4 file1" "xxd -c 8 -g 4 file1" \ 25 testing "xxd -c 8 -g 3 file1" "xxd -c 8 -g 3 file1" \ 28 testing "xxd -p" "xxd -p file1" "746869732069732073 [all...] |
H A D | mv.test | 11 testing "Move old_file to new_file" "mv file file1 && [ ! -e file -a -f file1 ] && 27 touch file1 file2 dir1/file3 28 ln -s file1 link1 29 testing "Move multiple files/dir to a dir" "mv file1 file2 link1 dir1 dir2 && 30 [ ! -e file1 -a ! -e file2 -a ! -e link1 -a ! -e dir1 ] && 31 [ -f dir2/file1 -a -f dir2/file2 -a -L dir2/link1 -a -d dir2/dir1 ] && 32 [ -f dir2/dir1/file3 ] && readlink dir2/link1" "file1\n" "" "" 35 touch file1 36 testing "Move a empty file to new_file" "mv file1 file [all...] |
H A D | bzcat.test | 17 echo "hello" > file1 20 tar -cjf file1.tar.bz2 file1 25 $bzcatExe file1.tar.bz2 file2.tar.bz2 file3.tar.bz2 > bzcatOut 26 testing "bzcat - decompresses multiple files" "bzcat file1.tar.bz2 file2.tar.bz2 file3.tar.bz2 > Tempfile && echo "yes" ; diff Tempfile bzcatOut && echo "yes"; rm -rf file* bzcatOut Tempfile " "yes\nyes\n" "" ""
|
H A D | xzcat.test | 17 echo "hello" > file1 20 tar -cJf file1.xz file1 25 $xzcatExe file1.xz file2.xz file3.xz > xzcatOut 26 testing "xzcat - decompresses multiple files" "xzcat file1.xz file2.xz file3.xz > Tempfile && echo "yes" ; diff Tempfile xzcatOut && echo "yes"; rm -rf file* xzcatOut Tempfile " "yes\nyes\n" "" ""
|
H A D | zcat.test | 17 echo "hello" > file1 20 tar -czf file1.gz file1 25 $zcatExe file1.gz file2.gz file3.gz > zcatOut 26 testing "zcat - decompresses multiple files" "zcat file1.gz file2.gz file3.gz > Tempfile && echo "yes" ; diff Tempfile zcatOut && echo "yes"; rm -rf file* zcatOut Tempfile " "yes\nyes\n" "" ""
|
H A D | ln.test | 11 echo file1 > file 20 [ file -ef hlink ] && cat hlink 2>/dev/null" "file1\n" "" "" 49 touch file1 file2 && mkdir dir 51 [ file1 -ef dir/file1 -a file2 -ef dir/file2 ] && echo 'yes'" "yes\n" "" "" 54 touch file1 file2 && mkdir dir 56 [ -L dir/file1 -a -L dir/file2 ] && readlink dir/file1 && 57 readlink dir/file2" "file1\nfile2\n" "" "" 60 echo file1 > fil [all...] |
H A D | tar.test | 36 touch dir/dir1/file1 dir/dir1/file2 dir/dir1/file3 dir/dir1/file4 37 testing "tar -t option" "tar -czf dir.tar.gz dir/; rm -rf dir; tar -tf dir.tar.gz | sort; rm -rf dir.tar.gz" "dir/\ndir/dir1/\ndir/dir1/file1\ndir/dir1/file2\ndir/dir1/file3\ndir/dir1/file4\n" "" "" 42 echo "This is testdata" > dir/dir1/file; echo "Dont exclude me" > dir/dir3/file1 ; 43 echo "Exclude me" > dir/dir3/file2 ; echo "YO" > dir/dir4/file1 ; echo "Hello" >dir/dir4/file2; echo "Dont" > dir/dir2/file1 45 testing "Creating tar with files excluded : -X" "tar -czf dir.tgz dir/ -X exclude_file ; rm -rf dir ; tar -tf dir.tgz | sort; rm -rf dir.tgz " "dir/\ndir/dir1/\ndir/dir1/file\ndir/dir2/\ndir/dir2/file1\ndir/dir3/\ndir/dir3/file1\n" "" "" 51 echo "Dont exclude me" > dir/dir3/file1 ; echo "Exclude me" > dir/dir3/file2 ; echo "YO" > dir/dir4/file1 ; echo "Hello" >dir/dir4/file2; echo "Dont" > dir/dir2/file1 [all...] |
H A D | rm.test | 23 touch file1.txt file2.txt 26 "rm -r file1.txt file2.txt dir1 dir2 2>/dev/null && 27 [ ! -e file1.txt -a ! -e file2.txt -a ! -d dir1 -a ! -d dir2 ] && echo 'yes'" \ 31 touch file1.txt file2.txt 34 "rm -rf file1.txt file2.txt file3.txt dir1 dir2 dir3 2>/dev/null && 35 [ ! -e file1.txt -a ! -e file2.txt -a ! -d dir1 -a ! -d dir2 ] && echo 'yes'" \ 41 touch dir1/file1.txt dir1/dir2/file2.txt dir1/dir2/dir3/file3.txt 43 [ -d dir1 -a -f dir1/file1.txt -a ! -d dir1/dir2 ] && echo 'yes'" \
|
H A D | ls.test | 13 echo "test file1" > lstest/file1.txt 15 echo "hidden file1" > lstest/.hfile1 21 testing "ls with wild char" "$IN && ls file*; $OUT" "file1.txt\nfile2.txt\n" "" "" 22 testing "ls with wild char - long listing" "$IN && ls -1 file*; $OUT" "file1.txt\nfile2.txt\n" "" "" 31 testing "ls with -m" "$IN && ls -m; $OUT" "dir1, dir2, file1.txt, file2.txt\n" "" "" 35 ln -s file1.txt lstest/slink 37 "file1.txt\n" "" "" 44 rm -rf lstest/* && mkdir -p lstest/dir1 && touch lstest/file1.txt 48 rm -rf lstest/* && touch lstest/file1 [all...] |
H A D | tail.test | 8 echo -ne "$BIGTEST" > file1 10 testing "tail file" "tail file1" \ 12 testing "tail -n in bounds" "tail -n 3 file1" "nine\nten\neleven\n" "" "" 13 testing "tail -n out of bounds" "tail -n 999 file1" "$BIGTEST" "" "" 14 testing "tail -n+ in bounds" "tail -n +3 file1" \ 16 testing "tail -n+ outof bounds" "tail -n +999 file1" "" "" "" 17 testing "tail -c in bounds" "tail -c 27 file1" \ 19 testing "tail -c out of bounds" "tail -c 999 file1" "$BIGTEST" "" "" 20 testing "tail -c+ in bounds" "tail -c +27 file1" \ 22 testing "tail -c+ out of bonds" "tail -c +999 file1" "" "" "" [all...] |
/external/libchrome/base/files/ |
H A D | file_util.cc | 56 std::ifstream file1(filename1.value().c_str(), 63 if (!file1.is_open() || !file2.is_open()) 69 file1.read(buffer1, BUFFER_SIZE); 72 if ((file1.eof() != file2.eof()) || 73 (file1.gcount() != file2.gcount()) || 74 (memcmp(buffer1, buffer2, static_cast<size_t>(file1.gcount())))) { 75 file1.close(); 79 } while (!file1.eof() || !file2.eof()); 81 file1.close(); 87 std::ifstream file1(filename [all...] |
/external/google-breakpad/src/client/linux/minidump_writer/ |
H A D | cpu_set_unittest.cc | 118 ScopedTestFile file1("9-19"); 119 ASSERT_TRUE(file1.IsOk()); 121 ASSERT_TRUE(set1.ParseSysFile(file1.GetFd())); 136 ScopedTestFile file1("9-19"); 137 ASSERT_TRUE(file1.IsOk()); 139 ASSERT_TRUE(set1.ParseSysFile(file1.GetFd())); 147 ScopedTestFile file1("0-19"); 148 ASSERT_TRUE(file1.IsOk()); 150 ASSERT_TRUE(set1.ParseSysFile(file1.GetFd()));
|
/external/mesa3d/src/glsl/tests/ |
H A D | compare_ir | 37 print 'Usage: compare_ir <file1> <file2>' 48 file1, path1 = tempfile.mkstemp(os.path.basename(sys.argv[1])) 51 os.write(file1, '{0}\n'.format(sexp_to_string(ir1))) 52 os.close(file1)
|
/external/valgrind/cachegrind/ |
H A D | cg_diff.in | 46 usage: cg_diff [options] <cachegrind-out-file1> <cachegrind-out-file2> 73 my ($file1, $file2) = (undef, undef); 92 } elsif (not defined($file1)) { 93 $file1 = $arg; 104 if (not defined $file1 or not defined $file2) { 108 return ($file1, $file2); 276 my ($file1, $file2) = process_cmd_line(); 277 ($cmd1, $events1, $CCs1, $summaryCC1) = read_input_file($file1); 308 print("desc: Files compared: $file1; $file2\n");
|
/external/icu/icu4c/source/tools/toolutil/ |
H A D | filetools.cpp | 36 static int32_t whichFileModTimeIsLater(const char *file1, const char *file2); 102 static int32_t whichFileModTimeIsLater(const char *file1, const char *file2) { argument 106 if (stat(file1, &stbuf1) == 0 && stat(file2, &stbuf2) == 0) { 121 fprintf(stderr, "Unable to get stats from file: %s or %s\n", file1, file2);
|
/external/sl4a/ScriptingLayer/src/com/googlecode/android_scripting/ |
H A D | ScriptStorageAdapter.java | 74 public int compare(File file1, File file2) { 75 if (file1.isDirectory() && !file2.isDirectory()) { 77 } else if (!file1.isDirectory() && file2.isDirectory()) { 80 return file1.compareTo(file2);
|
/external/libbrillo/brillo/http/ |
H A D | http_form_data_unittest.cc | 72 std::string file1{"text line1\ntext line2\n"}; 74 ASSERT_EQ(file1.size(), 76 base::WriteFile(filename1, file1.data(), file1.size()))); 85 EXPECT_TRUE(form_field.AddFileField("file1", 106 "Content-Disposition: form-data; name=\"file1\";" 147 std::string file1{"text line1\ntext line2\n"}; 149 ASSERT_EQ(file1.size(), 151 base::WriteFile(filename1, file1.data(), file1 [all...] |
/external/sonivox/arm-wt-22k/misc/ |
H A D | eas_host.c | 661 EAS_RESULT EAS_HWCloseFile (EAS_HW_DATA_HANDLE hwInstData, EAS_FILE_HANDLE file1) argument 667 if (file1->pFile == NULL) 671 if (file1->dup) 678 if ((file1 != file2) && (file2->pFile == file1->pFile)) 684 file1->pFile = NULL; 702 file1->pFile = NULL; 707 if (fclose(file1->pFile) != 0) 711 file1->pFile = NULL;
|