Lines Matching +full:mach +full:- +full:o
3 [ -f testing.sh ] && . testing.sh
12 ln -s "$FILES"/java.class symlink
14 ln -s "$FILES"/java.klass dangler
22 rm -f empty
24 testing "script" "file input | grep -o ' script'" " script\n" "#!/bin/bash\n" ""
25 testing "script with spaces" "file input | grep -o ' script'" " script\n" \
27 testing "env script" "file input | tr P p | egrep -o '(python|script)' | sort" \
30 testing "utf-8" \
31 "file \"$FILES\"/utf8/japan.txt | egrep -o 'UTF-8 text' | LANG=c sort" \
32 "UTF-8 text\n" "" ""
36 "file \"$FILES\"/java.class | egrep -o '(Java class|version 53.0)'"\
39 …0700000003000040000000d9300000000e0100000c8000000200014000000098500000000e" | xxd -r -p > universal
40 testcmd "mach-o universal" \
41 "universal | egrep -o '(Mach-O|universal|x86_64|arm64)' | sort -u" \
42 "Mach-O\narm64\nuniversal\nx86_64\n" "" ""
46 testing "gzip data" "file \"$FILES\"/tar/tar.tgz | grep -o 'gzip compressed data'" \
50 test_line "7z file" "tar/tar.7z" "7-zip archive data, version 0.4\n" "" ""
52 "file $FILES/zip/example.zip | egrep -o '(Zip archive data|at least v1.0 to extract)'" \
55 echo R0lGODlhIAAgAMZHAAAAABYWFiYmJioqKi4uLjIy | base64 -d > gif
57 rm -f gif
61 echo "6465780a3033350038ca8f6ce910f94e" | xxd -r -p > android.dex
62 testing "Android .dex" "file android.dex | egrep -o '(dex file|version 035)'" \
64 rm -f android.dex
66 # These actually test a lot of the ELF code: 32-/64-bit, arm/arm64, PT_INTERP,
68 toyonly test_line "Android NDK full ELF note" "elf/ndk-elf-note-full" \
69 …"ELF shared object, 64-bit LSB arm64, dynamic (/system/bin/linker64), for Android 24, built by NDK…
70 toyonly test_line "Android NDK short ELF note" "elf/ndk-elf-note-short" \
71 …"ELF shared object, 32-bit LSB arm, EABI5, soft float, dynamic (/system/bin/linker), for Android 2…
73 "ELF executable (fdpic), 32-bit MSB sh, static, stripped\n" "" ""
74 echo -ne '\x7fELF\00000000000000000000000000000000000000000000' > bad-bits
75 testing "ELF bad bits" "file bad-bits | egrep -o '(ELF|unknown)'" \
77 rm -f bad-bits
81 testing "symlink -h" "file -h symlink" "symlink: symbolic link to $LINK\n" "" ""
82 testing "symlink -L" \
83 "file -L symlink | egrep -o '(symlink:|Java class|version 53.0)'" \
86 # Some host versions say "-" some "/dev/stdin"...
87 testing "- pipe" "cat $FILES/java.class | file - | egrep -o '(Java class|version 53.0)'" \
89 testing "- redirect" \
90 "file - <$FILES/java.class | egrep -o '(Java class|version 53.0)'" \
96 testing "- </dev/zero" "file - </dev/zero | grep -ow data" "data\n" "" ""
98 testcmd 'ar' 'input | grep -o " ar archive"' ' ar archive\n' \
99 "$(echo -e '!<arch>\nhello/ 0 0 0 644 6 `\nworld')\n" ""
109 # X x X x-bit/{non-}interlaced