Khairul Azhar Kasmiran
0e1fa7c341
Do partial =h test on Windows (without /cmd and using curl) ( #17729 )
...
* Properly default http.root on Windows
* Do partial =h test on Windows (without /cmd and using curl)
2020-09-29 21:23:26 +08:00
bazuchan
9d61f554f5
Set R2_* variables by calling r2 -H only once ( #17650 ) ##r2pm
2020-09-18 13:39:05 +02:00
Khairul Azhar Kasmiran
d9057505dc
Set RPATH/RUNPATH on r2 libs too if local ( #17639 )
2020-09-15 09:16:14 +02:00
Khairul Azhar Kasmiran
fe5b80d615
Fix asan r2pipe test by updating libasan and using LD_PRELOAD ( #17594 )
...
* Set LD_PRELOAD for unit tests
* Declare failed debug tests as broken if no assertion or Sanitizer in output
* Check for ASAN=1 in cmd_pipe test
* Set asan: true in the GitHubCI matrix
* Fix ttyname-related runtime error
* Upgrade asan build to Ubuntu 20.04
* Quick fix for reg/arena.c runtime error
2020-09-11 18:47:27 +08:00
Riccardo Schirone
3f4079c4ca
Add support for TIMEOUT key for cmd tests ( #17582 ) ##r2r
2020-09-04 15:17:17 +02:00
Khairul Azhar Kasmiran
7066f58d8c
r2r: Set cmd test to NULL on load failure ( #17512 )
2020-08-25 18:21:38 +08:00
Khairul Azhar Kasmiran
52668c02d2
r2r: Check whether test has EXPECT or EXPECT_ERR ( #17508 )
2020-08-24 18:29:37 +08:00
Khairul Azhar Kasmiran
10b2e9a797
r2pm: Remove trailing slash from R2PM_GITDIR ( #17482 )
2020-08-17 22:34:57 +08:00
Khairul Azhar Kasmiran
5d4680fc01
Ensure cloned pkg dir matches the pkg name ( #17472 ) ##r2pm
2020-08-17 10:53:39 +02:00
pancake
8efd721dba
Fix Cydia/iOS packaging and compilation issues ##build ( #17342 )
2020-08-14 13:17:32 +08:00
Khairul Azhar Kasmiran
70f88cb361
r2pm: Allow reuse of gitdir-cleaning code in package scripts ( #17442 )
2020-08-13 22:03:43 +08:00
Florian Märkl
68a1db448d
Merge everything time-related in r_time.h ( #17445 )
2020-08-12 18:54:49 +02:00
Florian Märkl
8c94f34e90
Add r_sys_now_mono() and use in r2r ##util ( #17276 )
2020-08-11 20:26:06 +02:00
Khairul Azhar Kasmiran
7ed581d2de
r2pm: Allow package script to declare cleaning is done ( #17411 ) ##tools
2020-08-08 18:37:41 +08:00
Khairul Azhar Kasmiran
613d480d10
r2pm: Don't clone while cleaning ( #17406 )
2020-08-06 18:37:07 +08:00
Riccardo Schirone
48c30dfd99
Support compilation with meson on old systems like CentOS6/DebianWheezy ##build ( #17345 )
...
* Compile tree-sitter and newshell parser with gnu99 if possible ##meson
* Make sure to use `-lrt` when needed to use clock_gettime ##meson
2020-07-27 12:25:06 +08:00
Khairul Azhar Kasmiran
0f0ffee510
r2pm: Support cleaning of package cloned to <package>.git ( #17357 )
2020-07-27 12:24:16 +08:00
pancake
2c48b60f1d
Fix sys/static.sh after 2d160f250918609fa8f399a33f003cedaa85d888 ( #17336 ) ##build
2020-07-24 11:55:53 +02:00
pancake
5ef1e7e41c
Fix missing grep glitch in r2pm ( #17334 )
...
Co-authored-by: pancake <pancake@nopcode.org>
2020-07-23 12:13:43 +08:00
Riccardo Schirone
2d160f2509
Avoid sdb double headers ( #17249 ) ##build
...
* Avoid duplication of SDB headers in libr/include
SDB is an external project and as such it should live in shlr. However,
for simplicity in dealing with the include flags, the SDB headers were
copied in libr/include as well. This patch just keeps the SDB files
confined in shlr/sdb and make sure various r_* libs use the headers from
there.
* Fix pkgconfig file generation
2020-07-21 10:28:43 +02:00
Khairul Azhar Kasmiran
d970c64292
Move r2r diffchar code into r_util ( #17316 )
2020-07-20 00:44:27 +08:00
Khairul Azhar Kasmiran
47c774ad0e
r2r: Use Needleman-Wunsch to diffchar ( #17248 )
2020-07-17 20:58:06 +08:00
Riccardo Schirone
0955b27c9e
Reintroduce --without-r2r configure option ( #17294 ) ##build
...
This reverts commit 8758fa6b40b83d74abf043e2dcbbafc19846ff82.
2020-07-17 13:00:14 +02:00
Riccardo Schirone
e3b67f124c
Release pipeline with GitHub Actions ( #17192 )
...
* Make sure meson can build with `system` = `android`.
* Add support for binr/blob in meson build
* Create release GitHub Actions workflow
* Add publish-docker-image job
* Also create Ubuntu packages and ship static windows zip
2020-07-09 12:07:45 +08:00
Khairul Azhar Kasmiran
0ff69a5973
Use diff-so-fancy colors in r2r diffs ( #17211 )
...
* Use diff-so-fancy colors in r2r diffs
* Define insert/delete colors at top of file
2020-07-06 15:34:03 +08:00
GustavoLCR
25a043e802
Fix r2r crash on Windows if test doesn't have CMDS ##tests ( #17181 )
...
* Fix r2r crash on Windows if test doesn't have CMDS
* Throw error on load if test it doesn't have CMDS
2020-07-06 13:50:18 +08:00
Riccardo Schirone
d6c9bd4542
Add support for binr/blob and fix android build ##meson ##build ( #17150 )
...
* Make sure meson can build with `system` = `android`.
* Add support for binr/blob in meson build
* Add also r_util as dependency
* Create sdb_version.py to get the SDBVER value from config.mk
* Set unknown sdb version if something fails
2020-07-05 10:53:37 +08:00
pancake
37e10ee7b0
Initial support for git tags in r2pm ##r2pm ( #17178 )
...
* Initial support for git tags in r2pm ##r2pm
* Use `r2-` as tag prefix instead of `v`
Co-authored-by: pancake <pancake@nopcode.org>
2020-07-02 11:56:08 +08:00
Zi Fan
a952636164
Fix non-working json tests in r2r ##test ( #17083 )
2020-06-21 21:23:37 +02:00
Khairul Azhar Kasmiran
12d12a5ed4
r2r: For diffchar, use --word-diff=porcelain instead ( #17087 )
2020-06-18 18:12:34 +08:00
Khairul Azhar Kasmiran
ca49982a63
r2r: Support char diffing ( #17066 )
2020-06-15 18:55:03 +02:00
pancake
bd9a604a87
Check for return values in about ~50 method calls ( #17025 )
2020-06-15 11:24:43 +02:00
pancake
160fc95e66
Use (void) instead of () in function signatures ( #17026 ) ##refactoring
...
* Use (void) instead of () in function signatures
* Add test to avoid further contributions to commit the same mistake
2020-06-14 16:08:32 +02:00
pancake
84ecf9fff2
Fix all the coverities detected last month ( #17060 )
...
* Fix all the coverities detected last month
* Fix one more cov
* Fix build
* refix build
Co-authored-by: pancake <pancake@nopcode.org>
2020-06-14 13:21:57 +02:00
Khairul Azhar Kasmiran
ddeb513374
r2r: Don't trim diff lines ( #17059 )
2020-06-14 13:06:58 +08:00
Khairul Azhar Kasmiran
fcedd4d21e
r2r: Remove diff header and colorize @@ line ( #17041 )
2020-06-11 13:03:48 +08:00
Khairul Azhar Kasmiran
54950e39fa
r2r: Use git diff on Windows ( #17024 ) ##windows
2020-06-09 23:10:56 +08:00
Khairul Azhar Kasmiran
1fef151d37
r_cons: Save and restore the active code page on Windows ( #16998 )
...
* r_cons: Save and restore the active code page on Windows
* Use r_sys_cmdf() instead
2020-06-03 18:54:55 +08:00
pancake
b49609af7f
Fix static build ( #16926 )
2020-05-20 00:35:06 +08:00
Francesco Tamagni
c946d9c0f5
Fix memleak in r2r
2020-05-17 21:05:37 +02:00
Khairul Azhar Kasmiran
3662290b45
meson: Build rasign2 ( #16831 )
2020-05-17 00:36:43 +08:00
Dennis Goodlett
ae04a73774
Move rasign2 into RMain ( #16819 ) ##tools
...
* Quote to prevent cmd injection
* Added -q,-j,-h and -v options
* Remove unneeded includes
Co-authored-by: Dennis Goodlett <dennis@hurricanelabs.com>
2020-05-16 12:36:41 +02:00
Khairul Azhar Kasmiran
7efe61e423
r2r.c: Replace \x## emoji seqs with #defines ( #16818 )
...
* r2r.c: Replace \x## emoji seqs with actual emoji
* #define emojis instead
2020-05-16 12:05:53 +08:00
Florian Märkl
45be547b15
Fix r2r -i when fixing multiple tests ( #16817 )
2020-05-14 15:10:03 +02:00
Khairul Azhar Kasmiran
9f2a98b314
Windows r2r: Actually display emojis (on consoles that support them) ( #16807 )
2020-05-12 13:21:57 +08:00
Khairul Azhar Kasmiran
a391b398d6
Reduce flicker when doing r2r -V (for some consoles)
2020-05-10 14:49:24 +02:00
Florian Märkl
d586793bf5
Fix r2r -i fix for single-line EXPECT=
2020-05-02 17:44:18 +02:00
Riccardo Schirone
a29f0ccce5
Add CI job for CentOS 6 build ( #16712 )
...
* Fix re-definition of RAnalBlockCb and RAnalAddrCb
* Small compilation fixes for gcc-4
* Check PTRACE_GETREGSET before using it
* Add GH workflow to run on centos:6 for prerelease branches
* Fix configure.acr
2020-04-29 19:02:02 +08:00
pancake
62809d9ad3
Fix autodetection dbdir in r2r @unit ##tests ( #16644 )
2020-04-27 16:52:23 +02:00
Khairul Azhar Kasmiran
f8a8691522
r2r: Enable ANSI esc seqs on Windows ( #16714 )
2020-04-26 04:43:40 +08:00