Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
tree: 32d86dba30
Fetching contributors…

Cannot retrieve contributors at this time

executable file 28 lines (25 sloc) 0.672 kb
#!/usr/bin/env bash
run_test ()
{
echo "$1 => "$(LD_LIBRARY_PATH=lib DYLD_LIBRARY_PATH=lib bin/file --magic-file share/magic.mgc --mime-type --brief $1)
}
echo "--[DEBUG]--"
echo
echo "Version information:"
echo
# print the version info for debug purposes
LD_LIBRARY_PATH=lib DYLD_LIBRARY_PATH=lib bin/file --magic-file share/magic.mgc -v
echo
echo
# execute simple lookups to test the installation
echo "Testing the installation:"
echo
run_test tests/data/foo
run_test tests/data/foo.pdf
run_test tests/data/foo.txt
run_test tests/data/foo.txt.bz2
run_test tests/data/foo.txt.gz
run_test tests/data/foo.txt.tar
run_test tests/data/foo.txt.zip
echo
echo "--[/DEBUG]--"
Jump to Line
Something went wrong with that request. Please try again.