Add r2pm -t for travis purposes

This commit is contained in:
pancake 2015-10-23 03:23:12 +02:00
parent 6c4bfb94b1
commit 2b5661c46a
4 changed files with 20 additions and 11 deletions

View File

@ -118,6 +118,15 @@ case "$1" in
else
echo "Cannot find file"
fi
;;
-t|test)
TYPE=XX
JOB=86946292
[ -n "$2" ] && TYPE="$2"
[ -n "$3" ] && JOB="$3"
curl -s https://api.travis-ci.org/jobs/${JOB}/log.txt | \
grep -C 1 $TYPE | grep '\[ ' | sed -e 's,\[ \],['$TYPE'],g'
;;
-l|list)
R2PM_List "$2"
@ -146,6 +155,7 @@ case "$1" in
echo " -i,install <pkgname> r2pm -i baleful"
echo " -u,uninstall <pkgname> r2pm -u baleful"
echo " -l,list list installed pkgs"
echo " -t,test FX,XX,BR BID check in travis regressions"
echo " -s,search [<keyword>] search in database"
echo " -v,version show version"
echo " -h,help show this message"

View File

@ -177,11 +177,8 @@ R_API void r_flag_list(RFlag *f, int rad, const char *pfx) {
}
static RFlagItem *evalFlag (RFlag *f, RFlagItem *item) {
if (item) {
if (item->alias) {
ut64 res = r_num_math (f->num, item->alias);
item->offset = res;
}
if (item && item->alias) {
item->offset = r_num_math (f->num, item->alias);
}
return item;
}
@ -189,8 +186,7 @@ static RFlagItem *evalFlag (RFlag *f, RFlagItem *item) {
R_API RFlagItem *r_flag_get(RFlag *f, const char *name) {
RList *list = r_hashtable64_lookup (f->ht_name, r_str_hash64 (name));
if (list) {
RFlagItem *item = r_list_get_top (list);
return evalFlag (f, item);
return evalFlag (f, r_list_get_top (list));
}
return NULL;
}
@ -524,15 +520,12 @@ R_API void r_flag_unset_all (RFlag *f) {
}
static void unflag(RFlag *f, RFlagItem *me) {
RFlagItem *item;
RListIter *iter;
r_list_delete_data (f->flags, me);
}
R_API int r_flag_unset(RFlag *f, const char *name, RFlagItem *p) {
ut64 off;
RListIter *iter2;
RFlagItem *item2, *item = p;
RFlagItem *item = p;
ut64 hash = r_str_hash64 (name);
RList *list2, *list = r_hashtable64_lookup (f->ht_name, hash);
// list = name hash

View File

@ -14,6 +14,8 @@ Allows to install, update, uninstall and discover plugins and tools that can be
Show information about repository and installed packages
.It Fl i, Cm install Ar pkgname
Install a package
.It Fl t, Cm test [OK|FX|BR|XX] Cm [build-id]
Show last build + testsuite run from travis, greps for errors
.It Fl u, Cm uninstall Ar pkgname
Uninstall a package
.It Fl l, Cm list

View File

@ -2,7 +2,9 @@
ASAN="address leak memory undefined"
ASAN="address"
printf "\033[32m"
echo "========================================================================="
printf "\033[33m"
echo "ASAN build script can be configured with the ASAN environment variable."
echo "Use one of the following words to specify which build flags to use:"
echo " - address - set by default, detect overflows"
@ -16,7 +18,9 @@ echo "For example:"
echo " $ ASAN='leak memory address' sys/asan.sh"
echo "Current value:"
echo " ASAN=${ASAN}"
printf "\033[32m"
echo "========================================================================="
printf "\033[0m"
sleep 1
export LDFLAGS="-lasan"