From 566eebe08698f1671fb3da65ff900743a5980a5c Mon Sep 17 00:00:00 2001 From: Thomas Nilefalk Date: Wed, 12 Jun 2024 09:10:12 +0200 Subject: [PATCH] [tests] Un-server-driverify move_c_function (still not working, though) --- tests/test_move_c_function/Makefile | 12 ++++++------ tests/test_move_c_function/{source => }/source.c | 0 tests/test_move_c_function/{source => }/target.c | 0 3 files changed, 6 insertions(+), 6 deletions(-) rename tests/test_move_c_function/{source => }/source.c (100%) rename tests/test_move_c_function/{source => }/target.c (100%) diff --git a/tests/test_move_c_function/Makefile b/tests/test_move_c_function/Makefile index 4ec50a8b..701cc19e 100644 --- a/tests/test_move_c_function/Makefile +++ b/tests/test_move_c_function/Makefile @@ -1,8 +1,10 @@ include ../Makefile.boilerplate -$(TEST): - @-$(EDIT_SERVER_DRIVER) commands.input $(EXTRA) > output.tmp +ARGUMENTS = -xrefactory-II -refactory -rfct-move-function -commentmovinglevel=0 -movetargetfile=target.c -rfct-param1=3 -olcursor=32 source.c + +$(TEST): .c-xrefrc + @$(COMMAND) > output.tmp @$(NORMALIZE) output.tmp > output $(VERIFY) @@ -12,7 +14,5 @@ trace: $(TEST) clean: rm -rf .c-xrefrc CXrefs output.log output.tmp -debug: - $(EDIT_SERVER_DRIVER) commands.input $(EXTRA) --delay 5 > output.tmp & - sleep 1 - sudo gdb -pid `pgrep -a c-xref | grep -v emacs | awk '{ print $$1 }'` -ex 'br moveFunction' -ex 'continue' +command: + echo $(COMMAND) diff --git a/tests/test_move_c_function/source/source.c b/tests/test_move_c_function/source.c similarity index 100% rename from tests/test_move_c_function/source/source.c rename to tests/test_move_c_function/source.c diff --git a/tests/test_move_c_function/source/target.c b/tests/test_move_c_function/target.c similarity index 100% rename from tests/test_move_c_function/source/target.c rename to tests/test_move_c_function/target.c