mirror of
https://passt.top/passt
synced 2025-06-02 14:15:37 +02:00
test: Move video processing files to $STATEBASE
The asciinema video handling creates a number of temporary files (.uncat, .start, .stop) which currently go into the source tree. Put them in the temporary state directory to avoid clutter. The final processed output is now placed into test_logs/web/ along with the corresponding .js file with links, since they're essentially test artefacts. hooks/pre-push is updated to look for those files in the new location when updating the web site. Signed-off-by: David Gibson <david@gibson.dropbear.id.au>
This commit is contained in:
parent
ec6af08ca7
commit
4e9b50f7b6
4 changed files with 31 additions and 30 deletions
hooks
|
@ -34,15 +34,15 @@ ssh "${USER_HOST}" "mkdir -p ${WEB} ${TEST} ${BIN}"
|
|||
cd test
|
||||
|
||||
./ci
|
||||
gzip -fk9 perf.js ci.js
|
||||
scp perf.js perf.js.gz ci.js ci.js.gz "${USER_HOST}:${WEB}/"
|
||||
gzip -fk9 perf.js
|
||||
scp perf.js perf.js.gz "${USER_HOST}:${WEB}/"
|
||||
scp test_logs/* "${USER_HOST}:${TEST}/"
|
||||
./run_demo
|
||||
|
||||
for cast in ci demo_pasta demo_podman demo_passt; do
|
||||
gzip -fk9 "${cast}.cast"
|
||||
scp "${cast}.cast" "${USER_HOST}:${WEB}/"
|
||||
scp "${cast}.cast.gz" "${USER_HOST}:${WEB}/"
|
||||
for f in test_logs/web/*.cast test_logs/web/*.js; do
|
||||
gzip -fk9 "${f}"
|
||||
scp "${f}" "${USER_HOST}:${WEB}/"
|
||||
scp "${f}.gz" "${USER_HOST}:${WEB}/"
|
||||
done
|
||||
|
||||
cd ..
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue