Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

make test failed #54

Open
PaulPuschmann opened this issue Mar 6, 2023 · 7 comments
Open

make test failed #54

PaulPuschmann opened this issue Mar 6, 2023 · 7 comments

Comments

@PaulPuschmann
Copy link

I followed your instruction to install all requirements and build FwAnalyzer.

after that I tried to run the test:
make test (I have previously performed make testsetup)

then the following error occurs

image

I hope you can help me with my error :)

@Grazfather
Copy link
Collaborator

Do you have diff on your $PATH? If not, could you please try installing diffutils?

@Grazfather
Copy link
Collaborator

That shouldn't be it. It looks like it's because you're using sudo. Have you tried running without it?

@PaulPuschmann
Copy link
Author

image

unfortunately
make testsetup &
make test
don't work without sudo

@PaulPuschmann
Copy link
Author

When I try to start a normal analysis, an error also occurs, which I traced back to the same origin as the test script error

Error in analysis
The problem is that in analyzer.go the fsparser is called with "/", which the parser cannot handle

fi, err := a.fsparser.GetFileInfo("/") <-- analyzer.go in ckeckRoot() line 188

if I replace "/" with something like "/home/user/..." the parser has no problem

Error in "make test"
err = g.CheckFile(&fi, "/") <-- filecmp_test.go line 102

this problem occurs not only in these two examples, but everywhere where fsparser is called with "/".

@Grazfather
Copy link
Collaborator

It's because your path isn't being setup correctly. You can't make testsetup because you had previously run it as root. Delete and reclone the repo or chown everything to your main user, then run the instructions again.

@PaulPuschmann
Copy link
Author

I completely rebuilt the repo and this time without using sudo.
However, the same error occurs again...

image

fi, err := d.GetFileInfo("/testlink") line 88 in dirparser_test.go - TestFetFileInfo()

@PaulPuschmann
Copy link
Author

the problem here is that the testlink is not set.
you can create this link yourself with the command:

ln -s testdir/ testlink

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

2 participants