aboutsummaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
authorbloodstalker <thabogre@gmail.com>2018-09-11 20:46:29 +0000
committerbloodstalker <thabogre@gmail.com>2018-09-11 20:46:29 +0000
commit07298b03567f75a9fec7e7722dec731fbcc7fef4 (patch)
tree24daa803b72ac0b7b1cf3ecdaa8387d1c57c7d36 /test
parentupdate (diff)
downloadfaultreiber-07298b03567f75a9fec7e7722dec731fbcc7fef4.tar.gz
faultreiber-07298b03567f75a9fec7e7722dec731fbcc7fef4.zip
update
Diffstat (limited to 'test')
-rw-r--r--test/autowasm.c2
-rw-r--r--test/makefile4
2 files changed, 4 insertions, 2 deletions
diff --git a/test/autowasm.c b/test/autowasm.c
index 37bbbe5..87478c1 100644
--- a/test/autowasm.c
+++ b/test/autowasm.c
@@ -14,10 +14,12 @@
int main (int argc, char** argv) {
int wasm = open("./test.wasm", O_RDONLY);
wasm_lib_ret_t* lib_ret = read_aggr_wasm(wasm);
+ printf("finished reading\n");
printf("magic_number:%x\n", lib_ret->obj->magic_number_container->magic_number);
printf("version:%x\n", lib_ret->obj->version_container->version);
+ printf("fuck\n");
printf("type section id:%d\n", lib_ret->obj->W_Type_Section_container->id);
printf("type section payloadlength:%d\n", lib_ret->obj->W_Type_Section_container->payloadlength);
printf("type_section entry count:%d\n", lib_ret->obj->W_Type_Section_container->count);
diff --git a/test/makefile b/test/makefile
index 86f0a6b..4f2c90d 100644
--- a/test/makefile
+++ b/test/makefile
@@ -53,7 +53,7 @@ LD_FLAGS+=$(EXTRA_LD_FLAGS)
.PHONY:all clean help ASM SO TAGS
-all:$(TARGET)
+all:$(TARGET) $(TARGET)-dbg
everything:$(TARGET) A ASM SO $(TARGET)-static $(TARGET)-dbg TAGS $(TARGET)-cov
@@ -82,7 +82,7 @@ $(TARGET): $(TARGET).o read.o aggregate.o structs.o
$(TARGET)-static: $(TARGET).o read.o aggregate.o structs.o
$(CC) $^ $(LD_FLAGS) -static -o $@
-$(TARGET)-dbg: $(TARGET).odbg read.o aggregate.o structs.o
+$(TARGET)-dbg: $(TARGET).odbg read.odbg aggregate.odbg structs.odbg
$(CC) $^ $(LD_FLAGS) -g -o $@
$(TARGET)-cov: $(TARGET).ocov read.o aggregate.o structs.o