Skip to content

Instantly share code, notes, and snippets.

@SkamDart SkamDart/test_commands.sh
Last active May 3, 2017

Embed
What would you like to do?
Sample bash commands for testing client PUT/GET
# fill in n with some integer
# run in foreground
for i in $(seq 0 n) ; do ./client localhost:4000 PUT file$i.txt file.txt ; done
# run in background
for i in $(seq 0 n) ; do ./client localhost:4000 PUT file$i.txt file.txt &
# diff all files in foreground
for i in $(seq 0 n) diff temp_dir/file$i file.txt ; done
mkdir tmp
for i in $(seq 0 n) ; do ./client localhost:4000 GET file$i.txt tmp/file$i.txt ; done
for i in $(seq 0 n) ; do diff file.txt tmp/file$i.txt ; done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.