About failing test in tar-ball because of missing wav files...

Moderators: MattKingUSA, khz, muldjord, deva

Post Reply
User avatar
deva
Established Member
Posts: 285
Joined: Sun Oct 23, 2016 10:15 am
Has thanked: 3 times
Been thanked: 31 times
Contact:

About failing test in tar-ball because of missing wav files...

Post by deva »

Currently the unit tests (make check) cannot be performed when running from the tar-ball source tree.
The reason is that the test folder in the git tree contains a lot wav files used by the tests and these files are not (yet) included in the tarball.

The question is:
Do we even want to include these files in the tar-ball? They are rather big (29MB) and has no value whatsoever to the end-user.
User avatar
Glocke
Established Member
Posts: 18
Joined: Mon Oct 24, 2016 4:54 pm

Re: About failing test in tar-ball because of missing wav files...

Post by Glocke »

I see unit testing as a dev-thing, not an enduser-task. So I'd not include that wav files, but refer to it through readme.
Just a guy
chaot4
Established Member
Posts: 61
Joined: Sat Apr 16, 2016 9:59 am
Been thanked: 1 time

Re: About failing test in tar-ball because of missing wav files...

Post by chaot4 »

As viccuad said in the IRC channel: Debian tries to "make check" as many packages as possible before providing them. Our "make check" runs the unit tests. I think it makes sense to provide this to package maintainers.

An idea I already had a while back would be to just algorithmically generate (e.g., random with a fixed seed) a test drumkit and then check with this one. Then we wouldn't need much memory for this and still provide the unit tests for the tarballs.

Oh, and to also answer deva's initial question: No, I don't think we want to include 28MB just for the tests. Especially when we can also just solve it using the above mentioned approach.
User avatar
deva
Established Member
Posts: 285
Joined: Sun Oct 23, 2016 10:15 am
Has thanked: 3 times
Been thanked: 31 times
Contact:

Re: About failing test in tar-ball because of missing wav files...

Post by deva »

Algorithmically generating the test wav files is a brilliant idea. They don't have to sound anything like a drum, just be there and contain samples with varying values.
A simple white-noise generator should do the trick.
chaot4
Established Member
Posts: 61
Joined: Sat Apr 16, 2016 9:59 am
Been thanked: 1 time

Re: About failing test in tar-ball because of missing wav files...

Post by chaot4 »

I added this point to the roadmap and assigned myself.
User avatar
deva
Established Member
Posts: 285
Joined: Sun Oct 23, 2016 10:15 am
Has thanked: 3 times
Been thanked: 31 times
Contact:

Re: About failing test in tar-ball because of missing wav files...

Post by deva »

Awesome! :-D
chaot4
Established Member
Posts: 61
Joined: Sat Apr 16, 2016 9:59 am
Been thanked: 1 time

Re: About failing test in tar-ball because of missing wav files...

Post by chaot4 »

Just for the record: we now generate the wav files algorithmically and this is on master since quite some time.
Post Reply