Dmitriy Nikiforov [Fri, 15 Sep 2017 18:27:19 +0000 (21:27 +0300)]
Cut all newline characters from the 'uname -m' command output
Change-Id: I25de911701ff58549f21c016e47b0255cb9a33da
Dmitriy Nikiforov [Fri, 15 Sep 2017 18:26:55 +0000 (21:26 +0300)]
Add Jenkins script for 'RV_run' job
Change-Id: I6db1158463bdf1b72baf26287931593c2b77b64e
Dmitriy Nikiforov [Wed, 13 Sep 2017 14:53:42 +0000 (17:53 +0300)]
Add 'version' command
Current version is 1.0.0.
Change-Id: I4cf6507652c6795e2c21b9d48babf8204f488fa4
Dmitriy Nikiforov [Wed, 6 Sep 2017 15:57:35 +0000 (18:57 +0300)]
Change '--corpus' option behaviour to search for target's corpus
Now --corpus feature does not demand of corpus directory to have any fixed
structure and just searches for <target-name>.zip archive in it.
Change-Id: I1d403d971ddf8f539b59ebe8437527417666a46d
Dmitriy Nikiforov [Tue, 5 Sep 2017 19:10:27 +0000 (22:10 +0300)]
Update help messages for all tizen_fuzz.sh script commands
Change-Id: I54c642d8b6b6ab67953f607c01357ffc6d618cf0
Dmitriy Nikiforov [Tue, 5 Sep 2017 19:52:43 +0000 (22:52 +0300)]
Add cleaning of previously pushed rpms on device
Change-Id: I105a46334f2d023e19718f1dc4cce9238762558a
Dmitriy Nikiforov [Wed, 30 Aug 2017 16:24:50 +0000 (19:24 +0300)]
Add 'deps' fields to targetspec files in tpk/wgt-manifest-handlers
Added boost libraries as targets run-time dependencies. Without these
libraries target cannot be executed on device.
Change-Id: Ia89dfc7f136e4d7fba54f50b9ad9a538ea51e9e7
Dmitriy Nikiforov [Wed, 30 Aug 2017 16:21:08 +0000 (19:21 +0300)]
Remove redundant 'sdb root on' invocation
Change-Id: I162967ff50b235ffae9ba619abdc792ffbddc711
Dmitriy Nikiforov [Tue, 22 Aug 2017 12:12:31 +0000 (15:12 +0300)]
Add missing help information for '--dump-coverage' option
Change-Id: I4154e5eab2a36f0ffddd1afe3e7fcb12a3481db7
Dmitriy Nikiforov [Thu, 31 Aug 2017 16:23:19 +0000 (19:23 +0300)]
Fix '--long' option for 'list' command
Fixed 'architecture' field which displayed list of names of all directories
inside target build directory. This list included besides architecture
directories also 'dicts' and 'options' directories.
Now this field only shows 'i586' and 'x86_64' as was initially intended.
Also, fixed shellcheck warnings in this script.
Change-Id: Icd46f370fa9e76666a4f3e9e26ab23806fd063d0
Dmitriy Nikiforov [Wed, 6 Sep 2017 11:03:47 +0000 (14:03 +0300)]
Update GBS configuration files
Replaced gbs_emulator64.conf and gbs_emulator32.conf with one gbs_emulator.conf
file which now uses 'standard' repository for Tizen:Base.
Change-Id: I31c7c4083aeee7171857d0724feb0add4dda119a
Dmitriy Nikiforov [Wed, 30 Aug 2017 16:20:22 +0000 (19:20 +0300)]
Add support for target dependencies to the 'publish' command
Change-Id: I8c428be7b1a7d9cba2ba5be5a95141539b226744
Dmitriy Nikiforov [Wed, 30 Aug 2017 16:17:25 +0000 (19:17 +0300)]
Print errors and warnings from 'rpm_n_reqs.py' to stderr
This is needed for easy filtering of useful output (list of rpm packages)
from other information.
Change-Id: I86664a8b385ebbcc33bbfb8f197124532aaa9a39
Dmitriy Nikiforov [Wed, 30 Aug 2017 16:14:32 +0000 (19:14 +0300)]
Add support for 'deps' field in targetspec to the 'build' command
This optional field will specify a list of additional target run-time
dependencies that need to be installed on device.
Change-Id: I39fd88fa89ec51520005009a1a3f142d8dc9d938
Dmitriy Nikiforov [Wed, 30 Aug 2017 16:12:47 +0000 (19:12 +0300)]
Reduce the number of jobs for '--test-input' option to 1 job
There is no need to test one input multiple times.
Change-Id: I69ecfe78a8566357f803d8da8066ce1e36829eb6
Dmitry Kovalenko [Thu, 17 Aug 2017 07:43:07 +0000 (10:43 +0300)]
Add initial version of script rpm_n_reqs.py
Script searches rpm and all its dependecies in GBS cache.
It's expected to use this script to install all dependecies of fuzzed package.
Change-Id: I45d08f67c4a2d011c2db59d07cc751991a143db8
Signed-off-by: Dmitry Kovalenko <d.kovalenko@samsung.com>
Dmitriy Nikiforov [Tue, 29 Aug 2017 12:12:46 +0000 (15:12 +0300)]
Update general help message
Change-Id: Ifb509891f76f311fc76aa470d9f663368c9066b5
Dmitriy Nikiforov [Tue, 29 Aug 2017 09:20:25 +0000 (12:20 +0300)]
Fix list of target binaries in 'publish' command
Change-Id: I934cf671bfa3549992cd47961efd7e9d22f52003
Dmitriy Nikiforov [Thu, 24 Aug 2017 18:18:20 +0000 (21:18 +0300)]
Redirect some of the output of 'report' command to stderr
Needed to filter out useful information in 'run-all' command.
Change-Id: I1ab63982c6d524cd1eaa17918c003054e2d04baa
Dmitriy Nikiforov [Thu, 24 Aug 2017 18:17:37 +0000 (21:17 +0300)]
Add 'run-all' command to execute multiple targets on multiple devices
Change-Id: Id2db9249756dbd19e5cc44d66037e74dcc0f93de
Dmitriy Nikiforov [Thu, 24 Aug 2017 18:15:46 +0000 (21:15 +0300)]
Remove quoting of SDB_CMD in infra/utils.sh to allow word-splitting
Change-Id: I62cf551870bea331401387a8c593450c342d45f7
Dmitriy Nikiforov [Thu, 24 Aug 2017 18:14:48 +0000 (21:14 +0300)]
Fix list of '.options' files to pushed in 'publish' command
Change-Id: I39cd01e0d7fdf2382a2625b7c66f3176dbee1e1e
Dmitriy Nikiforov [Thu, 24 Aug 2017 18:13:40 +0000 (21:13 +0300)]
Fix incorrect sdb commands to use specified serial numbers
Change-Id: I67d004e21afc3962ff8f14f6268160d7816a94c0
Dmitriy Nikiforov [Tue, 22 Aug 2017 12:07:47 +0000 (15:07 +0300)]
Add '--test-input' option to test single input
Can be used with '--dump-coverage' to produce coverage for this input.
Change-Id: Ic213da59022f4a8b85e8b8fdc4b0924bade20353
Dmitriy Nikiforov [Thu, 17 Aug 2017 15:23:31 +0000 (18:23 +0300)]
Make the location of fuzzing targets fixed
Now all targets will be pushed to the /fuzzing directory by default.
Also, fixed help message for 'run' command.
Change-Id: I53e062df496628fef5bf8dd6ad1a256ce01ece3f
Dmitriy Nikiforov [Thu, 17 Aug 2017 13:45:00 +0000 (16:45 +0300)]
Add 'prepare_device' function to enable root and remount root fs
Function is used in 'publish', 'run' and 'report' commands.
Change-Id: Id7c777f021ee77fb47d11c2613c2e89f52397a98
Dmitriy Nikiforov [Thu, 17 Aug 2017 12:27:59 +0000 (15:27 +0300)]
Add 'report' command to collect and analyze fuzzing results
Change-Id: Ibf7e0013156e784c9b121bacb8e91bd6e6630ae3
Dmitriy Nikiforov [Mon, 21 Aug 2017 16:25:58 +0000 (19:25 +0300)]
Reduce niceness of the fuzzing process
Change-Id: Id40ba50795ddd7408e7c3e7b747f3b3b729b1634
Vitaliy Cherepanov [Mon, 31 Jul 2017 11:58:36 +0000 (14:58 +0300)]
Fuzzing target for metadata-extractor package
Fuzzed functions:
* metadata_extractor_create
* metadata_extractor_set_path
* metadata_extractor_get_metadata
* metadata_extractor_get_frame_at_time
Change-Id: Iab367874ac6551d40df54fc529824694cf85dde6
Signed-off-by: Vitaliy Cherepanov <v.cherepanov@samsung.com>
Dmitriy Nikiforov [Fri, 18 Aug 2017 12:17:35 +0000 (15:17 +0300)]
Fix the LD_PRELOAD path to libasan in the 'run' command
Now it uses libasan.so from the system /usr/lib[64] directory.
Change-Id: I9f13f0674bca61258bf0983fad68b0b0a344e756
Dmitriy Nikiforov [Thu, 17 Aug 2017 15:27:02 +0000 (18:27 +0300)]
Add '-detect_leaks=0' libFuzzer option to tpk/wgt-manifest-handlers
This is workaround for leak in libxml2 preventing the fuzzing of target
packages.
Change-Id: Idffe2f88f9d936c7b76065fffed9d64026097443
Dmitriy Nikiforov [Thu, 17 Aug 2017 14:32:26 +0000 (17:32 +0300)]
Remove unneeded '--root' options from 'run' and 'publish' commands
Change-Id: I79475191643f8d3e46bbcf1c94c1dec00cf7ac55
Dmitriy Nikiforov [Thu, 17 Aug 2017 14:38:23 +0000 (17:38 +0300)]
Fix shellcheck warnings in infra/commands/run.sh
Change-Id: I07db6baa4f32ad5fb1f332945de541ce64ce946c
Dmitriy Nikiforov [Thu, 17 Aug 2017 14:30:00 +0000 (17:30 +0300)]
Fix shellcheck warnings in infra/commands/publish.sh
Change-Id: Ifcea704673c4554db0100387c6f2c008d27ed7a0
Dmitriy Nikiforov [Thu, 17 Aug 2017 14:15:53 +0000 (17:15 +0300)]
Fix shellcheck warnings in infra/commands/build.sh
Change-Id: I5dc299d8244091505a4f17569ce5e13d6509ad0f
Dmitriy Nikiforov [Thu, 17 Aug 2017 14:04:00 +0000 (17:04 +0300)]
Fix shellcheck warnings in infra/commands/build-all.sh
Change-Id: I044122a659da4947994e058c8fe8367ce791001b
Dmitriy Nikiforov [Thu, 17 Aug 2017 13:56:23 +0000 (16:56 +0300)]
Remove cleaning of logs in 'coverage' mode in 'run' command
Change-Id: I34e462ec30b860a2ec2b1de2998e402af2baed46
Dmitriy Nikiforov [Thu, 17 Aug 2017 13:51:17 +0000 (16:51 +0300)]
Unify 'SDB_CMD' variable usage
Change-Id: Icb4946a4dadf9554de8737f5b26ba2bed818abc3
Dmitriy Nikiforov [Thu, 17 Aug 2017 12:03:21 +0000 (15:03 +0300)]
Fix glob in 'build' command
Change-Id: I0c2c581e882dcb66ada81b756caa97651faa04a9
Dmitriy Nikiforov [Mon, 14 Aug 2017 19:27:20 +0000 (22:27 +0300)]
Fix 'publish' to search for libasan only for current architecture
Change-Id: I83312c2a88798a54e2623e48ac5eddf9b614b0a7
Dmitriy Nikiforov [Fri, 11 Aug 2017 13:12:57 +0000 (16:12 +0300)]
Add automatic root filesystem remounting in 'publish' command
Change-Id: Ib551ff241793131328eda7f75c3a81dc9a676741
Dmitriy Nikiforov [Fri, 11 Aug 2017 12:55:57 +0000 (15:55 +0300)]
Add '--install-deps' option to install missing dependencies
Change-Id: I35417285861a79efaa5bb38a4af89833823e09c7
Dmitriy Nikiforov [Thu, 10 Aug 2017 20:55:40 +0000 (23:55 +0300)]
Fix shellcheck warnings in infra/utils.sh
Change-Id: I3abcf4ba972503df49f310bc3a3f6dd034bb557e
Dmitriy Nikiforov [Thu, 10 Aug 2017 19:39:21 +0000 (22:39 +0300)]
Move all global utility function to infra/utils.sh
Change-Id: I60982c957452812792f591d394f963d9c4a0dfad
Dmitriy Nikiforov [Thu, 10 Aug 2017 19:31:50 +0000 (22:31 +0300)]
Add various utility functions to remove code duplication
Added functions:
* get_device_arch
* get_config_by_arch
* get_profile_by_arch
* install_deps
* check_deps
* check_and_install_deps
Change-Id: I2eeba01a28e48c3a773c9a89c56de2b53e00ecfd
Dmitriy Nikiforov [Fri, 4 Aug 2017 16:37:24 +0000 (19:37 +0300)]
Add .options files for wgt/tpk-manifest-handlers projects
Dmitriy Nikiforov [Thu, 10 Aug 2017 16:35:10 +0000 (19:35 +0300)]
Add '--dump-coverage' option to dump sanitizers coverage
Generated .sancov files will be located at <target_dir>/coverage.
Dmitriy Nikiforov [Fri, 4 Aug 2017 15:50:54 +0000 (18:50 +0300)]
Add 'run' command to execute specified fuzzing target on device
Dmitriy Nikiforov [Fri, 4 Aug 2017 17:01:57 +0000 (20:01 +0300)]
Add support for .options files to 'publish' command
Dmitriy Nikiforov [Fri, 4 Aug 2017 16:15:31 +0000 (19:15 +0300)]
Add support for .options files to 'build' command
Dmitry Kovalenko [Fri, 14 Jul 2017 06:02:08 +0000 (09:02 +0300)]
Fuzzing target for yaca
Change-Id: I9d1589d934884d897b9911666d92e17638f9611d
Signed-off-by: Dmitry Kovalenko <d.kovalenko@samsung.com>
Dmitry Kovalenko [Thu, 6 Jul 2017 12:57:00 +0000 (15:57 +0300)]
Fuzzing targets for libcryptsvc
For the following funcitons:
Base64Encoding() (libcrypt-fuzz1.cpp)
cs_derive_key_with_pass() (libcrypt-fuzz2.cpp)
Change-Id: I8c47661d8a6a555825d7dfb15f1c19f0a6f0b424
Signed-off-by: Dmitry Kovalenko <d.kovalenko@samsung.com>
Dmitriy Nikiforov [Thu, 10 Aug 2017 17:26:25 +0000 (20:26 +0300)]
Fix renamed 'sdb shell' wrappers in publish command
Dmitriy Nikiforov [Thu, 10 Aug 2017 13:54:47 +0000 (16:54 +0300)]
Add "--define 'asan 1'" option to gbs build options
Dmitriy Nikiforov [Fri, 4 Aug 2017 16:24:39 +0000 (19:24 +0300)]
Enable more compiler warnings by default
Dmitriy Nikiforov [Tue, 8 Aug 2017 13:51:20 +0000 (16:51 +0300)]
Fix error messages in sdb_shell_verbose
Dmitriy Nikiforov [Thu, 3 Aug 2017 15:25:47 +0000 (18:25 +0300)]
Add '--corpus' option to push seed corpus to device
Other changes:
* added 'artifacts' directory on device for fuzzing artifacts
Dmitriy Nikiforov [Thu, 3 Aug 2017 12:00:54 +0000 (15:00 +0300)]
Add support for dictionaries to 'publish' command
Dmitriy Nikiforov [Thu, 3 Aug 2017 11:42:55 +0000 (14:42 +0300)]
Change directories structure on device
Now it will be like this:
$ infra/built_targets.sh publish <target> <dest>
Directories tree:
<dest>/
` -- <target>/
| -- fuzzer1/
| ` -- fuzzer1
| -- fuzzer2/
| ` -- fuzzer2
. . .
Dmitriy Nikiforov [Thu, 3 Aug 2017 10:35:26 +0000 (13:35 +0300)]
Simplify rpms extraction on device
Dmitriy Nikiforov [Tue, 1 Aug 2017 14:56:50 +0000 (17:56 +0300)]
Simplify and make sdb wrappers accessible to all commands
Dmitriy Nikiforov [Tue, 1 Aug 2017 14:55:21 +0000 (17:55 +0300)]
Simplify search for specified target
Dmitriy Nikiforov [Tue, 1 Aug 2017 13:55:35 +0000 (16:55 +0300)]
Add sdb shell wrapper with 'printf'
Dmitriy Nikiforov [Tue, 1 Aug 2017 12:14:01 +0000 (15:14 +0300)]
Add '--with-asan' option to push the libasan package to device
Dmitriy Nikiforov [Tue, 1 Aug 2017 12:12:09 +0000 (15:12 +0300)]
Make GBS_ROOT variable accessible to all commands
Dmitriy Nikiforov [Mon, 31 Jul 2017 12:26:26 +0000 (15:26 +0300)]
Add 'publish' command to push built targets to emulator via sdb
Dmitriy Nikiforov [Tue, 8 Aug 2017 14:36:12 +0000 (17:36 +0300)]
Fix build artifacts clean-ups
* Replaced double-braces operators with 'test'
* Changed condition to not fail if directories do not exist
Dmitriy Nikiforov [Wed, 2 Aug 2017 20:08:35 +0000 (23:08 +0300)]
Add script for Jenkins RV job's build stage
Dmitriy Nikiforov [Wed, 2 Aug 2017 20:03:25 +0000 (23:03 +0300)]
Rename 'build_targets.sh' to 'tizen_fuzz.sh'
Dmitriy Nikiforov [Wed, 2 Aug 2017 18:54:27 +0000 (21:54 +0300)]
Add 'dicts' variable to existing targetspecs
Dmitriy Nikiforov [Wed, 2 Aug 2017 18:50:26 +0000 (21:50 +0300)]
Add '--dicts' option to include dictionaries specified in targetspec
This option will search for files specified in 'dicts' variable in
targetspec in the given directory and copy them to the built artifacts. If
there is no 'dicts' variable or it is empty this option will do nothing.
Dmitriy Nikiforov [Wed, 2 Aug 2017 15:02:34 +0000 (18:02 +0300)]
Clean previously built artifacts before starting a new build
Dmitriy Nikiforov [Wed, 2 Aug 2017 14:55:26 +0000 (17:55 +0300)]
Add '--noinit' option to build command to skip dependencies installation
Dmitriy Nikiforov [Wed, 2 Aug 2017 14:28:47 +0000 (17:28 +0300)]
Add functions for verbose 'git' and 'gbs' commands
Dmitriy Nikiforov [Mon, 31 Jul 2017 18:12:23 +0000 (21:12 +0300)]
Replaced -lpthread flag with -pthread in targets build scripts
Dmitriy Nikiforov [Mon, 31 Jul 2017 18:07:11 +0000 (21:07 +0300)]
Add missing COMMON_LDFLAGS to LDFLAGS in wgt-manifest-handlers/build.sh
Dmitriy Nikiforov [Mon, 31 Jul 2017 18:00:57 +0000 (21:00 +0300)]
Update targets build scripts to be used by infra/build_targets.sh
Updated targets:
* tizen-platform-config
* tpk-manifest-handlers
* xdgmime
Dmitriy Nikiforov [Mon, 31 Jul 2017 18:26:30 +0000 (21:26 +0300)]
Add '--include-all' option to default gbs build arguments
Dmitriy Nikiforov [Mon, 31 Jul 2017 18:24:22 +0000 (21:24 +0300)]
Fix exits for builds skipping in 'build' command script
sweet.kim [Mon, 31 Jul 2017 04:25:44 +0000 (13:25 +0900)]
Target functions for xdgmime (platform/core/appfw/xdgmime)
Fuzzed functions:
* xdg_mime_get_mime_type_for_data (data, len, result_prio)
* xdg_mime_get_mime_type_from_file_name (file_name)
Dmitriy Nikiforov [Fri, 28 Jul 2017 16:49:46 +0000 (19:49 +0300)]
Fix build-all command to properly fail on error with --logpath option
Dmitriy Nikiforov [Fri, 28 Jul 2017 13:37:39 +0000 (16:37 +0300)]
Replace 'git remote get-url' command for compatibility with older versions
Dmitriy Nikiforov [Thu, 27 Jul 2017 17:00:05 +0000 (20:00 +0300)]
Add '--only-target' option to build command
Dmitriy Nikiforov [Thu, 27 Jul 2017 16:32:59 +0000 (19:32 +0300)]
Separate build artifacts for different architectures
Also, this information is now reflected in 'list --long' command.
Dmitriy Nikiforov [Thu, 27 Jul 2017 16:11:20 +0000 (19:11 +0300)]
Add 'list' command script for listing all built targets
Dmitriy Nikiforov [Thu, 27 Jul 2017 14:55:40 +0000 (17:55 +0300)]
Add --spec option to build command for specification of custom targetspec
Dmitriy Nikiforov [Thu, 27 Jul 2017 14:54:10 +0000 (17:54 +0300)]
Move ARCH variable to 'build' command script
Dmitriy Nikiforov [Thu, 27 Jul 2017 14:44:07 +0000 (17:44 +0300)]
Add ability to set custom TIZEN_FUZZ_HOME via env variable and option -f
Environment variable $TIZEN_FUZZ_HOME is of lower priority then --fuzz-home
option.
Dmitriy Nikiforov [Thu, 27 Jul 2017 14:42:07 +0000 (17:42 +0300)]
Remove redundant export of VERBOSE variable
Dmitriy Nikiforov [Wed, 26 Jul 2017 17:07:26 +0000 (20:07 +0300)]
Mute mount/umount and git operations
Dmitriy Nikiforov [Wed, 26 Jul 2017 16:54:56 +0000 (19:54 +0300)]
Add GBS configurations for emulator64 and emulator32 platforms
Changes:
* Added gbs configs in 'infra/config' directory. One of these configs will
be used depending on the chosen architecture. Only emulator platforms
are supported now.
* Added '--clean', '--skip-srcrpm' and '--clean-repos' to default gbs
build options.
* Removed '--overwrite' and '--clean' options from 'build' and 'build-all'
subcommands as '--clean' is used by default now.
* Global '--verbose' option now adds '--debug' option to gbs build.
Dmitriy Nikiforov [Tue, 25 Jul 2017 20:00:16 +0000 (23:00 +0300)]
Add target specifications and rewrite build scripts
Build scripts are rewritten to be used by 'infra' scripts in automated
builds.
Dmitriy Nikiforov [Tue, 25 Jul 2017 19:59:47 +0000 (22:59 +0300)]
Add script for 'build-all' command
Dmitriy Nikiforov [Tue, 25 Jul 2017 19:59:07 +0000 (22:59 +0300)]
Add script for 'build' command
Dmitriy Nikiforov [Tue, 25 Jul 2017 19:56:53 +0000 (22:56 +0300)]
Add script for automated fuzzing targets builds
sweet.kim [Mon, 17 Jul 2017 07:14:38 +0000 (16:14 +0900)]
Fuzzing target for xdgmime
Fuzzed functions:
* xdg_mime_get_mime_type_for_data (data, len, result_prio)
* xdg_mime_get_mime_type_from_file_name (file_name)
Maria Guseva [Tue, 25 Jul 2017 14:43:05 +0000 (17:43 +0300)]
Fuzzing target for tizen-platform-config
Dmitriy Nikiforov [Tue, 18 Jul 2017 08:57:08 +0000 (17:57 +0900)]
Added constants from manifest_utils.cc to wgt-manifest.dict
Jaehong Lee [Mon, 17 Jul 2017 07:45:21 +0000 (16:45 +0900)]
Fuzzing target for tpk-manifest-handlers
Dmitriy Nikiforov [Fri, 7 Jul 2017 15:28:30 +0000 (18:28 +0300)]
Add dictionary for Tizen manifests for wgt-applications
This dictionary is a result of merged string literals from wgt-manifest-handlers
sources and a dictionary for XML format from the Chromium project:
https://chromium.googlesource.com/chromium/src/+/master/testing/libfuzzer/fuzzers/dicts/xml.dict