forked from diffblue/cbmc
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request diffblue#1392 from reuk/reuk/fixup-appveyor-regres…
…sions Ensure new regression folders work with Make *and* CMake
- Loading branch information
Showing
8 changed files
with
76 additions
and
31 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
if(WIN32) | ||
set(is_windows true) | ||
else() | ||
set(is_windows false) | ||
endif() | ||
|
||
add_test_pl_tests( | ||
"goto-cc-cbmc" | ||
"${CMAKE_CURRENT_SOURCE_DIR}/chain.sh $<TARGET_FILE:goto-cc> $<TARGET_FILE:cbmc> ${is_windows}" | ||
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,18 @@ | ||
#!/bin/bash | ||
#!/usr/bin/env bash | ||
|
||
SRC=../../../src | ||
goto_cc=$1 | ||
cbmc=$2 | ||
is_windows=$3 | ||
|
||
GC=$SRC/goto-cc/goto-cc | ||
CBMC=$SRC/cbmc/cbmc | ||
options=${*:4:$#-4} | ||
name=${*:$#} | ||
name=${name%.c} | ||
|
||
OPTS=$1 | ||
NAME=${2%.c} | ||
if [[ "${is_windows}" == "true" ]]; then | ||
"${goto_cc}" "${name}.c" | ||
mv "${name}.exe" "${name}.gb" | ||
else | ||
"${goto_cc}" "${name}.c" -o "${name}.gb" | ||
fi | ||
|
||
$GC $NAME.c -o $NAME.gb | ||
$CBMC $NAME.gb $OPTS | ||
"${cbmc}" "${name}.gb" ${options} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
if(WIN32) | ||
set(is_windows true) | ||
else() | ||
set(is_windows false) | ||
endif() | ||
|
||
add_test_pl_tests( | ||
"goto-cc-goto-analyzer" | ||
"${CMAKE_CURRENT_SOURCE_DIR}/chain.sh $<TARGET_FILE:goto-cc> $<TARGET_FILE:goto-analyzer> ${is_windows}" | ||
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,18 @@ | ||
#!/bin/bash | ||
#!/usr/bin/env bash | ||
|
||
src=../../../src | ||
goto_cc=$1 | ||
goto_analyzer=$2 | ||
is_windows=$3 | ||
|
||
gc=$src/goto-cc/goto-cc | ||
goto_analyzer=$src/goto-analyzer/goto-analyzer | ||
options=${*:4:$#-4} | ||
name=${*:$#} | ||
name=${name%.c} | ||
|
||
options=$1 | ||
name=${2%.c} | ||
if [[ "${is_windows}" == "true" ]]; then | ||
"${goto_cc}" "${name}.c" | ||
mv "${name}.exe" "${name}.gb" | ||
else | ||
"${goto_cc}" "${name}.c" -o "${name}.gb" | ||
fi | ||
|
||
$gc $name.c -o $name.gb | ||
$goto_analyzer $name.gb $options | ||
"${goto_analyzer}" "${name}.gb" ${options} |