-
Notifications
You must be signed in to change notification settings - Fork 4
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
Check CPU at runtime #15
Conversation
You cannot ask the preprocessor.
That won't work I'm afraid. AMIGA is set on AROS and MorphOS as well and if I interpret your code correctly that would lead to all identifying as '68000'. Is there some way of probing the CPU in runtime on the AmigaOS clones? |
My code works on MorphOS, I have an (emulated) 68060 :) |
It would be great if we could get real runtime CPU info on all platforms. |
I just did a quick macOS 10.5 (gcc 4.2.1) test,
I get
|
That's interesting. On MacOS 10.13 you're "supposed" to get 5 failed tests, those are (foreach) tests that depend on the order in which entries are read from a directory (the correct answer is the Linux answer). If you read the output of these tests you can see that they are correct, it's just a permutation of the expected result: `; In line 14 ; In line 4 ; In line 13 ; In line 3 ; In line 15 Which tests fail on 10.5? |
FAIL -> (copyfiles (fonts) (all) (source "cfs") (dest "cfd")) |
The (database) tests (this includes the last line as well) aren't good, they assume that you're using a x86_64 build which isn't true in your case I guess since you're running 10.5. The (getenv) test is also silly, it assumes that your EDITOR is set to 'vi'. I should really fix these, but they are nothing to worry about. The (copyfiles) tests definitely shouldn't fail though. Do you get something like this:
Or is it just something like this:
|
Ok. How about using GitHub's Travis CI? |
That would be really nice. Do you have any Travis experience? |
Some progress https://travis-ci.com/polluks/InstallerLG |
That's very good. Running all tests with Valgrind takes quite some time (and a Linux system) so this would definitely be an improvement. From the output of the latest run (the LEAK thing) my guess is that Valgrind is not installed on the build slave? When is it triggered? All commits on master? Pull requests as well? |
I stole some of the code in this PR by the way, and did something that I think might work. It's not very elegant, but what the heck. |
You have to register the project at http://travis-ci.com then you may copy the file .travis.yml from my repo. Maybe this helps https://stackoverflow.com/questions/41329914/specify-valgrind-options-to-r-package-on-travis-ci |
You cannot ask the preprocessor.