databuild/examples/basic_graph/test/generate_number_test.sh

14 lines
373 B
Bash
Executable file

#!/bin/bash
# Test configure
generate_number_job.cfg pippin salem sadie
# Test run
generate_number_job.cfg pippin | generate_number_job.exec
# Validate that contents of pippin is 43
if [[ "$(cat /tmp/databuild/examples/basic_graph/pippin)" != "43" ]]; then
echo "Assertion failed: File does not contain 43"
cat /tmp/databuild/examples/basic_graph/pippin
exit 1
fi