-
Notifications
You must be signed in to change notification settings - Fork 62
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Using host.json as project JSON to specificy docker container and whe…
…ther docker, local, or remote
- Loading branch information
1 parent
d20e4eb
commit 3b31d0e
Showing
10 changed files
with
96 additions
and
50 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
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
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,43 @@ | ||
|
||
# Load lava-functions | ||
. `dirname $0`/funcs.sh | ||
lava=$(dirname $(dirname $(readlink -f "$0"))) | ||
|
||
# defaults | ||
ok=0 | ||
reset=0 | ||
reset_db=0 | ||
add_queries=0 | ||
make=0 | ||
taint=0 | ||
inject=0 | ||
num_trials=0 | ||
kt="" | ||
demo=0 | ||
curtail=0 | ||
ATP_TYPE="" | ||
# default bugtypes | ||
bugtypes="ptr_add,rel_write,malloc_off_by_one" | ||
# default # of bugs to be injected at a time | ||
many=50 | ||
|
||
# This is just a dummy values | ||
project_name="toy" | ||
|
||
. `dirname $0`/vars.sh | ||
|
||
sourcedir="$directory/$name/$source" | ||
bugsdir="$directory/$name/bugs" | ||
logs="$directory/$name/logs" | ||
|
||
RESET_DB() { | ||
lf="$logs/dbwipe.log" | ||
truncate "$lf" | ||
progress "everything" 1 "Resetting lava db -- logging to $lf" | ||
run_remote "$buildhost" "dropdb -U $pguser -h $dbhost $db || true" "$lf" | ||
run_remote "$buildhost" "createdb -U $pguser -h $dbhost $db || true" "$lf" | ||
run_remote "$buildhost" "psql -d $db -h $dbhost -f $lava/tools/lavaODB/generated/lava.sql -U $pguser" "$lf" | ||
run_remote "$buildhost" "echo dbwipe complete" "$lf" | ||
} | ||
|
||
RESET_DB |
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