#! /bin/sh # -*- mode: bash; tab-width: 4; -*- # vi:ts=4 noexpandtab autoindent . ./helper_functions.sh cd .. make_project set_stat_size_string stat_size fileName="test" fileSize=1 echo_and_run "./testfile_maker -s $(($fileSize))k" pass_fail "$($stat_size $fileName) -eq $(($fileSize * 1024))" rm -f $fileName echo_and_run "./testfile_maker -s $(($fileSize))m" pass_fail "$($stat_size $fileName) -eq $(($fileSize * 1024 * 1024))" rm -f $fileName echo_and_run "./testfile_maker -s $(($fileSize))g" pass_fail "$($stat_size $fileName) -eq $(($fileSize * 1024 * 1024 * 1024))" rm -f $fileName fileSize=4 echo_and_run "./testfile_maker -s $(($fileSize))g" pass_fail "$($stat_size $fileName) -eq $(($fileSize * 1024 * 1024 * 1024))" rm -f $fileName print_pass_fail_stats
# | Change | User | Description | Committed | |
---|---|---|---|---|---|
#2 | 18692 | mbirky |
Fixing a variable mismatch issue. An unsigened int was being set to an unsigned long long. The variable runeth over. |
||
#1 | 18325 | mbirky | Changing the folder locations to fix issues with workshop naming convention. | ||
//guest/mbirky/testfile_maker/main/test_scripts/size.sh | |||||
#1 | 18324 | mbirky |
Changing the folders to have a main. Should fix some issues intorduced by adding a branch in the workshop |
||
//guest/mbirky/testfile_maker/test_scripts/size.sh | |||||
#2 | 12429 | mbirky |
Adding the feature that if only one file is made there is no trailing 0. @mwittenberg |
||
#1 | 11713 | mbirky | Moving the test scripts from the folder test to the folder test_scripts. | ||
//guest/mbirky/testfile_maker/test/size.sh | |||||
#1 | 11689 | mbirky |
Adding in the ability to specify the size measured in k, m, or g. @mwittenberg |