Skip to content

Commit c1ff74c

Browse files
committed
Add issue150 test
1 parent 6dabfa1 commit c1ff74c

File tree

3 files changed

+7
-2
lines changed

3 files changed

+7
-2
lines changed

CMakeLists.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -69,6 +69,7 @@ enable_testing()
6969
add_subdirectory(dependencies)
7070
add_subdirectory(tools)
7171
add_subdirectory(tests)
72+
add_subdirectory(scripts)
7273
add_subdirectory(benchmark)
7374

7475
# for fuzzing, read the comments in the fuzz/CMakeLists.txt file

scripts/CMakeLists.txt

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
add_test(
2+
NAME issue150
3+
COMMAND ${PROJECT_SOURCE_DIR}/scripts/issue150.sh
4+
WORKING_DIRECTORY $<TARGET_FILE_DIR:allparserscheckfile>
5+
)

scripts/issue150.sh

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
#!/bin/bash
22
SCRIPTPATH="$( cd "$(dirname "$0")" ; pwd -P )"
3-
cd $SCRIPTPATH/..
4-
for i in jsonchecker/adversarial/issue150/*.json ; do
3+
for i in $SCRIPTPATH/../jsonchecker/adversarial/issue150/*.json ; do
54
echo $i;
65
./allparserscheckfile -m $i;
76
if [ $? -ne 0 ];

0 commit comments

Comments
 (0)