forked from lix-project/lix
move out of tests/
This commit is contained in:
parent
9bb528d392
commit
9a8b3e9747
2
Makefile
2
Makefile
|
@ -16,7 +16,7 @@ makefiles = \
|
||||||
doc/manual/local.mk \
|
doc/manual/local.mk \
|
||||||
tests/local.mk \
|
tests/local.mk \
|
||||||
tests/plugins/local.mk \
|
tests/plugins/local.mk \
|
||||||
tests/errors/local.mk
|
src/error-demo/local.mk
|
||||||
|
|
||||||
-include Makefile.config
|
-include Makefile.config
|
||||||
|
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
#include "../../src/libutil/error.hh"
|
#include "error.hh"
|
||||||
#include "../../src/libexpr/nixexpr.hh"
|
#include "nixexpr.hh"
|
||||||
|
|
||||||
#include <iostream>
|
#include <iostream>
|
||||||
#include <optional>
|
#include <optional>
|
||||||
|
@ -9,7 +9,7 @@ int main()
|
||||||
using namespace nix;
|
using namespace nix;
|
||||||
|
|
||||||
// In each program where errors occur, this has to be set.
|
// In each program where errors occur, this has to be set.
|
||||||
ErrorInfo::programName = std::optional("error-test");
|
ErrorInfo::programName = std::optional("error-demo");
|
||||||
|
|
||||||
// There are currently four error types:
|
// There are currently four error types:
|
||||||
//
|
//
|
10
src/error-demo/local.mk
Normal file
10
src/error-demo/local.mk
Normal file
|
@ -0,0 +1,10 @@
|
||||||
|
programs += error-demo
|
||||||
|
|
||||||
|
error-demo_DIR := $(d)
|
||||||
|
|
||||||
|
error-demo_SOURCES := \
|
||||||
|
$(wildcard $(d)/*.cc) \
|
||||||
|
|
||||||
|
error-demo_LIBS = libutil
|
||||||
|
|
||||||
|
error-demo_LDFLAGS = -pthread $(SODIUM_LIBS) $(EDITLINE_LIBS) $(BOOST_LDFLAGS) -lboost_context -lboost_thread -lboost_system
|
|
@ -1,10 +0,0 @@
|
||||||
programs += error-test
|
|
||||||
|
|
||||||
error-test_DIR := $(d)
|
|
||||||
|
|
||||||
error-test_SOURCES := \
|
|
||||||
$(wildcard $(d)/*.cc) \
|
|
||||||
|
|
||||||
error-test_LIBS = libutil
|
|
||||||
|
|
||||||
error-test_LDFLAGS = -pthread $(SODIUM_LIBS) $(EDITLINE_LIBS) $(BOOST_LDFLAGS) -lboost_context -lboost_thread -lboost_system
|
|
Loading…
Reference in a new issue