Problems trying to run simple_test in linux binary distribution
1
0
Entering edit mode
7.0 years ago
rsharris ▴ 30

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 • 1.7k views ADD COMMENT 0 Entering edit mode 7.0 years ago Rayan Chikhi ★ 1.5k 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

0
Entering edit mode

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

0
Entering edit mode

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

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/).