Skip to content

Commit

Permalink
Update the script for manual testing to report the resulting `:full_f…
Browse files Browse the repository at this point in the history
…ile_path`
  • Loading branch information
mrakitin committed Feb 18, 2024
1 parent 34e291c commit a179b09
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion scripts/test-file-saving.sh
Original file line number Diff line number Diff line change
@@ -1,7 +1,11 @@
#!/bin/bash

set -vxeuo pipefail

# shellcheck source=/dev/null
. /etc/profile.d/epics.sh
if [ -f "/etc/profile.d/epics.sh" ]; then
. /etc/profile.d/epics.sh
fi

num="${1:-50}"

Expand All @@ -14,10 +18,15 @@ fi
caput "BASE:{Dev:Save1}:write_dir" "${data_dir}"
caput "BASE:{Dev:Save1}:file_name" "saveme_{num:06d}_{uid}.h5"
caput "BASE:{Dev:Save1}:stage" 1
caget -S "BASE:{Dev:Save1}:full_file_path"
for i in $(seq "$num"); do
echo "$i"
sleep 0.1
caput "BASE:{Dev:Save1}:acquire" 1
done

caput "BASE:{Dev:Save1}:stage" 0

caget -S "BASE:{Dev:Save1}:full_file_path"

exit 0

0 comments on commit a179b09

Please sign in to comment.