Mike Aizatsky
202b73edb8
[infra] Fixing undefined variable error
...
@alex, forget the explanation in fd244c7b34
))
I think this is now how it was intended:
* ${parameter-default} expands to default if parameter is not set
* -n checks if expansion is not empty
2016-12-27 09:13:07 -08:00
Mike Aizatsky
fd244c7b34
Revert "Fixed inverted conditional in compile script ( #215 )"
...
This reverts commit 43e03bc035
.
The initial code was right:
(http://www.tldp.org/LDP/abs/html/parameter-substitution.html )
If $BUILD_ID is defined ${BUILD_ID+} evaluates to empty string.
If $BUILD_ID is not defined, it evaluates to null string.
-z of empty string is true
-z of null string is false
(welcome to bash).
@alex
2016-12-27 09:01:20 -08:00
Alex Gaynor
43e03bc035
Fixed inverted conditional in compile script ( #215 )
2016-12-24 11:57:01 -08:00
Mike Aizatsky
5a4daf8980
[infra] use $BUILD_UID if it is defined ( fixes #30 ) ( #211 )
...
If $BUILD_UID is defined, then compile script will create a user
with a given UID and switch to it prior to calling project's build.sh.
2016-12-21 15:01:44 -08:00
Mike Aizatsky
45206f3484
[infra] nit
2016-12-15 20:57:29 -08:00
Mike Aizatsky
0a7dd52155
[infra] overriding default libraries for msan build #59
2016-12-15 20:57:07 -08:00
Mike Aizatsky
2de24fc520
[infra] build msan version of libcxx into /usr/msan/lib ( #59 ).
2016-12-14 13:16:11 -08:00
Mike Aizatsky
7bd5ae5115
[infra] coverage flags can be overriden on target basis. #84
2016-12-13 10:37:21 -08:00
Mike Aizatsky
feff4b8a66
[infra] FUZZING_ENGINE to choose compile script ( #128 )
2016-12-06 22:18:54 -08:00
Mike Aizatsky
ba0304c6a9
[infra] providing libFuzzingEngine.a ( #139 )
2016-12-06 15:54:53 -08:00
Mike Aizatsky
f478dca0e8
[infra] SANITIZER environment variable ( #103 )
...
The variable picks one of the predefined flags configuration.
2016-12-02 10:58:51 -08:00
Mike Aizatsky
456e952486
silencing pushd
2016-11-18 16:46:04 -08:00
Mike Aizatsky
711ffb3247
[infra] silencing ar
2016-11-18 12:23:23 -08:00
Mike Aizatsky
487e9f4ed6
[infra] removing FUZZER_LDFLAGS ( fixes #73 )
...
Workarounds libc++abi issue by folding libc++abi.a into libc++.a.
Will keep FUZZER_LDFLAGS empty for a while until tpm2 is fixed.
2016-11-18 12:16:35 -08:00
Mike Aizatsky
a0a5872b44
removed debug output
2016-11-18 11:44:37 -08:00
Mike Aizatsky
3599908dbf
[infra] use $src, $out and $work in build scripts instead of /src, /out, /work ( #88 )
...
This will make it possible to run scripts outside of docker container.
2016-11-18 11:16:38 -08:00
Mike Aizatsky
5dfb810427
[infra] setting current directory to src checkout ( #87 )
2016-11-17 09:49:34 -08:00
Mike Aizatsky
95605c91d9
[infra] adding -x to compile scripts to see all commands that are executed
2016-11-15 11:35:25 -08:00
Mike Aizatsky
efbcadbe12
putting libfuzzer.a into /usr/lib/
2016-11-01 13:19:39 -07:00
Mike Aizatsky
459b0c1b40
Update compile
2016-10-26 13:53:05 -07:00
Mike Aizatsky
6ccbe7f757
[infra] revisions->srcmap cleanup
2016-10-20 13:15:28 -07:00
Mike Aizatsky
9d54ccaeee
[infra] getting back to root user
2016-10-20 00:24:22 -07:00
Mike Aizatsky
0334615e51
[infra] determining source code revisions
2016-10-19 15:07:24 -07:00
Mike Aizatsky
ce3c1a60c8
calling script directly
2016-10-19 10:03:42 -07:00
Mike Aizatsky
ea957bd4ee
[infra] checking out library sources in the image ( #40 )
...
fixes #33
2016-10-18 15:37:23 -07:00
Mike Aizatsky
089add6e8b
[infra] replacing libfuzzer/*.o by -lfuzzer
...
Fixes issue #32
2016-10-17 14:37:19 -07:00
Mike Aizatsky
941e47d6e1
[infra] renaming LDFLAGS into FUZZER_LDFLAGS. Fixes #31
2016-10-13 14:20:19 -07:00
Mike Aizatsky
85dad5d52d
[infra] checkout command: automatic code checkout and compiling ( #11 )
2016-10-10 13:21:45 -07:00
Mike Aizatsky
e2ca7bcbe0
[infra] fixing build script location (/src/build.sh)
...
Fixing the location of build.sh gets rid of ENTRYPOINT. Which opens a possibility to implement different commands like:
````bash
docker run -ti expat compile
docker run -ti expat run <fuzzer_name> <input_data>
````
and keep the knowledge of build script location.
This is a breaking change.
2016-10-06 13:45:12 -07:00