-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'main' of github.com:neu-se/CONFETTI-artifact into main
- Loading branch information
Showing
54 changed files
with
826 additions
and
69 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -8,3 +8,8 @@ README.pdf | |
*_over_time.pdf | ||
tool_output | ||
vendor | ||
debug | ||
debug-preinst | ||
prebake* | ||
downloads | ||
local_eval_output |
File renamed without changes.
2 changes: 1 addition & 1 deletion
2
...iments/ant-confetti-no-global-hint/run.sh → ...iments/ant-knarr-z3-no-global-hint/run.sh
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
File renamed without changes.
2 changes: 1 addition & 1 deletion
2
experiments/ant-confetti/run.sh → experiments/ant-knarr-z3/run.sh
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
File renamed without changes.
2 changes: 1 addition & 1 deletion
2
...ts/bcelgen-confetti-no-global-hint/run.sh → ...ts/bcelgen-knarr-z3-no-global-hint/run.sh
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
File renamed without changes.
2 changes: 1 addition & 1 deletion
2
experiments/bcelgen-confetti/run.sh → experiments/bcelgen-knarr-z3/run.sh
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
File renamed without changes.
2 changes: 1 addition & 1 deletion
2
...ts/closure-confetti-no-global-hint/run.sh → ...ts/closure-knarr-z3-no-global-hint/run.sh
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
File renamed without changes.
2 changes: 1 addition & 1 deletion
2
experiments/closure-confetti/run.sh → experiments/closure-knarr-z3/run.sh
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,7 @@ | ||
<?php | ||
foreach(glob("*-confetti*") as $confettiDir ){ | ||
`sed -i 's/-confetti/-knarr-z3/' $confettiDir/run.sh`; | ||
$newDir = str_replace("-confetti","-knarr-z3", $confettiDir); | ||
`mv $confettiDir $newDir`; | ||
} | ||
?> |
File renamed without changes.
2 changes: 1 addition & 1 deletion
2
...ents/maven-confetti-no-global-hint/run.sh → ...ents/maven-knarr-z3-no-global-hint/run.sh
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
File renamed without changes.
2 changes: 1 addition & 1 deletion
2
experiments/maven-confetti/run.sh → experiments/maven-knarr-z3/run.sh
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
File renamed without changes.
2 changes: 1 addition & 1 deletion
2
...ents/rhino-confetti-no-global-hint/run.sh → ...ents/rhino-knarr-z3-no-global-hint/run.sh
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
File renamed without changes.
2 changes: 1 addition & 1 deletion
2
experiments/rhino-confetti/run.sh → experiments/rhino-knarr-z3/run.sh
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 |
---|---|---|
@@ -1,20 +1,16 @@ | ||
#!/bin/bash | ||
cd /home/ubuntu | ||
if [ ! -d "/home/ubuntu/jqf-artifact" ] | ||
then | ||
cp -r /experiment/confetti/jqf-artifact.tgz . | ||
tar xzf jqf-artifact.tgz | ||
fi | ||
cd /home/icse22ae/confetti-artifact | ||
|
||
source jqf-artifact/scripts/env.sh | ||
|
||
source scripts/env.sh | ||
LOCALOUT=forensics_results.csv | ||
ZIP=$4 | ||
FILENAME=$(basename $ZIP) | ||
TEMPDIR="${FILENAME%.*}" | ||
|
||
|
||
tar xzf $ZIP | ||
bash jqf-artifact/software/jqf//scripts/evaluate_extended_dict.sh $1 $2 $LOCALOUT $TEMPDIR/corpus | ||
bash software/jqf/scripts/evaluate_extended_dict.sh $1 $2 $LOCALOUT $TEMPDIR/corpus | ||
|
||
mv $LOCALOUT $3 | ||
rm -rf $TEMPDIR |
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,71 @@ | ||
<?php | ||
|
||
$BASE_DIR = "/home/icse22ae/confetti-artifact"; | ||
|
||
function execAndLog($note,$cmd){ | ||
print "------------------------------------------------------------------------\n"; | ||
print "$note\n"; | ||
print "------------------------------------------------------------------------\n"; | ||
|
||
print "Running: $cmd\n"; | ||
$err = 0; | ||
$time = time(); | ||
passthru($cmd." 2>&1",$err); | ||
$duration = time()- $time; | ||
print "Return code: $err. Duration: $duration seconds \n"; | ||
return $err; | ||
} | ||
|
||
if($argc != 2){ | ||
die('Usage: php runOneSmokeTest.php <evalScript> | ||
Where evalScript is one of: (benchmark)-(fuzzer), for valid combinations of: | ||
benchmark (ant, bcelgen, closure, maven, rhino), fuzzer (jqf,knarr-z3,knarr-z3-no-global-hint) | ||
'); | ||
} | ||
$script = $argv[1]; | ||
$expName = "$script-1"; | ||
|
||
$resultsDir = "$BASE_DIR/results/$script"; | ||
|
||
|
||
$startTime = time(); | ||
print "------------------------------------------------------------------------\n"; | ||
print "confetti eval runner on: $script\n"; | ||
print "Start time: ".date("r")."\n"; | ||
print "------------------------------------------------------------------------\n"; | ||
|
||
if(file_exists("$BASE_DIR/experiment-constraints")){ | ||
execAndLog("Cleaning up old constraints" ,"rm -rf $BASE_DIR/experiment-constraints"); | ||
} | ||
|
||
chdir("$BASE_DIR"); | ||
execAndLog("Confirming jqf-artifact revision", "git -C $BASE_DIR/ rev-parse HEAD"); | ||
execAndLog("Confirming jqf-confetti revision", "git -C $BASE_DIR/software/jqf/ rev-parse HEAD"); | ||
execAndLog("Confirming jqf-vanilla revision", "git -C $BASE_DIR/software/jqf-vanilla/ rev-parse HEAD"); | ||
|
||
|
||
$screenName = "exp-$expName-$startTime"; | ||
$extraArgs = "DURATION=600"; | ||
execAndLog("Running the experiment in screen. If you want to | ||
snoop on the run, in another shell run `screen -r $screenName` (do not terminate it though!)", | ||
"$extraArgs screen -S '$screenName' -d -m bash -c \"$BASE_DIR/experiments/$script/run.sh\""); | ||
print "Waiting for screen to terminate\n"; | ||
$running = true; | ||
while($running){ | ||
sleep(30); | ||
$status = trim(exec("screen -list | grep $screenName")); | ||
$running = $status != ""; | ||
} | ||
|
||
execAndLog("Moving results to follow same format as full experimental runs...", "mv results/$script results/$expName"); | ||
$archiveName = "$expName.tgz"; | ||
execAndLog("Creating result archive","tar czf local_eval_output/$expName.tgz -C results/ $expName"); | ||
execAndLog("Removing the files that are now archived", "rm -rf results/*"); | ||
|
||
print "------------------------------------------------------------------------\n"; | ||
print "confetti eval runner $expName job done\n"; | ||
print "End time: ".date("r"). " (".(time()-$startTime)." seconds)\n"; | ||
print "------------------------------------------------------------------------\n"; | ||
|
||
?> |
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,20 @@ | ||
#!/bin/bash | ||
export FUZZ_OUTPUT=/home/icse22ae/confetti-artifact/local_eval_output | ||
|
||
php scripts/runOneSmokeTest.php ant-jqf | ||
php scripts/runOneSmokeTest.php bcelgen-jqf | ||
php scripts/runOneSmokeTest.php closure-jqf | ||
php scripts/runOneSmokeTest.php maven-jqf | ||
php scripts/runOneSmokeTest.php rhino-jqf | ||
|
||
php scripts/runOneSmokeTest.php ant-knarr-z3 | ||
php scripts/runOneSmokeTest.php bcelgen-knarr-z3 | ||
php scripts/runOneSmokeTest.php closure-knarr-z3 | ||
php scripts/runOneSmokeTest.php maven-knarr-z3 | ||
php scripts/runOneSmokeTest.php rhino-knarr-z3 | ||
|
||
php scripts/runOneSmokeTest.php ant-knarr-z3-no-global-hint | ||
php scripts/runOneSmokeTest.php bcelgen-knarr-z3-no-global-hint | ||
php scripts/runOneSmokeTest.php closure-knarr-z3-no-global-hint | ||
php scripts/runOneSmokeTest.php maven-knarr-z3-no-global-hint | ||
php scripts/runOneSmokeTest.php rhino-knarr-z3-no-global-hint |
Oops, something went wrong.