Skip to content

Commit 6d89449

Browse files
committed
tests/csgrep/66-json-parser-valgrind-dedup: fix for EPEL-7
1 parent 3b41596 commit 6d89449

File tree

5 files changed

+11
-3
lines changed

5 files changed

+11
-3
lines changed

tests/CMakeLists.txt

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,9 @@ set(diffcmd "diff -up")
2828
set(jsfilter "sed")
2929
set(jsfilter "${jsfilter} -e ':a;N;$!ba;s|:\\\\\\\\n *\\\\\\\\[|: [|g'")
3030

31+
# yet another conversion needed for scan properties on EPEL-7
32+
set(jsfilter "${jsfilter} -e ';s|:\\\\\\\\n *{|: {|g'")
33+
3134
macro(add_test_wrap test_name cmd)
3235
add_test("${test_name}" bash -c "${cmd}")
3336
set_tests_properties(${test_name} PROPERTIES COST ${test_cost})

tests/csgrep/sync.sh

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,9 @@
11
#!/bin/zsh
22
set -x
33

4+
# import ${JSFILTER_CMD}
5+
. ../test-lib.sh
6+
47
if [[ $# -eq 0 ]]; then
58
tests=( *-args.txt )
69
else
@@ -9,5 +12,7 @@ fi
912

1013
for tst in "${tests[@]}"; do
1114
tst=${tst%-args.txt}
12-
eval "../../csdiff_build/src/csgrep $(<${tst}-args.txt) ${tst}-stdin.txt" > ${tst}-stdout.txt
15+
eval "../../csdiff_build/src/csgrep $(<${tst}-args.txt) ${tst}-stdin.txt" \
16+
| eval "${JSFILTER_CMD}" \
17+
> ${tst}-stdout.txt
1318
done

tests/cslinker/0001-smoke/runtest.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ set -e
33
set -x
44

55
# import ${JSFILTER_CMD}
6-
. ${TEST_SRC_DIR}/../test-lib-cslinker.sh
6+
. ${TEST_SRC_DIR}/../../test-lib.sh
77

88
# run cshtml
99
"${CSLINKER_BIN}" \

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ set -e
33
set -x
44

55
# import ${JSFILTER_CMD}
6-
. ${TEST_SRC_DIR}/../test-lib-cslinker.sh
6+
. ${TEST_SRC_DIR}/../../test-lib.sh
77

88
# run cshtml
99
"${CSLINKER_BIN}" --quiet \
File renamed without changes.

0 commit comments

Comments
 (0)