Skip to content

Commit

Permalink
Tweak environment to build and run tests on custom paths
Browse files Browse the repository at this point in the history
  • Loading branch information
radare authored and trufae committed May 11, 2024
1 parent 66a45dd commit 524bf3b
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 2 deletions.
1 change: 1 addition & 0 deletions libr/cons/pal.c
Original file line number Diff line number Diff line change
Expand Up @@ -665,6 +665,7 @@ R_API int r_cons_pal_len(void) {
return keys_len;
}

// R2_600 TODO: rename to RCons.pal_reload() // pal_apply() maybe?
R_API void r_cons_pal_update_event(void) {
__cons_pal_update_event (r_cons_context ());
}
Expand Down
8 changes: 6 additions & 2 deletions test/Makefile
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
include ../config-user.mk
RUNTEST=r2r -L -o results.json

all: r2r-tests
Expand Down Expand Up @@ -73,7 +74,10 @@ install:
uninstall:

unit unit-tests: bins
$(MAKE) rc
$(MAKE) -C unit run
PATH="$(BINDIR):$(PATH)" $(MAKE) rc
PKG_CONFIG_PATH=$(PREFIX)/lib/pkgconfig \
LD_LIBRARY_PATH=$(PREFIX)/lib \
PATH="$(BINDIR):$(PATH)" \
$(MAKE) -C unit run

.PHONY: all clean unit install uninstall r2r-tests fuzz-tests keystone swf dwarf yara unit-tests
1 change: 1 addition & 0 deletions test/unit/test_egg.c
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
#define _GNU_SOURCE
#include <sys/mman.h>
#include <string.h>
#include <r_egg.h>
Expand Down

0 comments on commit 524bf3b

Please sign in to comment.