try to debug Makefile, failed to build libytest.so via tests

This commit is contained in:
2025-06-26 06:34:52 +02:00
parent 6cee75f3f3
commit a1fe7c983d
11 changed files with 30 additions and 16 deletions
+3 -2
View File
@@ -4,7 +4,8 @@ CC=gcc
LDFLAGS=-lpthread
ROOT_DIR=$(shell pwd)
INCLUDE_DIR=$(ROOT_DIR)
CFLAGS=-I$(INCLUDE_DIR)
PERMDIR=$(ROOT_DIR)/../../../ypermutation_t
CFLAGS=-I$(INCLUDE_DIR) -I$(PERMDIR)/src/
SRC_DIR=$(ROOT_DIR)
SRC=$(wildcard src/*/*.c)
OBJ=$(SRC:.c=.o)
@@ -25,7 +26,7 @@ TESTSRC_O=$(TESTSRC:.c=.o)
all: $(EXEC)
$(EXEC): $(EXECSRC) $(OBJ)
$(CC) -o $@ $^ -I$(INCLUDE_DIR) $(LDFLAGS)
$(CC) -o $@ $^ $(CFLAGS) $(LDFLAGS)
$(TESTSRC_O): $(TESTSRC) $(TOOLSRC_O)
+1 -1
View File
@@ -90,7 +90,7 @@ TEST(expect){
int b = 6;
EXPECT_EQ(a,b);
//SKIP();
SKIP("on skip eq string\n");
SKIP("%s\n","on skip eq string");
EXPECT_EQ_TYPE_STRING("hello","hello");
float f1 = 1.00019999, f2=1.00019999;
EXPECT_EQ_TYPE_FLOAT(f1,f2);