summaryrefslogtreecommitdiffstats
path: root/devices/parser-test.sh
blob: 351dc75a5bab3e9c0571255f3388e3f13529edb1 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
#!/bin/bash

testdir=devices/parser-tests

function test_dir()
{
	dir="$1"
	./parser-test "$dir" 2>/dev/null |
		diff -u "$dir/expected-output" -
}

set -ex

for test in $testdir/*
do
	echo $test
	test_dir "$test"
done

echo "All tests passed"
OpenPOWER on IntegriCloud