Commit 91983f51 authored by Jamie A. Jennings's avatar Jamie A. Jennings

Missing some new files... <sigh>

parent d5ddbfe4
......@@ -25,17 +25,17 @@ WORKDIR /opt
RUN git clone --recursive --depth 1 --branch $branch https://gitlab.com/rosie-pattern-language/rosie.git /opt/rosie
WORKDIR /opt/rosie
RUN make LUADEBUG=1
RUN make test
RUN make install
#RUN make LUADEBUG=1
#RUN make test
#RUN make install
# A couple of small tests to ensure the installed copy functions:
RUN rosie version
RUN rosie match all.things test/resolv.conf
#RUN rosie version
#RUN rosie match all.things test/resolv.conf
# Here is one simple invocation of valgrind, just to make sure it
# works. Get an interactive shell to this container to run more tests.
RUN valgrind --leak-check=full rosie -f /opt/data/syslog-2018-09-05.rpl match -o byte syslog /opt/data/syslog100k >/dev/null
#RUN valgrind --leak-check=full rosie -f /opt/data/syslog-2018-09-05.rpl match -o byte syslog /opt/data/syslog100k >/dev/null
RUN uname -a
RUN cat /etc/fedora-release
#RUN uname -a
#RUN cat /etc/fedora-release
#!/bin/bash
#
# The rosie executable dynamically loads librosie.so (librosie.dylib
# on MacOS). By default, the operating system will look in the
# "standard" places for librosie, e.g. /usr/lib, /usr/local/lib.
#
# In the situation in which one version of rosie is installed at the
# system level (via 'make install'), and a different version of rosie
# has been compiled in the build directory, we want to ensure that
# when running out of the build directory, we tell the operating
# system to look for the librosie that is also in the build directory.
ROSIE_HOME=$(dirname "$0")
ROSIE_BIN="$ROSIE_HOME/build/bin/rosie"
if [ -x "$ROSIE_BIN" ]; then
LD_LIBRARY_PATH="$ROSIE_HOME/build/lib" "$ROSIE_BIN" "[email protected]"
else
echo "$ROSIE_BIN": Not found
echo "Probably need to run 'make' to build rosie"
exit -1
fi
-- -*- Mode: Lua; -*-
--
-- prepare.lua Used by all.lua and the test/run script
--
-- © Copyright Jamie A. Jennings 2020.
-- LICENSE: MIT License (https://opensource.org/licenses/mit-license.html)
-- AUTHOR: Jamie A. Jennings
if not ROSIE then
print("*****************************************************************")
print("** Path to rosie executable not set. Some tests will not run. **")
print("*****************************************************************")
end
import = rosie.import
ROSIE_HOME = rosie.env.ROSIE_HOME
rosie_cmd = ROSIE
json = import "cjson"
package.path = "./submodules/lua-modules/?.lua"
termcolor = assert(require("termcolor"))
test = assert(require("test"))
return
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment