mirror of
https://github.com/aljazceru/lightning.git
synced 2025-12-19 23:24:27 +01:00
test: move mockup script outside daemon/
Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
This commit is contained in:
2
Makefile
2
Makefile
@@ -359,7 +359,7 @@ update-mocks/%: %
|
|||||||
head -n $$START $< > $$BASE.new; \
|
head -n $$START $< > $$BASE.new; \
|
||||||
(cat $$BASE.new; tail -n +$$END $<) > $$BASE.test.c; \
|
(cat $$BASE.new; tail -n +$$END $<) > $$BASE.test.c; \
|
||||||
if ! $(CC) $(CFLAGS) $$BASE.test.c -o $$BASE.out $(HELPER_OBJS) $(CCAN_OBJS) $(LDLIBS) 2>$$BASE.err; then \
|
if ! $(CC) $(CFLAGS) $$BASE.test.c -o $$BASE.out $(HELPER_OBJS) $(CCAN_OBJS) $(LDLIBS) 2>$$BASE.err; then \
|
||||||
daemon/test/scripts/mockup.sh < $$BASE.err >> $$BASE.new; \
|
test/scripts/mockup.sh < $$BASE.err >> $$BASE.new; \
|
||||||
sed -n 's,.*Generated stub for \(.*\) .*,\t\1,p' < $$BASE.new; \
|
sed -n 's,.*Generated stub for \(.*\) .*,\t\1,p' < $$BASE.new; \
|
||||||
fi; \
|
fi; \
|
||||||
tail -n +$$END $< >> $$BASE.new; mv $$BASE.new $<; \
|
tail -n +$$END $< >> $$BASE.new; mv $$BASE.new $<; \
|
||||||
|
|||||||
Reference in New Issue
Block a user