-
-
Notifications
You must be signed in to change notification settings - Fork 205
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
3 changed files
with
38 additions
and
0 deletions.
There are no files selected for viewing
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
#!/bin/bash | ||
|
||
# Test the auto-reload feature by opening a file | ||
# rewriting it and checking the the file has been | ||
# automatically reloaded | ||
|
||
set -uo pipefail | ||
f3d_cmd=$1 | ||
data_dir=$2 | ||
tmp_dir=$3 | ||
|
||
hires_data=$data_dir/cow.vtp | ||
lowres_data=$data_dir/cowlow.vtp | ||
reloaded_data=$tmp_dir/cow.vtp | ||
|
||
cp $hires_data $reloaded_data | ||
|
||
log=$tmp_dir/output.log | ||
$f3d_cmd --auto-reload --verbose $reloaded_data > $log & | ||
pid=$! | ||
|
||
sleep 1 | ||
cp $lowres_data $reloaded_data | ||
sleep 1 | ||
|
||
grep -q "Number of points: 634" $log | ||
ret=$? | ||
|
||
kill $pid | ||
exit $ret |
Git LFS file not shown