17 lines
541 B
Bash
Executable file
17 lines
541 B
Bash
Executable file
#!/bin/bash
|
|
|
|
# Test configure
|
|
sum_job.cfg pippin_salem_sadie
|
|
|
|
# Test run
|
|
echo -n 43 > /tmp/databuild/examples/basic_graph/pippin
|
|
echo -n 56 > /tmp/databuild/examples/basic_graph/salem
|
|
echo -n 40 > /tmp/databuild/examples/basic_graph/sadie
|
|
sum_job.cfg pippin_salem_sadie | 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/pippin_salem_sadie
|
|
exit 1
|
|
fi
|
|
|