• Home
  • Raw
  • Download

Lines Matching +full:version +full:- +full:script

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 | 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\ntext\n" "" ""
36 "file \"$FILES\"/java.class | egrep -o '(Java class|version 53.0)'"\
39 …0700000003000040000000d9300000000e0100000c8000000200014000000098500000000e" | xxd -r -p > universal
40 testcmd "mach-o universal" "universal" \
41 "universal: Mach-O universal binary with 2 architectures: [x86_64] [arm64]\n" "" ""
45 testing "gzip data" "file \"$FILES\"/tar/tar.tgz | grep -o 'gzip compressed data'" \
49 test_line "7z file" "tar/tar.7z" "7-zip archive data, version 0.4\n" "" ""
51 "file $FILES/zip/example.zip | egrep -o '(Zip archive data|at least v1.0 to extract)'" \
54 echo R0lGODlhIAAgAMZHAAAAABYWFiYmJioqKi4uLjIy | base64 -d > gif
55 testing "gif file" "file gif" "gif: GIF image data, version 89a, 32 x 32\n" "" ""
56 rm -f gif
60 echo "6465780a3033350038ca8f6ce910f94e" | xxd -r -p > android.dex
61 testing "Android .dex" "file android.dex | egrep -o '(dex file|version 035)'" \
63 rm -f android.dex
65 # These actually test a lot of the ELF code: 32-/64-bit, arm/arm64, PT_INTERP,
67 toyonly test_line "Android NDK full ELF note" "elf/ndk-elf-note-full" \
68 …"ELF shared object, 64-bit LSB arm64, dynamic (/system/bin/linker64), for Android 24, built by NDK…
69 toyonly test_line "Android NDK short ELF note" "elf/ndk-elf-note-short" \
70 …"ELF shared object, 32-bit LSB arm, EABI5, soft float, dynamic (/system/bin/linker), for Android 2…
72 "ELF executable (fdpic), 32-bit MSB sh, static, stripped\n" "" ""
76 testing "symlink -h" "file -h symlink" "symlink: symbolic link to $LINK\n" "" ""
77 testing "symlink -L" \
78 "file -L symlink | egrep -o '(symlink:|Java class|version 53.0)'" \
81 # Some host versions say "-" some "/dev/stdin"...
82 testing "- pipe" "cat $FILES/java.class | file - | egrep -o '(Java class|version 53.0)'" \
84 testing "- redirect" \
85 "file - <$FILES/java.class | egrep -o '(Java class|version 53.0)'" \
91 testing "- </dev/zero" "file - </dev/zero | grep -ow data" "data\n" "" ""
93 testcmd 'ar' 'input | grep -o " ar archive"' ' ar archive\n' \
94 "$(echo -e '!<arch>\nhello/ 0 0 0 644 6 `\nworld')\n" ""
104 # X x X x-bit/{non-}interlaced
121 # #! shell script