Skip to content

Commit 993cb66

Browse files
jamackukdudka
authored andcommitted
tests: Use json file extension for stored scan-results
Closes: #31
1 parent b16cda2 commit 993cb66

File tree

13 files changed

+9
-9
lines changed

13 files changed

+9
-9
lines changed
File renamed without changes.

tests/cshtml/0001-smoke/runtest.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,10 +5,10 @@ set -x
55
# run cshtml
66
"${CSHTML_BIN}" \
77
--cwe-names "" \
8-
--diff-base "${TEST_SRC_DIR}/old/scan-results.js" \
8+
--diff-base "${TEST_SRC_DIR}/old/scan-results.json" \
99
--diff-base-ignore-checkers "SHELLCHECK_WARNING" \
1010
--plain-text-url "scan-results.err" \
11-
"${TEST_SRC_DIR}/scan-results.js" \
11+
"${TEST_SRC_DIR}/scan-results.json" \
1212
> scan-results.html
1313

1414
diff -up "${TEST_SRC_DIR}/scan-results.html" "${PWD}/scan-results.html"

tests/cshtml/0002-cwe-names/runtest.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ set -x
55
# run cshtml
66
"${CSHTML_BIN}" \
77
--cwe-names "${TEST_SRC_DIR}/cwe-names.csv" \
8-
"${TEST_SRC_DIR}/scan-results.js" \
8+
"${TEST_SRC_DIR}/scan-results.json" \
99
> scan-results.html
1010

1111
diff -up "${TEST_SRC_DIR}/scan-results.html" "${PWD}/scan-results.html"
File renamed without changes.

tests/cslinker/0001-smoke/runtest.sh

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,12 +8,12 @@ set -x
88
# run cshtml
99
"${CSLINKER_BIN}" \
1010
--cwelist "${TEST_SRC_DIR}/cwe-map.csv" \
11-
--implist "${TEST_SRC_DIR}/scan-results-imp.js" \
11+
--implist "${TEST_SRC_DIR}/scan-results-imp.json" \
1212
--inifile "${TEST_SRC_DIR}/scan.ini" \
1313
--reapply-parsing-rules \
1414
--quiet \
1515
"${TEST_SRC_DIR}/uni-results"/* \
1616
| eval "${JSFILTER_CMD}" \
17-
> scan-results.js
17+
> scan-results.json
1818

19-
diff -up "${TEST_SRC_DIR}/scan-results.js" "${PWD}/scan-results.js"
19+
diff -up "${TEST_SRC_DIR}/scan-results.json" "${PWD}/scan-results.json"
File renamed without changes.
File renamed without changes.

tests/cslinker/0001-smoke/uni-results/coverity-results.js renamed to tests/cslinker/0001-smoke/uni-results/coverity-results.json

File renamed without changes.

tests/cslinker/0002-xml-parser/runtest.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,6 @@ set -x
99
"${CSLINKER_BIN}" --quiet \
1010
"${TEST_SRC_DIR}/raw-results"/{pid-690565-2,xxx{2,}}.xml \
1111
| eval "${JSFILTER_CMD}" \
12-
> scan-results.js
12+
> scan-results.json
1313

14-
diff -up "${TEST_SRC_DIR}/scan-results.js" "${PWD}/scan-results.js"
14+
diff -up "${TEST_SRC_DIR}/scan-results.json" "${PWD}/scan-results.json"

0 commit comments

Comments
 (0)