Run test cases in CI
Signed-off-by: Yuxuan Shui <yshuiv7@gmail.com>
This commit is contained in:
parent
6bc8cfc3ce
commit
78f002d154
|
@ -33,12 +33,6 @@ commands:
|
||||||
- run:
|
- run:
|
||||||
name: build
|
name: build
|
||||||
command: ninja -vC build
|
command: ninja -vC build
|
||||||
test-xvfb:
|
|
||||||
steps:
|
|
||||||
- run:
|
|
||||||
name: xxx
|
|
||||||
command: xvfb-run -s "-screen 0 640x480x24" glxinfo
|
|
||||||
|
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
basic:
|
basic:
|
||||||
|
@ -61,6 +55,9 @@ jobs:
|
||||||
- run:
|
- run:
|
||||||
name: test config file parsing
|
name: test config file parsing
|
||||||
command: xvfb-run -s "-screen 0 640x480x24" build/src/compton --config compton.sample.conf --vsync=none --diagnostics
|
command: xvfb-run -s "-screen 0 640x480x24" build/src/compton --config compton.sample.conf --vsync=none --diagnostics
|
||||||
|
- run:
|
||||||
|
name: run testsuite
|
||||||
|
command: tests/run_tests.sh build/src/compton
|
||||||
- run:
|
- run:
|
||||||
name: generate coverage reports
|
name: generate coverage reports
|
||||||
command: cd build; find -name '*.gcno' -exec gcov -pb {} +
|
command: cd build; find -name '*.gcno' -exec gcov -pb {} +
|
||||||
|
@ -122,6 +119,4 @@ workflows:
|
||||||
- test:
|
- test:
|
||||||
requires:
|
requires:
|
||||||
- basic
|
- basic
|
||||||
# - test-xvfb
|
|
||||||
|
|
||||||
# vim: set sw=2 ts=8 et:
|
# vim: set sw=2 ts=8 et:
|
||||||
|
|
|
@ -0,0 +1,5 @@
|
||||||
|
#!/bin/sh
|
||||||
|
compton=$(realpath $1)
|
||||||
|
cd $(dirname $0)
|
||||||
|
|
||||||
|
./run_one_test.sh $compton ./basic.py
|
Loading…
Reference in New Issue