Commit graph

99 commits

Author SHA1 Message Date
Khairul Azhar Kasmiran
cbe820a2e0
log.level help: Don't show 0:DEBUG on Release builds (#6319)
* log.level help: Don't show `0:DEBUG` on Release builds
* Use `choco install python310` instead
2026-05-07 22:33:46 +08:00
Khairul Azhar Kasmiran
37d35d3d69
appveyor.yml: Install special py packages only on vs2017 (#6114) 2026-03-28 14:58:31 +08:00
Khairul Azhar Kasmiran
e1542ed0e5
appveyor.yml: Remove BUILD_DIR (#6110) 2026-03-27 21:03:20 +08:00
Khairul Azhar Kasmiran
c8f69ceafb
appveyor.yml: Test on APPVEYOR_BUILD_WORKER_IMAGE to reduce repetition (#6102) 2026-03-27 06:07:57 +08:00
Khairul Azhar Kasmiran
2c306c53ce
vs2017: Patch retry mechanism into meson git calls (#6078) 2026-03-24 13:45:14 +08:00
NOT XVilka
b1666054da
ci: fix AppVeyor VS2017 certificate error (#5763)
* ci: fix AppVeyor VS2017 certificate error
* ci: install Python 3.10 for AppVeyor VS2017 jobs

---------

Co-authored-by: Anton Kochkov <anton.kochkov@gmail.com>
2026-01-11 21:36:02 +08:00
Giovanni
0b33d19d60
Optimize tests to recover some CI runtime (#5601)
* Optimize cmd_print tests
* Fix nullderef in bfile_string.c and optimize cmd_i
* Disable esil runs on appveyor
* Fix obviously wrong time scale in rz-test
* Add more info about -e option when in log mode or verbose
2025-12-11 13:46:31 +08:00
Anton Kochkov
6c6b541885
ci: install tomli for meson (#4590) 2024-08-15 20:43:00 +08:00
Aditya
b82eadc2e4
Add simple POST-command and changed upload path (remote) (#4106) 2024-01-17 15:17:36 +08:00
Riccardo Schirone
1311095ce9 Revert "ci: downgrade Meson to 1.2.3 (#3991)"
This reverts commit 6aeea82800.
2023-12-01 23:32:17 +08:00
Anton Kochkov
6aeea82800
ci: downgrade Meson to 1.2.3 (#3991) 2023-11-21 09:55:29 +08:00
Dhruv Maroo
714c338e0f
Remove designated array initializers in rz_analysis.h (#3876)
* Do not use designater array initializer because MSVC complains
* Add new Appveyor CI test for including C headers from C++ files

    * Need to test whether Rizin headers can be included in C++ when
      using MSVC, needed for Cutter to build successfully
    * Changed the name of `build-cpp` CI job in GitHUb jobs to
      `build-cpp-linux` to make it obvious that it only performs the
      test for Linux
2023-09-26 07:36:40 +08:00
Anton Kochkov
d2de771c3d Use meson setup <dir> instead of meson <dir> 2023-04-26 20:01:47 +08:00
Dhruv Maroo
1532342358 Add --print-errorlogs flag meson test for Windows jobs 2022-03-06 16:54:44 +01:00
Khairul Azhar Kasmiran
f50543ca28
Add test for case-insensitivity of #2236 (#2245)
* Add test for case-insensitivity of #2236
* Add `-c core.symlinks=true` to AppVeyor's `git clone rizin-testbins`
2022-01-25 17:25:19 +08:00
Anton Kochkov
f8c5a29c32
Switch to Visual Studio 2022 in AppVeyor (#1993) 2022-01-14 11:36:08 +01:00
Anton Kochkov
1b2748604e
Fix the RZ_BIN_PREFIX test for Windows (#2189)
* Fix the RZ_BIN_PREFIX test for Windows
* Do not use previous VS2019 image
2022-01-09 13:47:38 +08:00
Riccardo Schirone
6f40dfe493
Move remaining things from shlr/ to meson subprojects (#2126)
* Move binrz meson directives to binrz/ dir

* Move rizin-shell-parser to a subproject

* Move bochs to a meson subproject

* Move rzqnx to meson subproject

* Move winkd to a meson subproject

* Move rzar to a meson subproject

* Move rzw32dbg_wrap to a meson subproject

* Move ptrace-wrap to a meson subproject

* Move rzgdb to a meson subproject

* Rename w32dbg_wrap to rzw32dbg_wrap

* Update CODEOWNERS

* Remove old references to shlr

* Move shlr/heap stuff in core and remove shlr/arm

* Move spp to a meson subproject

* Remove last references to shlr

* Remove use_webui option

* Move include files directives to librz/include/meson.build

* Move librz meson directives into librz/meson.build

* Handle d/ directories inside the specific module meson.build

* Move plugins listing to specific module meson.build

* Move rzheap to its own subproject

* Fix js linter and licenses

* Use meson.override_dependency for all rz_ modules
2021-12-22 09:20:39 +08:00
Riccardo Schirone
af65352aa1
Move files to generate windows installer under dist/windows (#1765) 2021-10-02 13:53:13 +02:00
Riccardo Schirone
673acfcd2f
Use python3 to use encoding= in open() function (#1558) 2021-08-31 12:18:14 +08:00
Anton Kochkov
3c59df7e98
Refactor RzTypes to use structs instead of SDB + New Tree-Sitter based C Parser (#1047)
- Removed oldshell version of `t` (types) commands
- Removed `tk` command because types storage switched to the hashtable
- Added `tfc` command to show the calling convention of the function or set it
- Added `tsl` (RZ_OUTPUT_MODE_LONG) to show structure members' sizes and offsets
- Added `tul` (RZ_OUTPUT_MODE_LONG) to show union members' sizes
- Switched the types storage to the hashtable instead of SDB
- Added load and export from/to SDB for standard type libraries and serialization for Projects
- Changed all `char *type` occurences to the proper `RzType`
- Added `RzCallable` type for the function/class method types
- Changed all function types API to use the `RzCallable` API
- Switched the function types (`RzCallable`) storage to the hashtable instead of SDB
- Added a connection between `RzAnalysisFunction` and `RzCallable` - `rz_analysis_function_derive_type()` API function to derive new `RzCallable` type from the `RzAnalysisFunction` even if it doesn't exist in the RzTypeDB.
- Moved type links to the RzAnalysis where they belong
- Removed TCC and MPC-based parsers
- Added Tree-Sitter-based parser for C grammar (see `librz/type/parser/*`)
- Reworked type databases in `librz/analysis/d/` to be consistent with C standard, libc, platform-specific definitions
- Switched the type links from `char *` to `RzType`
- Switched the type links from SDB to the hashtable
- Added concept of the "type paths", e.g. `a.b[20].c` where `b` is a member of `a` (`a` is either structure or a union) and `c` is a member of `b`, and `b` is an array where we take 20-th element.
- Added concept of the typeclasses (a bit similar to Haskell) for numerical types: `None` (the most generic one), `Num` (includes `Integral` and `Floating`), `Integral` (includes `Signed Integral` and `Unsigned Integral`), `Floating`.
- Added concept of type equality (`rz_types_equal(a, b)` API function)
- Added Doxygen documentation to every API function in the `librz/type/*`.
- Updated the project format from **V2** to **V3**, added migration.
2021-07-20 01:46:45 +08:00
Giovanni
82e7917294
Refactoring Hash (#1082)
* Added authors and licenses and plugin access to crypto related files
* removed `rz_hash` and related files
* introduced `rz_msg_digest_*` with plugins
* updated all old methods with newer ones.
* added HMAC support to `rz-hash` (moved key option under `-K`)
* removed wrong algorithms on `woD`/`woE`
* fixed parity digest size
* fixed the behaviour on all hash functions
* added unit test for hash
* optimized code for HMAC key calculation
* removed hash legacy tests
2021-05-02 20:47:17 +08:00
Khairul Azhar Kasmiran
9f8f765578
Add test for bb overlapping fcn start (#643)
* Add test for bb overlapping fcn start

* Run tests on test changes by adding test/ to whitelist in ci.yml, .appveyor.yml and tcc.yml
2021-02-17 19:37:47 +08:00
Alexis Ehret
da89fffaa8
Fix appveyor filtering (#628) 2021-02-15 16:01:53 +01:00
Anton Kochkov
984d185598 Enable AppVeyor back 2021-02-15 22:21:55 +08:00
Alexis Ehret
3f71f45c53 Add filter step for appveyor.yml 2021-02-13 20:36:29 +01:00
Riccardo Schirone
f8291ee3c1
Switch to meson subprojects and wraps
* Remove tree-sitter/sdb git submodules and move them to meson subprojects/wraps
* Use meson subprojects/wraps to get capstone
* Remove capstone patches as they are already applied to rizinorg/capstone repository
* Use meson from master branch to create the release tarball, as all released versions so far have a bug that prevent wrap-git to be patched correctly when creating the tarball with meson dist
* Add check_meson_subproject script to do a quick check if the currently downloaded subprojects are updated
* Add subprojects_check meson option to skip the check_meson_subproject script
* Update documentation to remove references to git submodules.
2021-02-03 14:31:11 +01:00
Riccardo Schirone
f3cf8af914 Enable unit tests on Windows Appveyor 2021-01-03 11:42:38 +01:00
Riccardo Schirone
a7fd3fa3c6 Use mu_main to reduce boilerplate in unit tests
* Disable colors on Windows because terminal looks bad otherwise
* Use environment on Windows to set PATH and make sure unit tests use
  the compiled libraries and not the installed ones
* Define ssize_t on Windows as well by using SSIZE_T

Update test_analysis_block.c

Update test_intervaltree.c

Update test_unum.c
2021-01-03 11:42:38 +01:00
Riccardo Schirone
69f3da16d0
rz_sys_system should not depend on LIBC_HAVE_FORK (#226) 2020-12-21 09:15:25 +01:00
Riccardo Schirone
306ca474c4
Always run appveyor (#225) 2020-12-19 12:05:00 +01:00
Riccardo Schirone
9706d12ba2 Do not use LicenseLocation when creating Win installer 2020-12-17 18:54:16 +01:00
Anton Kochkov
73ab3594c5 Run ASAN and AppVeyor builds for imported patches 2020-12-14 11:23:54 +01:00
Khairul Azhar Kasmiran
4db5191a0a Run AppVeyor on *-windows branches as well 2020-12-10 17:26:53 +08:00
Riccardo Schirone
a8b253acf2
Download submodules in appveyor (#139)
* Download submodules in appveyor
* Set rz-pipe url to git

Co-authored-by: Florian Märkl <info@florianmaerkl.de>
2020-12-09 16:25:07 +08:00
Florian Märkl
b42bc69d3c
Revert temporary changes 2020-12-08 15:55:17 +01:00
GustavoLCR
f820a489f6 Add option to log r2r test results and publish it in the CI (#17964) ##test 2020-11-24 14:51:44 +01:00
Riccardo Schirone
9ce5003ca6
Create RzCmdDesc generator from YAML file ##newshell
* Create RzCmdDesc generator from YAML file

The commands tree can be entirely described in a YAML file, that is
parsed at build-time and generates cmd_descs.c/cmd_descs.h files. The
developer then just needs to provide the handler with the proper name to
make sure things work.

* Add PyYAML to CI jobs
2020-11-16 09:36:51 +01:00
Riccardo Schirone
99c1edad03
Make appveyor use meson directly ##build (#85)
* Use RzCore, not RCore
* Disable continuous windows release
2020-11-13 23:46:47 +01:00
Florian Märkl
89cecda36e
Switch some Git URLs in AppVeyor ssh (#61) 2020-11-02 18:01:38 +01:00
Florian Märkl
8ea55d2a37 Enable AppVeyor 2020-11-01 15:46:02 +01:00
Khairul Azhar Kasmiran
8bd96f1068 Go back to previous Visual Studio 2019 image for Windows tests (#17859) 2020-10-30 10:44:38 +01:00
Riccardo Schirone
502e91aff7
Rename R_ and R2_ to RZ_ (#8)
* Rename R2_ -> RZ_
* Rename R_ -> RZ_
* Rename R2R_ -> RZ_TEST_
* Rename R2R defines and types to RZ_TEST/RzTest
* Keep R_ for REIL registers
2020-10-02 16:09:13 +02:00
Riccardo Schirone
721609a17b
Rename to rizin (#2) 2020-10-01 16:13:03 +02:00
yossizap
a54f9363e4
Use meson install instead of manual installation in meson.py (#17424)
* Use meson install instead of manual installation in meson.py
* Update AppVeyor and docs to use the new meson.py flag format
* Meson.py should use --prefix for install paths and --install is a boolean for Windows and Unix now.
* Removed windows specific restrictions from meson.py
* Ensure that the prefix path is an absolute path
* Fix install options syntax
* Added an optional rootdir path for the meson setup command

Co-authored-by: yossizap <yossizap@users.noreply.github.com>
2020-08-11 12:33:15 +08:00
Khairul Azhar Kasmiran
896ba91e1e
#!pipe: Fix stray command output on Windows and add r2pipe.py test (#17156) 2020-06-30 17:41:39 +08:00
Khairul Azhar Kasmiran
a103293ec4
Unpin AppVeyor's Meson ##build (#16925)
* Unpin AppVeyor's Meson
* Don't use absolute path from meson.current_source_dir() with static_library()
2020-05-20 11:55:15 +08:00
Khairul Azhar Kasmiran
4d180b9b0b
Fix AppVeyor build by fixing Meson version (#16728) 2020-04-27 13:09:09 +02:00
pancake
9c2641d2e4 Fix appveyour testsuite path 2020-04-13 21:15:43 +02:00
Florian Märkl
5c31876093
R2R for Windows (#16410) ##test 2020-04-06 17:40:46 +02:00