[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]
Re: [tor-bugs] #20218 [Core Tor/Tor]: Fix and refactor and redocument routerstatus_has_changed
#20218: Fix and refactor and redocument routerstatus_has_changed
-------------------------------------------------+-------------------------
Reporter: nickm | Owner: (none)
Type: defect | Status:
| needs_revision
Priority: Medium | Milestone: Tor:
| 0.4.3.x-final
Component: Core Tor/Tor | Version:
Severity: Normal | Resolution:
Keywords: ipv6, 029-proposed, tor-control, | Actual Points: 0.5
easy, spec-conformance, review-group-31, |
034-triage-20180328, 034-removed-20180328 |
Parent ID: | Points: .1
Reviewer: nickm, teor | Sponsor:
-------------------------------------------------+-------------------------
Comment (by maurice_pibouin):
I would actually love some help !
I am a complete beginner in C, so I don't know how to go around with
writing the makefile for my test (just to see if my tests work). I have
follwed tutorials on how to write makefiles, but the issue is that when I
include "feature/nodelist/networkstatus.h" in my test file, it says :
{{{
networkstatus.h:15:10: fatal error: lib/testsupport/testsupport.h: No such
file or directory
#include "lib/testsupport/testsupport.h"
}}}
The makefile I have so far is :
{{{
CC = gcc
CFLAGS = -I.
DEPS = feature/nodelist/networkstatus.h feature/nodelist/routerstatus_st.h
%.o: %.h $(DEPS)
$(CC) -c -o $@ $< $(CFLAGS)
test_routerstatus_has_changed: networkstatus.o routerstatus_st.h
$(CC) -o hellomake networkstatus.o routerstatus_st.o
}}}
I temporarily placed it in the "src/test" directory.
What steps should I take to write my test makefile ? Since I don't want to
go through "making" the whole Tor project everytime I want to see if my
test file works.
Also, is this the right place to ask for help ? It feels weird posting
questions on an issue.
Thanks !
--
Ticket URL: <https://trac.torproject.org/projects/tor/ticket/20218#comment:43>
Tor Bug Tracker & Wiki <https://trac.torproject.org/>
The Tor Project: anonymity online
_______________________________________________
tor-bugs mailing list
tor-bugs@xxxxxxxxxxxxxxxxxxxx
https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-bugs