Skip to content

Commit

Permalink
Run tests from top directory.
Browse files Browse the repository at this point in the history
  • Loading branch information
jrfonseca committed Nov 23, 2024
1 parent b03f522 commit 33a961f
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 9 deletions.
3 changes: 1 addition & 2 deletions .github/scripts/test.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
#!/bin/sh
set -ex
cd tests
LANG=C exec xvfb-run -a -s '-screen 0 1024x768x24' /usr/bin/python3 ../test.py *.dot graphs/*.gv
LANG=C exec xvfb-run -a -s '-screen 0 1024x768x24' /usr/bin/python3 test.py tests/*.dot tests/graphs/*.gv
9 changes: 6 additions & 3 deletions HACKING.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
# Testing

cd tests
../test.py *.dot
../test.py graphs/*.gv
./test.py tests/*.dot
./test.py tests/graphs/*.gv

or simply

.github/scripts/test.sh
4 changes: 2 additions & 2 deletions tests/graphs/user_shapes.gv
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
digraph G {
n [label="", shapefile="graphs/jcr.gif"]
x [width=3, height=3, label="", shapefile="graphs/jcr.gif"]
n [label="", shapefile="tests/graphs/jcr.gif"]
x [width=3, height=3, label="", shapefile="tests/graphs/jcr.gif"]
m -> n -> x
}
4 changes: 2 additions & 2 deletions tests/svg_user_shape.dot
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
digraph G {
n [label="", shapefile="sample.svg"]
x [width=3, height=3, label="", shapefile="sample.svg"]
n [label="", shapefile="tests/sample.svg"]
x [width=3, height=3, label="", shapefile="tests/sample.svg"]
m -> n -> x
}

0 comments on commit 33a961f

Please sign in to comment.