From cc061354308af68bc1d2c5f57fe9051f914cf0c0 Mon Sep 17 00:00:00 2001 From: bdr7fv <bdr7fv@git.zephyr-software.com> Date: Tue, 18 Jun 2013 15:32:05 +0000 Subject: [PATCH] more wget tests. Former-commit-id: 1edd0967dd38684c16b501f5baacac59ed9eb5ee --- tests/wget/test_script.sh | 34 +++++++++++++++++++++++++++++++--- 1 file changed, 31 insertions(+), 3 deletions(-) diff --git a/tests/wget/test_script.sh b/tests/wget/test_script.sh index 5bcdbabf9..4f0a2acc2 100755 --- a/tests/wget/test_script.sh +++ b/tests/wget/test_script.sh @@ -12,10 +12,10 @@ DATA_DIR=$TEST_DIR/data THROW_AWAY_DIR=$DATA_DIR/throw_away CLEANUP_FILES="$THROW_AWAY_DIR/* wget-log* index.html*" ORIG_NAME="wget" -LOG_DIR=$TEST_DIR/log +#LOG_DIR=$TEST_DIR/log -rm -rf $LOG_DIR -mkdir $LOG_DIR +#rm -rf $LOG_DIR +#mkdir $LOG_DIR CURRENT_DIR=`pwd` @@ -115,6 +115,34 @@ run_test_prog_only 45 -P $THROW_AWAY_DIR -nc http://localhost:$PORT_NUM/hello_w touch $THROW_AWAY_DIR/hello_world.txt run_bench_prog_only 45 -P $THROW_AWAY_DIR -nc http://localhost:$PORT_NUM/hello_world.txt compare_std_results +cleanup + +#-c test (partial file test) +rm -f $CURRENT_DIR/hello_world.txt +echo "Hell" >$CURRENT_DIR/hello_world.txt +run_test_prog_only 45 -c http://localhost:$PORT_NUM/hello_world.txt +mv $CURRENT_DIR/hello_world.txt $THROW_AWAY_DIR/hello.1 + +rm -f $CURRENT_DIR/hello_world.txt +echo "Hell" >$CURRENT_DIR/hello_world.txt +run_bench_prog_only 45 -c http://localhost:$PORT_NUM/hello_world.txt +mv $CURRENT_DIR/hello_world.txt $THROW_AWAY_DIR/hello.2 +compare_std_results +compare_files_no_filtering $THROW_AWAY_DIR/hello.1 $THROW_AWAY_DIR/hello.2 +cleanup + +#-c test (non-partial file test) +$ +echo "Hello World." >$THROW_AWAY_DIR/hello_world.txt +run_test_prog_only 45 -P $THROW_AWAY_DIR -c http://localhost:$PORT_NUM/hello_world.txt +run_bench_prog_only 45 -P $THROW_AWAY_DIR -c http://localhost:$PORT_NUM/hello_world.txt +compare_std_results +cleanup + + + + + report_success -- GitLab