Question: Problems trying to run simple_test in linux binary distribution
0
gravatar for rsharris
20 months ago by
rsharris20
United States
rsharris20 wrote:

I am new to DSK. The following may be the result of me failing to find some docs somewhere, so if that's the case please point me at them.

I've downloaded the linux binaries for 2.0.6 and found simple_test.sh so I thought I would try running it to see if the binaries will work on my machine. But I've run into a couple problems that appear to be problems with the test script itself.

The first is that the shebang line in the script uses $bindir, which I didn't have defined. Is that something linux users typically have defined? In any case, that was easy enough to get past.

The second problem, which has me stumped, is that most of the tests want to use a file "dsk/histogram".  I can't find this file in the binaries distribution.  I've also looked in the source code distribution and I don't see it there either.

Thanks in advance for any help,

Bob H

 

dsk minia • 521 views
ADD COMMENTlink modified 20 months ago by Rayan Chikhi1.1k • written 20 months ago by rsharris20
0
gravatar for Rayan Chikhi
20 months ago by
Rayan Chikhi1.1k
France, Lille, CNRS
Rayan Chikhi1.1k wrote:

Hi Bob!

Thanks for this post! you've found two problems with simple_test.sh:

1) $bindir is not a typical variable. The "#!/$bindir/bash" line was a mistake that went unnoticed (it arised when globally replacing "bin" to "$bindir" in the whole file).

2) "dsk/histogram" is actually not a file, but a reference of a section within the results file of DSK (which is in the HDF5 format). This reference used to be "dsk/histogram" in old versions, but we recently updated the GATB library to make reference "histogram/histogram". simple_test.sh wasn't updated so that's why it complained.

I've just pushed an update (DSK 2.0.7) that fixes those issues. Please let me know if you see other problems!

Rayan

ADD COMMENTlink written 20 months ago by Rayan Chikhi1.1k

Thanks Rayan,

I've made that change in my copy of the 2.0.6 simple_test.sh, and the tests all pass now.

I wasn't able to find 2.0.7 (and that's OK). I'd gotten 2.0.6 from http://minia.genouest.org/dsk and the update hasn't made it there yet. I then tried to find a DSK repository online but gave up fairly quickly because I wasn't sure if what I found was up to date, and it appeared to be source code only (I'd tried to build from source yesterday but failed because my version of cmake is too old).

Anyway, I'm up and running, thanks!

Bob H

ADD REPLYlink written 20 months ago by rsharris20

Oh, had forgotten to update DSK website, it's there now.

Glad to know you got it to work on your own!

Indeed, our release locations of DSK are a bit scattered. There's no public source code repo, and I update the DSK web site manually. There's the GATB web site which automatically gathers new versions, although the script has issues with recent versions of Chrome (http://gatb.inria.fr/binaries-url/).

ADD REPLYlink written 20 months ago by Rayan Chikhi1.1k
Please log in to add an answer.

Help
Access

Use of this site constitutes acceptance of our User Agreement and Privacy Policy.
Powered by Biostar version 2.3.0
Traffic: 494 users visited in the last hour