19 lines
622 B
Bash
Executable file
19 lines
622 B
Bash
Executable file
#!/bin/bash
|
|
set -e
|
|
|
|
# Test configure
|
|
sum_job.cfg pippin_salem_sadie
|
|
|
|
# Test run
|
|
echo -n 57 > /tmp/databuild/examples/basic_graph/generated_number/pippin
|
|
echo -n 59 > /tmp/databuild/examples/basic_graph/generated_number/salem
|
|
echo -n 1 > /tmp/databuild/examples/basic_graph/generated_number/sadie
|
|
|
|
sum_job.cfg pippin_salem_sadie | jq -c ".[0]" | sum_job.exec
|
|
|
|
# Validate that contents of pippin is 43
|
|
if [[ "$(cat /tmp/databuild/examples/basic_graph/sum/pippin_salem_sadie)" != "117" ]]; then
|
|
echo "Assertion failed: File does not contain 117"
|
|
cat /tmp/databuild/examples/basic_graph/sum/pippin_salem_sadie
|
|
exit 1
|
|
fi
|