Skip to content

Commit

Permalink
added version info
Browse files Browse the repository at this point in the history
  • Loading branch information
Bonson Wong committed Nov 17, 2023
1 parent d0003b7 commit f70206b
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 11 deletions.
2 changes: 1 addition & 1 deletion src/s5curl.c
Original file line number Diff line number Diff line change
Expand Up @@ -254,7 +254,7 @@ static s5curl_t *s5curl_open_with(
return NULL;
}
if (fseek(fp, 0, SEEK_SET)) {
SLOW5_ERROR("%s", "Failed to rewind index file ptr");
SLOW5_ERROR("%s", "Failed to rewind index file ptr.");
s5curl_errno = S5CURL_ERR_IO;
return NULL;
}
Expand Down
3 changes: 3 additions & 0 deletions src_tool/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
#include <getopt.h>
#include <signal.h>
#include <slow5/slow5.h>
#include <slow5curl/s5curl.h>
#include "error.h"
#include "cmd.h"
#include "misc.h"
Expand Down Expand Up @@ -145,6 +146,8 @@ int main(const int argc, char **argv){
case 'V':
DEBUG("displaying version information%s","");
fprintf(stdout, "slow5curl %s\n", SLOW5CURL_VERSION);
fprintf(stdout, " using slow5lib %s\n", SLOW5_LIB_VERSION);
fprintf(stdout, " using libcurl %s\n", curl_version_info(CURLVERSION_NOW)->version);
ret = EXIT_SUCCESS;
break_flag = true;
break;
Expand Down
10 changes: 0 additions & 10 deletions test/data/out/text.txt

This file was deleted.

5 changes: 5 additions & 0 deletions test/test.sh
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,11 @@ echo_test_name() {
test -d ${OUT} && rm -r ${OUT}
mkdir ${OUT} || die "mkdir failed"

# version
TESTCASE_NAME="version"
echo_test_name ${TESTCASE_NAME}
ex ./slow5curl --version

# cache opt
TESTCASE_NAME="get_cached"
echo_test_name ${TESTCASE_NAME}
Expand Down

0 comments on commit f70206b

Please sign in to comment.