Skip to content

Commit

Permalink
raw_data_generator.sh - test_cases reduced, condition checking improved
Browse files Browse the repository at this point in the history
Details -
1. test_cases reduced to 5, i.e. average of 5 outputs is used to generate the raw data. This is done as the output does not vary much with the increase in number of test_cases.
2. bash functionality for condition checking [[...]] is used instead of the [...] command as [[...]] handles empty strings and strings with white-space automatically
  • Loading branch information
fenilgmehta committed Jul 17, 2019
1 parent 1bf5470 commit 9561bd2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test/raw_data_generator.sh
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

object_file=$1

if [ ! -d $2 ]; then
if [[ ! -d $2 ]]; then
mkdir -p $2
echo "Folder created"
fi
Expand All @@ -22,7 +22,7 @@ g++ -O2 "data_generator_integer.cpp" -o "${1}" || exit
echo 'Compilation successfully completed' && echo

i=10
test_cases=5000
test_cases=5

echo "test_cases = ${test_cases}" && echo

Expand Down

0 comments on commit 9561bd2

Please sign in to comment.