summaryrefslogtreecommitdiffstats
path: root/messagebus_test/src/tests/errorcodes/errorcodes_test.sh
blob: e6ecc033ef31d75d6f0b934daca66c4984c5767d (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
#!/bin/bash
set -e

if [ -z "$SOURCE_DIRECTORY" ]; then
    SOURCE_DIRECTORY="."
fi

. ../../binref/env.sh

$BINREF/compilejava $SOURCE_DIRECTORY/DumpCodes.java

./messagebus_test_dumpcodes_app > cpp-dump.txt
$BINREF/runjava DumpCodes > java-dump.txt
diff -u $SOURCE_DIRECTORY/ref-dump.txt cpp-dump.txt
diff -u $SOURCE_DIRECTORY/ref-dump.txt java-dump.txt