mirror of
https://github.com/Orange-OpenSource/hurl.git
synced 2024-12-24 11:32:00 +03:00
14 lines
298 B
Bash
14 lines
298 B
Bash
|
#!/bin/bash
|
||
|
|
||
|
for command_file in "$@"; do
|
||
|
echo "$command_file"
|
||
|
command=$(cat $command_file)
|
||
|
expected=$(cat ${command_file%.*}.output)
|
||
|
output="$($command 2>&1)"
|
||
|
|
||
|
if [ "$output" != "$expected" ]; then
|
||
|
diff <(echo "$output" ) <(echo "$expected")
|
||
|
exit 1
|
||
|
fi
|
||
|
|
||
|
done
|