Skip to content

Commit 33a961f

Browse files
committed
Run tests from top directory.
1 parent b03f522 commit 33a961f

File tree

4 files changed

+11
-9
lines changed

4 files changed

+11
-9
lines changed

.github/scripts/test.sh

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
11
#!/bin/sh
22
set -ex
3-
cd tests
4-
LANG=C exec xvfb-run -a -s '-screen 0 1024x768x24' /usr/bin/python3 ../test.py *.dot graphs/*.gv
3+
LANG=C exec xvfb-run -a -s '-screen 0 1024x768x24' /usr/bin/python3 test.py tests/*.dot tests/graphs/*.gv

HACKING.md

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,8 @@
11
# Testing
22

3-
cd tests
4-
../test.py *.dot
5-
../test.py graphs/*.gv
3+
./test.py tests/*.dot
4+
./test.py tests/graphs/*.gv
5+
6+
or simply
7+
8+
.github/scripts/test.sh

tests/graphs/user_shapes.gv

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
digraph G {
2-
n [label="", shapefile="graphs/jcr.gif"]
3-
x [width=3, height=3, label="", shapefile="graphs/jcr.gif"]
2+
n [label="", shapefile="tests/graphs/jcr.gif"]
3+
x [width=3, height=3, label="", shapefile="tests/graphs/jcr.gif"]
44
m -> n -> x
55
}

tests/svg_user_shape.dot

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
digraph G {
2-
n [label="", shapefile="sample.svg"]
3-
x [width=3, height=3, label="", shapefile="sample.svg"]
2+
n [label="", shapefile="tests/sample.svg"]
3+
x [width=3, height=3, label="", shapefile="tests/sample.svg"]
44
m -> n -> x
55
}

0 commit comments

Comments
 (0)