Skip to content

Commit

Permalink
Only run json tests on linux
Browse files Browse the repository at this point in the history
  • Loading branch information
Maijin committed Nov 20, 2016
1 parent 8baf9de commit bbdf69e
Showing 1 changed file with 61 additions and 58 deletions.
119 changes: 61 additions & 58 deletions t/cmd_json
Original file line number Diff line number Diff line change
Expand Up @@ -13,65 +13,68 @@ EXPECT='[{"offset":0,"val":104,"esil":"104,rdi,+=,$o,of,=,$s,sf,=,$z,zf,=,$c63,c
'
run_test

declare -a arr=("aa ; pdfj"
"izzj"
"ij"
"jej"
"izj"
"iIj"
"isj"
"iSj"
"irj"
"iRj"
"iSj"
"iSj sha1"
"aa ; aaij"
"aa ; afij"
"aa ; aerj"
"aa ; agj"
"aa ; aoj"
"aa ; aOj"
"aa ; arj"
"aa ; axj @ sym.main"
"aa ; axtj @ sym.main"
"aa ; axfj @ sym.main"
"drj"
"dbj"
"fj"
"fsj"
"p8j"
"pdfj"
"iaj"
"pdrj"
"aa ; pdfj @ sym.main"
"aa ; pdj @@@ functions"
"aa ; aflqj"
"aa ; aarj"
"oj"
"pDj"
"pdj"
"pij"
"psj @ str.csapp"
"sj"
"Sj"
"pdj"
"Tj"
"ij"
"CCj"
)
if [ $TRAVIS_OS_NAME = "linux" ]; then

declare -a arr=("aa ; pdfj"
"izzj"
"ij"
"jej"
"izj"
"iIj"
"isj"
"iSj"
"irj"
"iRj"
"iSj"
"iSj sha1"
"aa ; aaij"
"aa ; afij"
"aa ; aerj"
"aa ; agj"
"aa ; aoj"
"aa ; aOj"
"aa ; arj"
"aa ; axj @ sym.main"
"aa ; axtj @ sym.main"
"aa ; axfj @ sym.main"
"drj"
"dbj"
"fj"
"fsj"
"p8j"
"pdfj"
"iaj"
"pdrj"
"aa ; pdfj @ sym.main"
"aa ; pdj @@@ functions"
"aa ; aflqj"
"aa ; aarj"
"oj"
"pDj"
"pdj"
"pij"
"psj @ str.csapp"
"sj"
"Sj"
"pdj"
"Tj"
"ij"
"CCj"
)

for i in "${arr[@]}"
do
NAME="JSON: $i Well-formed"
CMDS="!r2 -qc $i ../bins/elf/bomb | jq . > /dev/null && echo \"1\""
EXPECT='1
for i in "${arr[@]}"
do
NAME="JSON: $i Well-formed"
CMDS="!r2 -qc $i ../bins/elf/bomb | jq . > /dev/null && echo \"1\""
EXPECT='1
'
run_test
done
run_test
done

NAME="JSON: ej Well-formed"
CMDS="!r2 -qc ej ../bins/elf/bomb | jq . > /dev/null && echo \"1\""
BROKEN=1
EXPECT='1
NAME="JSON: ej Well-formed"
CMDS="!r2 -qc ej ../bins/elf/bomb | jq . > /dev/null && echo \"1\""
BROKEN=1
EXPECT='1
'
run_test
run_test
fi

0 comments on commit bbdf69e

Please sign in to comment.