-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathmain.sh
More file actions
executable file
·32 lines (27 loc) · 910 Bytes
/
main.sh
File metadata and controls
executable file
·32 lines (27 loc) · 910 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
#!/usr/bin/env -S bash -x
# Exit on first error and cleanup.
set -e
trap 'kill $(pgrep -g $$ | grep -v $$) > /dev/null 2> /dev/null || :' EXIT
rm -rvf $(cat .gitignore)
# Run the example
export SOURCE_DATE_EPOCH="315532800"
export REPREP_KEEP_TYPST_DEPS="1"
stepup boot -w -n 1 & # > current_stdout.txt &
# Get the graph after completion of the pending steps.
stepup wait
stepup graph current_graph
# Reproducibility test
mv document.pdf document1.pdf
stepup watch-delete document.pdf
stepup run
stepup join
stepup make-inventory -o reproducibility_inventory.txt document.pdf document1.pdf
# Wait for background processes, if any.
wait
# Check files that are expected to be present and/or missing.
[[ -f plan.py ]] || exit 1
[[ -f document.pdf ]] || exit 1
[[ -f document.dep.json ]] || exit 1
[[ -f image.jpg ]] || exit 1
[[ -f document1.pdf ]] || exit 1
[[ -f reproducibility_inventory.txt ]] || exit 1