Last active
August 29, 2015 13:59
-
-
Save brandt/10780920 to your computer and use it in GitHub Desktop.
Symlinks Big File Handling Test
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env bash | |
if ! (git clone https://github.com/brandt/symlinks.git) ; then | |
echo "Error fetching Symlinks." >&2 | |
exit 1 | |
else | |
cd symlinks | |
fi | |
if ! make ; then | |
echo "Error compiling Symlinks." >&2 | |
fi | |
mkdir -p test | |
pushd test | |
for i in 1 1025 2049 4097 ; do | |
dd if=/dev/zero of=file_$i bs=1024k count=$i | |
ln -s file_$i link_$i | |
done | |
popd | |
printf '\n%s\n' "Test: Freshly compiled Symlinks" | |
./symlinks -rtv test | |
printf '\n%s\n' "Test: Installed Symlinks" | |
symlinks -rtv test |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment