[llvm] r237208 - [lib/Fuzzer] A simple script to synchronise a fuzz test corpus with an external git repository.

Kostya Serebryany kcc at google.com
Thu May 14 13:14:11 PDT 2015


No, someone else (e.g. another bot) may be pushing to this repo at the same
time.
I've tested this script by running two fuzzers and pushing the tests from
two clones of repo in parallel.

On Tue, May 12, 2015 at 4:26 PM, Hal Finkel <hfinkel at anl.gov> wrote:

> ----- Original Message -----
> > From: "Kostya Serebryany" <kcc at google.com>
> > To: llvm-commits at cs.uiuc.edu
> > Sent: Tuesday, May 12, 2015 6:19:12 PM
> > Subject: [llvm] r237208 - [lib/Fuzzer] A simple script to synchronise a
> fuzz  test corpus with an external git
> > repository.
> >
> > Author: kcc
> > Date: Tue May 12 18:19:12 2015
> > New Revision: 237208
> >
> > URL: http://llvm.org/viewvc/llvm-project?rev=237208&view=rev
> > Log:
> > [lib/Fuzzer] A simple script to synchronise a fuzz test corpus with
> > an external git repository.
> >
> > Added:
> >     llvm/trunk/lib/Fuzzer/pull_and_push_fuzz_corpus.sh   (with props)
> >
> > Added: llvm/trunk/lib/Fuzzer/pull_and_push_fuzz_corpus.sh
> > URL:
> >
> http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Fuzzer/pull_and_push_fuzz_corpus.sh?rev=237208&view=auto
> >
> ==============================================================================
> > --- llvm/trunk/lib/Fuzzer/pull_and_push_fuzz_corpus.sh (added)
> > +++ llvm/trunk/lib/Fuzzer/pull_and_push_fuzz_corpus.sh Tue May 12
> > 18:19:12 2015
> > @@ -0,0 +1,17 @@
> > +#!/bin/bash
> > +# A simple script to synchronise a fuzz test corpus
> > +# with an external git repository.
> > +# Usage:
> > +#   pull_and_push_fuzz_corpus.sh DIR
> > +# It assumes that DIR is inside a git repo and push
> > +# can be done w/o typing a password.
> > +cd $1
> > +git add *
> > +git commit -m "fuzz test corpus"
> > +git pull --no-edit
> > +for((attempt=0; attempt<100; attempt++)); do
> > +  echo GIT PUSH $1 ATTEMPT $attempt
> > +  if $(git push); then break; fi
>
> You have a very unreliable git repo?
>
>  -Hal
>
> > +  git pull --no-edit
> > +done
> > +
> >
> > Propchange: llvm/trunk/lib/Fuzzer/pull_and_push_fuzz_corpus.sh
> >
> ------------------------------------------------------------------------------
> >     svn:executable = *
> >
> >
> > _______________________________________________
> > llvm-commits mailing list
> > llvm-commits at cs.uiuc.edu
> > http://lists.cs.uiuc.edu/mailman/listinfo/llvm-commits
> >
>
> --
> Hal Finkel
> Assistant Computational Scientist
> Leadership Computing Facility
> Argonne National Laboratory
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20150514/0461d27b/attachment.html>


More information about the llvm-commits mailing list