openrc/test/setup_env.sh
William Hubbs fdfa6dbb0e
rewrite tests (#515)
* rewrite tests to work with meson

This ports our tests to meson and makes them able to be run in parallel.

* add tests to ci

* rewrite test/check-trailing-newlines in bash

This test was using a GNU sed command which does not work on Alpine Linux.
2022-04-16 15:13:08 -05:00

22 lines
511 B
Bash
Executable File

#!/bin/sh
if [ -z "${BUILD_ROOT}" ] ; then
printf "%s\n" "You must export BUILD_ROOT before sourcing this file" >&2
exit 1
fi
if [ -z "${SOURCE_ROOT}" ] ; then
printf "%s\n" "You must export SOURCE_ROOT before sourcing this file" >&2
exit 1
fi
if [ ! -f ${BUILD_ROOT}/sh/functions.sh ] ; then
printf "%s\n" "functions.sh not yet created !?" >&2
exit 1
elif ! . ${BUILD_ROOT}/sh/functions.sh; then
printf "%s\n" "Sourcing functions.sh failed !?" >&2
exit 1
fi
PATH="${BUILD_ROOT}"/src/einfo:${PATH}