File tree Expand file tree Collapse file tree 3 files changed +5
-3
lines changed Expand file tree Collapse file tree 3 files changed +5
-3
lines changed Original file line number Diff line number Diff line change 55 gcc -fPIC -std=c++11 -I /usr/include/octave-${octave_version} /octave/ -lm -I /usr/include/hiredis/ -lhiredis -shared -O2 -pedantic redis_.cpp -o redis_.mex
66 cp redis_.mex ../inst/redis_.mex
77
8+ gitlab_build :
9+ echo " using ${octave_version} "
10+ mkoctfile -lhiredis -I/usr/include/hiredis --mex -fPIC -O3 -pedantic -std=c++11 -g redis_.cpp -o redis_.mex -o ../inst/redis_.mex
11+
812test :
913 echo " YES" | octave-cli --eval ' quit(or(0, mUnittest("test_redis")))'
1014
Original file line number Diff line number Diff line change 33OK = @(x ) strcmp(' OK' , x );
44
55%% testing redis() class
6- setup
76addpath(' ../inst/' )
8- addpath(' ../inst/private' )
97r = redis(' hostname' , ' redis' );
108% test basics
119assert(strcmp(' PONG' ,r .ping()),
Original file line number Diff line number Diff line change 1111 %% setup for octave follows here
1212 if isunix
1313 try
14- eval([' mkoctfile -lhiredis -I' LIBPATH ' --mex -fPIC -O3 -pedantic -std=c++11 -g redis_.cpp -o redis_.mex -o ../inst/redis_.mex' ])
14+ eval([' mkoctfile -lhiredis -I' LIBPATH ' --mex - fPIC - O3 - pedantic - std = c ++11 - g redis_ .cpp - o redis_ .mex - o ../inst / redis_ .mex ' ])
1515 catch
1616 error(' something went wrong\n Make sure you'' ve installes octave dev tools and hiredis' )
1717 end % try
You can’t perform that action at this time.
0 commit comments