Skip to content

Commit b2c2665

Browse files
Make xsd validation run with makefile build
1 parent 65263d1 commit b2c2665

File tree

4 files changed

+32
-21
lines changed

4 files changed

+32
-21
lines changed

regression/Makefile

Lines changed: 21 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -2,35 +2,36 @@
22
# running tests in parallel, it is important that these directories are
33
# listed with decreasing runtimes (i.e. longest running at the top)
44
DIRS = cbmc \
5-
cbmc-library \
6-
goto-analyzer \
75
ansi-c \
8-
goto-instrument \
9-
cpp \
106
cbmc-concurrency \
117
cbmc-cover \
8+
cbmc-cpp \
129
cbmc-incr-oneloop \
13-
goto-instrument-typedef \
14-
smt2_solver \
15-
smt2_strings \
16-
strings \
17-
invariants \
18-
goto-diff \
19-
test-script \
10+
cbmc-library \
11+
contracts \
12+
cpp \
13+
goto-analyzer \
2014
goto-analyzer-taint \
21-
goto-gcc \
22-
goto-harness \
23-
goto-cl \
2415
goto-cc-cbmc \
25-
cbmc-cpp \
26-
goto-cc-goto-analyzer \
27-
statement-list \
28-
systemc \
29-
contracts \
3016
goto-cc-file-local \
17+
goto-cc-goto-analyzer \
18+
goto-cl \
19+
goto-diff \
20+
goto-gcc \
21+
goto-harness \
22+
goto-instrument \
23+
goto-instrument-typedef \
24+
invariants \
3125
linking-goto-binaries \
32-
symtab2gb \
26+
smt2_solver \
27+
smt2_strings \
3328
solver-hardness \
29+
statement-list \
30+
strings \
31+
symtab2gb \
32+
systemc \
33+
test-script \
34+
validate-trace-xml-schema \
3435
# Empty last line
3536

3637
ifeq ($(OS),Windows_NT)
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
.PHONY: test
2+
test:
3+
sh check.sh
4+

regression/validate-trace-xml-schema/check.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@
5959

6060
if len(sys.argv) != 2:
6161
sys.stderr.write('Usage: check.py <path-to-cbmc>')
62-
CbmcPath = sys.argv[1]
62+
CbmcPath = os.path.abspath(sys.argv[1])
6363
XsdValidateJar = os.path.join(this_script_dir, 'validate-xsd/build/libs/validate-xsd-1.0-SNAPSHOT-uber.jar')
6464

6565

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
if command -v javac
2+
then
3+
python3 check.py ../../src/cbmc/cbmc
4+
else
5+
echo "javac not found, skipping XSD tests"
6+
fi

0 commit comments

Comments
 (0)