Skip to content

Commit

Permalink
Moar debug info.
Browse files Browse the repository at this point in the history
  • Loading branch information
SaltwaterC committed Apr 26, 2012
1 parent fa82463 commit e7c082e
Showing 1 changed file with 13 additions and 1 deletion.
14 changes: 13 additions & 1 deletion tools/build.sh
Expand Up @@ -36,10 +36,22 @@ then
cp src/file-5.11/src/.libs/file bin/file
cp src/file-5.11/src/.libs/libmagic.so lib/libmagic.so

echo "--[DEBUG]--"
echo "Version information:"

# print the version info for debug purposes
LD_LIBRARY_PATH=lib bin/file --magic-file share/magic.mgc -v
echo
# execute simple lookups to test the installation
echo "Testing the installation:"
LD_LIBRARY_PATH=lib bin/file --magic-file share/magic.mgc --mime-type --brief tests/data/foo
LD_LIBRARY_PATH=lib bin/file --magic-file share/magic.mgc --mime-type --brief tests/data/foo.pdf
LD_LIBRARY_PATH=lib bin/file --magic-file share/magic.mgc --mime-type --brief tests/data/foo.txt
LD_LIBRARY_PATH=lib bin/file --magic-file share/magic.mgc --mime-type --brief tests/data/foo.txt.bz2
LD_LIBRARY_PATH=lib bin/file --magic-file share/magic.mgc --mime-type --brief tests/data/foo.txt.gz
LD_LIBRARY_PATH=lib bin/file --magic-file share/magic.mgc --mime-type --brief tests/data/foo.txt.tar
LD_LIBRARY_PATH=lib bin/file --magic-file share/magic.mgc --mime-type --brief tests/data/foo.txt.zip

echo "--[DEBUG]--"
fi

exit 0

0 comments on commit e7c082e

Please sign in to comment.