Skip to content

Commit 36866f0

Browse files
committed
Make closer to what github actions does
1 parent 2e2358d commit 36866f0

File tree

3 files changed

+16
-3
lines changed

3 files changed

+16
-3
lines changed

.gitignore

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,4 +31,5 @@
3131
*.out
3232
*.app
3333

34-
cmake-build-debug
34+
cmake-build-debug
35+
output

test.sh

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,11 @@
11
#!/bin/bash
2-
cd cmake-build-debug/test/
3-
./tests
2+
3+
# This was:
4+
# cd cmake-build-debug/test/
5+
# ./tests
6+
7+
# Now like this, to match the github action:
8+
mkdir output
9+
cmake-build-debug/test/tests --output_format=XML --report_level=detailed 2> output/test-results.xml
10+
xmllint --format output/test-results.xml > output/test-results-formatted.xml
11+
xsltproc test/boost-to-junit-xml.xslt output/test-results.xml > output/junit-test-results.xml

test/utils.h

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,12 @@
33
#define LOOP_BLOCKS 42 // number of blocks to generate when looping
44
#define WAV_HEADER_SIZE 44 // sleazy hack...
55

6+
/*
67
#define REFERENCE_PATH "../../test/resources/reference/"
78
#define INPUT_PATH "../../test/resources/input"
9+
*/
10+
#define REFERENCE_PATH "test/resources/reference/"
11+
#define INPUT_PATH "test/resources/input"
812

913
extern void printTest(uint32_t expectedDataSize = 0,
1014
double rate = NO_RATE);

0 commit comments

Comments
 (0)