19 lines
619 B
Bash
Executable file
19 lines
619 B
Bash
Executable file
#!/bin/bash
|
|
set -e
|
|
|
|
# Test configure
|
|
sum_job.cfg pippin_salem_sadie
|
|
|
|
# Test run
|
|
echo -n 43 > /tmp/databuild/examples/basic_graph/generated_number/pippin
|
|
echo -n 56 > /tmp/databuild/examples/basic_graph/generated_number/salem
|
|
echo -n 40 > /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/pippin_salem_sadie)" != "139" ]]; then
|
|
echo "Assertion failed: File does not contain 139"
|
|
cat /tmp/databuild/examples/basic_graph/sum/pippin_salem_sadie
|
|
exit 1
|
|
fi
|