Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.programming > #8927
| From | Jacob Sparre Andersen <jacob@jacob-sparre.dk> |
|---|---|
| Newsgroups | comp.programming, comp.arch.embedded |
| Subject | Re: A question about building a large and complex piece of software |
| Date | 2018-06-10 20:21 +0200 |
| Organization | JSA Research & Innovation |
| Message-ID | <87muw2o636.fsf@jacob-sparre.dk> (permalink) |
| References | <e4eccd1e-ee8e-467a-9edb-83bc0293055e@googlegroups.com> <87wov8o5fe.fsf@jacob-sparre.dk> <87sh5wo4ev.fsf@jacob-sparre.dk> <14c17c07-d4c7-4d30-aec7-ff85258c8569@googlegroups.com> |
Cross-posted to 2 groups.
[cross-posted to comp.embedded, as it contains questions specific to
embedded programming]
Chad <cdalten@gmail.com> writes:
> And this is probably where I don't understand testing as well as what
> I should. For reasons that elude me, testing under an emulated piece
> of hardware is vastly different than testing it on the actual piece of
> hardware itself.
Yes.
The trick is to have a good abstraction layer reasonably close to the
hardware. When you run tests on your development ("host") system, you
use an implementation, which emulates the actual hardware, while an
actual deployment of course maps the abstraction layer to the actual
hardware.
> I do have set of tests that I think bridges this gap. However, I don't
> have any idea if this does in fact brige the gap. And I even am more
> clueless on how to do the tests. This is because I'm required to
> program the debugger myself. However, there is no tutorial on how to
> go about doing it.
If you have an abstraction layer, you can write tests, which verify that
your emulator and the actual hardware behaves in the same way. Once
you're sure of that, you can use the emulator to perform automated
testing on the host system, so you with some confidence can postpone
testing on the target system.
Greetings,
Jacob
--
"Very small. Go to sleep" - monster (not drooling)
Back to comp.programming | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
A question about building a large and complex piece of software Chad <cdalten@gmail.com> - 2018-06-08 16:47 -0700
Re: A question about building a large and complex piece of software Jacob Sparre Andersen <jacob@jacob-sparre.dk> - 2018-06-09 08:11 +0200
Re: A question about building a large and complex piece of software Jacob Sparre Andersen <jacob@jacob-sparre.dk> - 2018-06-09 08:33 +0200
Re: A question about building a large and complex piece of software Chad <cdalten@gmail.com> - 2018-06-09 07:59 -0700
Re: A question about building a large and complex piece of software Jacob Sparre Andersen <jacob@jacob-sparre.dk> - 2018-06-10 20:21 +0200
Re: A question about building a large and complex piece of software Ed Prochak <edprochak@gmail.com> - 2018-06-12 06:46 -0700
Re: A question about building a large and complex piece of software Chad <cdalten@gmail.com> - 2018-06-13 06:45 -0700
csiph-web