Skip to content

Commit e854ec5

Browse files
Add master script for integration tests
1 parent be21e9c commit e854ec5

2 files changed

Lines changed: 10 additions & 5 deletions

File tree

Makefile

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@ all: sofos
1616

1717
clean:
1818
rm -f sofos sofos_debug unittest unittest_coverage sofos_coverage
19+
rm -f *.o
1920
rm -f *.gcov *.gcda *.gcno
2021
rm -f coverage*.html
2122
rm -f clang-tidy.txt clang-format.patch
@@ -49,19 +50,18 @@ unittest_coverage: $(patsubst %.cc,%_cov.o,$(UNITCC))
4950

5051
test: unittest sofos_debug
5152
./unittest
52-
cd test && bash test-01.bash ../sofos_debug
53+
cd test && bash run_tests.bash ../sofos_debug
5354

5455
coverage: sofos_coverage unittest_coverage
5556
rm -f *.gcda
5657
./unittest_coverage
57-
cd test && bash test-01.bash ../sofos_coverage
58+
cd test && bash run_tests.bash ../sofos_coverage
5859
gcovr -r . -e catch.hpp -e unittest.cc --html-details -o coverage.html
5960

60-
test_codecov: sofos_unittest_coverage sofos_coverage
61+
test_codecov: sofos_coverage unittest_coverage
6162
rm -f *.gcda
6263
./unittest_coverage
63-
cd test && bash test-01.bash ../sofos_coverage
64-
for filename in $(SOFOSCC); do gcov -n -o . $$filename > /dev/null; done
64+
cd test && bash run_tests.bash ../sofos_coverage
6565
bash -c 'bash <(curl -s https://codecov.io/bash)'
6666

6767
tidy:

test/run_tests.bash

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
#!/bin/bash
2+
3+
SOFOS=$1
4+
5+
bash test-01.bash "${SOFOS}"

0 commit comments

Comments
 (0)